Support L2 gateway edge HA according to the edge_ha setting
Change-Id: I0fb481f8107cd19b2daf641b1976c429907c23b3
This commit is contained in:
parent
9bef6706af
commit
6fc16531c5
@ -20,6 +20,7 @@ from networking_l2gw.services.l2gateway import exceptions as l2gw_exc
|
|||||||
from neutron.common import exceptions as n_exc
|
from neutron.common import exceptions as n_exc
|
||||||
from neutron.i18n import _LE
|
from neutron.i18n import _LE
|
||||||
from neutron import manager
|
from neutron import manager
|
||||||
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_utils import excutils
|
from oslo_utils import excutils
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
@ -98,6 +99,7 @@ class NsxvL2GatewayDriver(l2gateway_db.L2GatewayMixin):
|
|||||||
if not edge_binding:
|
if not edge_binding:
|
||||||
raise nsx_exc.NsxL2GWDeviceNotFound()
|
raise nsx_exc.NsxL2GWDeviceNotFound()
|
||||||
# Enable edge HA on the DLR
|
# Enable edge HA on the DLR
|
||||||
|
if cfg.CONF.nsxv.edge_ha:
|
||||||
edge_id = edge_binding['edge_id']
|
edge_id = edge_binding['edge_id']
|
||||||
self._edge_manager.nsxv_manager.update_edge_ha(edge_id)
|
self._edge_manager.nsxv_manager.update_edge_ha(edge_id)
|
||||||
return edge_binding['edge_id']
|
return edge_binding['edge_id']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user