> Traceback (most recent call last): > File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run > result = self._run(*self.args, **self.kwargs) > File "/opt/stack/ryu/ryu/base/app_manager.py", line 86, in _event_loop > handler(ev) > File "/opt/stack/ryu/ryu/app/quantum_adapter.py", line 368, in dp_handler > ovs_switch.close() > AttributeError: 'OVSSwitch' object has no attribute 'close'
This is legacy from the old code, so remove calling close method Reported-by: Yoshihiro Kaneko <y.kaneko__0...@nifty.com> Signed-off-by: Isaku Yamahata <yamah...@valinux.co.jp> --- ryu/app/quantum_adapter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ryu/app/quantum_adapter.py b/ryu/app/quantum_adapter.py index 29d063d..6f6090d 100644 --- a/ryu/app/quantum_adapter.py +++ b/ryu/app/quantum_adapter.py @@ -363,9 +363,7 @@ class QuantumAdapter(app_manager.RyuApp): # can be disconnected for some reason. # TODO: configuration needed to tell that this dp is really # removed. - ovs_switch = self.dps.pop(dpid, None) - if ovs_switch: - ovs_switch.close() + self.dps.pop(dpid, None) @handler.set_ev_cls(dpset.EventPortAdd) def port_add_handler(self, ev): -- 1.7.10.4 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel