diff options
author | KAWAI Hiroaki <kawai@stratosphere.co.jp> | 2012-07-17 09:54:39 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-07-17 10:40:46 +0900 |
commit | c46fdc6bf1327100567b91d5f4986aaa35950660 (patch) | |
tree | 309fb35c4f4345cbd1108f8bf3bfed67201ae7d7 | |
parent | fc05f44eaf9580c90a1df94990d2c4b6e3822dad (diff) |
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 <kawai@stratosphere.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/app/simple_switch.py | 2 |
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: |