Tahereh Yaghoubi
2017-06-27 19:46:49 UTC
ââ
Hi ,
I'm getting OF_PORT information by using OFPDescStatsReply event. But for
all of ports, these values max_speed=0, curr_speed=10000000 are set while I
can receive EventOFPPortStatsReply in all ports correctly. Also I can ping
all of hosts. my app OFPPortDescStatsRequest code is:
req = parser.OFPPortDescStatsRequest(datapath, 0)
datapath.send_msg(req)
and I'm getting its reply as:
@set_ev_cls(ofp_event.EventOFPPortDescStatsReply, MAIN_DISPATCHER)
def port_desc_stats_reply_handler(self, ev):
ports = []
for p in ev.msg.body:
ports.append('port_no=%d hw_addr=%s name=%s config=0x%08x '
'state=0x%08x curr=0x%08x advertised=0x%08x '
'supported=0x%08x peer=0x%08x curr_speed=%d '
'max_speed=%d' %
(p.port_no, p.hw_addr,
p.name, p.config,
p.state, p.curr, p.advertised,
p.supported, p.peer, p.curr_speed,
p.max_speed))
I'm using ovs 2.7, openflow 13 and mininet.
Could you please say in which condition curr_speed and max_speed gets this
value?
Thanks in advanced
Hi ,
I'm getting OF_PORT information by using OFPDescStatsReply event. But for
all of ports, these values max_speed=0, curr_speed=10000000 are set while I
can receive EventOFPPortStatsReply in all ports correctly. Also I can ping
all of hosts. my app OFPPortDescStatsRequest code is:
req = parser.OFPPortDescStatsRequest(datapath, 0)
datapath.send_msg(req)
and I'm getting its reply as:
@set_ev_cls(ofp_event.EventOFPPortDescStatsReply, MAIN_DISPATCHER)
def port_desc_stats_reply_handler(self, ev):
ports = []
for p in ev.msg.body:
ports.append('port_no=%d hw_addr=%s name=%s config=0x%08x '
'state=0x%08x curr=0x%08x advertised=0x%08x '
'supported=0x%08x peer=0x%08x curr_speed=%d '
'max_speed=%d' %
(p.port_no, p.hw_addr,
p.name, p.config,
p.state, p.curr, p.advertised,
p.supported, p.peer, p.curr_speed,
p.max_speed))
I'm using ovs 2.7, openflow 13 and mininet.
Could you please say in which condition curr_speed and max_speed gets this
value?
Thanks in advanced