From 35354d2df56ca058edaff3be47e31bd82137f33e Mon Sep 17 00:00:00 2001 From: KAWAI Hiroaki Date: Fri, 13 Jul 2012 19:55:33 +0900 Subject: [PATCH] fix typo. port_no is not a member of msg, but a member of msg.desc. --- ryu/app/simple_switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 ryu/app/simple_switch.py diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py old mode 100644 new mode 100755 index 16f26b99c..25227f216 --- a/ryu/app/simple_switch.py +++ b/ryu/app/simple_switch.py @@ -84,7 +84,7 @@ def _packet_in_handler(self, ev): def _port_status_handler(self, ev): msg = ev.msg reason = msg.reason - port_no = msg.port_no + port_no = msg.desc.port_no ofproto = msg.datapath.ofproto if reason == ofproto.OFPPR_ADD: