NSX|v: fix port binding
Change-Id: I1570eb7e4916424db194c1279eb60bc6b91284ff
This commit is contained in:
parent
cc2a0064f3
commit
1ef27f0487
|
@ -158,8 +158,9 @@ class NsxPortBindingMixin(pbin_db.PortBindingMixin):
|
|||
if port_db.nsx_port_attributes:
|
||||
port_res[pbin.VNIC_TYPE] = port_db.nsx_port_attributes.vnic_type
|
||||
|
||||
binding = common_utils.get_port_binding_by_status_and_host(
|
||||
port_db.port_binding, constants.ACTIVE)
|
||||
if hasattr(port_db, 'port_bindings'):
|
||||
binding = common_utils.get_port_binding_by_status_and_host(
|
||||
port_db.port_bindings, constants.ACTIVE)
|
||||
|
||||
if binding:
|
||||
plugin.extend_port_portbinding(port_res, binding)
|
||||
if binding:
|
||||
plugin.extend_port_portbinding(port_res, binding)
|
||||
|
|
Loading…
Reference in New Issue