L2GW: support missing methods

Adds missing methods. Something changed witht he way in which
the callbacks were invoked which showed that we did not support
the correct methods.

Change-Id: I253ceee343d829923b874057603a32ccd8c662f6
This commit is contained in:
Gary Kotton 2018-03-12 17:14:06 +02:00 committed by garyk
parent f9071f3f9f
commit 15a279dbc6
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