NSXv: Change edge_ha flag on edge updates
When a backup edge get used to as DHCP edge; the edge_ha flag was getting reset. Fixes this issue. Change-Id: Ia002b24b3572ce4c1515e2692bba33d9b2527bb5
This commit is contained in:
parent
f6ca6eb13a
commit
65aa7b0e18
@ -75,6 +75,9 @@ class EdgeApplianceDriver(object):
|
||||
if datacenter_moid:
|
||||
edge['datacenterMoid'] = datacenter_moid
|
||||
|
||||
if not dist and cfg.CONF.nsxv.edge_ha:
|
||||
self._enable_high_availability(edge)
|
||||
|
||||
return edge
|
||||
|
||||
def _assemble_edge_appliance(self, resource_pool_id, datastore_id):
|
||||
@ -506,9 +509,6 @@ class EdgeApplianceDriver(object):
|
||||
if not dist and loadbalancer_enable:
|
||||
self._enable_loadbalancer(edge)
|
||||
|
||||
if not dist and cfg.CONF.nsxv.edge_ha:
|
||||
self._enable_high_availability(edge)
|
||||
|
||||
if async:
|
||||
userdata = {
|
||||
'dist': dist,
|
||||
|
Loading…
x
Reference in New Issue
Block a user