From c46fdc6bf1327100567b91d5f4986aaa35950660 Mon Sep 17 00:00:00 2001 From: KAWAI Hiroaki Date: Tue, 17 Jul 2012 09:54:39 +0900 Subject: [PATCH] simple_switch: fix port_status_handler port_no is not a member of msg, but a member of msg.desc. Signed-off-by: Hiroaki KAWAI Signed-off-by: FUJITA Tomonori --- ryu/app/simple_switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: