我在修改flow中的流_统计.py文件,然后发送一条消息以切换到队列中。但断言是存在的(数据,of.ofp_标头)在开放式流动.连接.发送()失败。我已经读过pox dev邮件列表上的帖子,并修正了我的导入名。有人能引导我吗。在
这是我的密码
#flow_stats.py
def _handle_flowstats_received (event):
stats = flow_stats_to_list(event.stats)
log.debug("FlowStatsReceived from %s: %s", dpidToStr(event.connection.dpid), stats)
msg = of.ofp_flow_mod()
msg.command = of.OFPFC_MODIFY_STRICT
connection = event.connection
for f in event.stats:
if f.match.nw_proto == 1:
f.actions.append(of.ofp_action_enqueue(port = my_port, queue_id = 0))
msg = f
connection.send(msg)
这是发生错误的代码。这是pox文件。我没有更改此文件中的任何内容。在
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐