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>
This commit is contained in:
KAWAI Hiroaki 2012-07-17 09:54:39 +09:00 committed by FUJITA Tomonori
parent fc05f44eaf
commit c46fdc6bf1

View File

@ -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: