NSX|P: Fix octavia operating status
DISABLED status is not supported by octavia. Using OFFLINE instead. Change-Id: Ia59bda7314d64c3f82f8d56450ccf149846d84bb
This commit is contained in:
parent
7545a29719
commit
32229c3760
@ -127,13 +127,16 @@ LISTENERS = 'listeners'
|
||||
POOLS = 'pools'
|
||||
MEMBERS = 'members'
|
||||
|
||||
# Operating statuses
|
||||
ONLINE = 'ONLINE'
|
||||
OFFLINE = 'OFFLINE'
|
||||
DEGRADED = 'DEGRADED'
|
||||
ENABLED = 'ENABLED'
|
||||
DISABLED = 'DISABLED'
|
||||
ACTIVE = 'ACTIVE'
|
||||
ERROR = 'ERROR'
|
||||
UNKNOWN = 'UNKNOWN'
|
||||
|
||||
# Admin states
|
||||
ENABLED = 'ENABLED'
|
||||
DISABLED = 'DISABLED'
|
||||
|
||||
VMWARE_LB_VIP_OWNER = 'vmware-lb-vip'
|
||||
|
@ -235,10 +235,9 @@ def _nsx_status_to_lb_status(nsx_status):
|
||||
'NO_STANDBY']:
|
||||
return lb_const.ONLINE
|
||||
# Statuses that are considered OFFLINE:
|
||||
if nsx_status.upper() in ['PRIMARY_DOWN', 'DETACHED', 'DOWN', 'ERROR']:
|
||||
if nsx_status.upper() in ['PRIMARY_DOWN', 'DETACHED', 'DOWN', 'ERROR',
|
||||
'DISABLED']:
|
||||
return lb_const.OFFLINE
|
||||
if nsx_status.upper() == 'DISABLED':
|
||||
return lb_const.DISABLED
|
||||
|
||||
# default fallback
|
||||
LOG.debug("NSX LB status %s - interpreted as ONLINE", nsx_status)
|
||||
|
Loading…
Reference in New Issue
Block a user