summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/app/simple_switch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py
index 16f26b99..25227f21 100644
--- a/ryu/app/simple_switch.py
+++ b/ryu/app/simple_switch.py
@@ -84,7 +84,7 @@ class SimpleSwitch(app_manager.RyuApp):
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: