Merge "L2GW: support missing methods"

This commit is contained in:
Zuul 2018-03-13 13:13:51 +00:00 committed by Gerrit Code Review
commit c52d97012b
2 changed files with 16 additions and 0 deletions

View File

@ -224,3 +224,11 @@ class NsxvL2GatewayDriver(l2gateway_db.L2GatewayMixin):
def delete_l2_gateway_postcommit(self, context, l2_gateway):
pass
def add_port_mac(self, context, port_dict):
"""Process a created Neutron port."""
pass
def delete_port_mac(self, context, port):
"""Process a deleted Neutron port."""
pass

View File

@ -332,3 +332,11 @@ class NsxV3Driver(l2gateway_db.L2GatewayMixin):
if port['device_owner'] == nsx_constants.BRIDGE_ENDPOINT:
reason = _("has device owner %s") % port['device_owner']
raise n_exc.ServicePortInUse(port_id=port_id, reason=reason)
def add_port_mac(self, context, port_dict):
"""Process a created Neutron port."""
pass
def delete_port_mac(self, context, port):
"""Process a deleted Neutron port."""
pass