mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
app/quantum_adapter: fix missing change to neutron
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
3edf6db1b0
commit
cfa7c91f0b
@ -20,10 +20,14 @@ import logging
|
||||
try:
|
||||
from neutronclient import client as q_client
|
||||
from neutronclient.common import exceptions as q_exc
|
||||
from neutronclient.common.exceptions import (NeutronClientException as
|
||||
client_exc)
|
||||
from neutronclient.v2_0 import client as q_clientv2
|
||||
except ImportError:
|
||||
from quantumclient import client as q_client
|
||||
from quantumclient.common import exceptions as q_exc
|
||||
from quantumclient.common.exceptions import (QuantumClientException as
|
||||
client_exc)
|
||||
from quantumclient.v2_0 import client as q_clientv2
|
||||
|
||||
from ryu.app import conf_switch_key as cs_key
|
||||
@ -223,7 +227,7 @@ class OVSSwitch(object):
|
||||
|
||||
try:
|
||||
self.q_api.update_port(port.ext_ids['iface-id'], body)
|
||||
except (q_exc.ConnectionFailed, q_exc.QuantumClientException) as e:
|
||||
except (q_exc.ConnectionFailed, client_exc) as e:
|
||||
self.logger.error("quantum update port failed: %s", e)
|
||||
# TODO: When authentication failure occurred,
|
||||
# it should get auth token again
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user