Merge "NSX: port status must reflect fabric, not link status"
This commit is contained in:
@@ -203,7 +203,7 @@ class NvpSynchronizer():
|
|||||||
LP_URI = nvplib._build_uri_path(
|
LP_URI = nvplib._build_uri_path(
|
||||||
nvplib.LSWITCHPORT_RESOURCE,
|
nvplib.LSWITCHPORT_RESOURCE,
|
||||||
parent_resource_id='*',
|
parent_resource_id='*',
|
||||||
fields='uuid,tags,fabric_status,link_status_up',
|
fields='uuid,tags,fabric_status_up',
|
||||||
relations='LogicalPortStatus')
|
relations='LogicalPortStatus')
|
||||||
|
|
||||||
def __init__(self, plugin, cluster, state_sync_interval,
|
def __init__(self, plugin, cluster, state_sync_interval,
|
||||||
@@ -423,7 +423,7 @@ class NvpSynchronizer():
|
|||||||
if lswitchport:
|
if lswitchport:
|
||||||
lp_status = (lswitchport['_relations']
|
lp_status = (lswitchport['_relations']
|
||||||
['LogicalPortStatus']
|
['LogicalPortStatus']
|
||||||
['link_status_up'])
|
['fabric_status_up'])
|
||||||
status = (lp_status and
|
status = (lp_status and
|
||||||
constants.PORT_STATUS_ACTIVE
|
constants.PORT_STATUS_ACTIVE
|
||||||
or constants.PORT_STATUS_DOWN)
|
or constants.PORT_STATUS_DOWN)
|
||||||
|
|||||||
Reference in New Issue
Block a user