From 15a279dbc698b3195df7fb41b619c2dc5e0944bb Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 12 Mar 2018 17:14:06 +0200 Subject: [PATCH] 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 --- vmware_nsx/services/l2gateway/nsx_v/driver.py | 8 ++++++++ vmware_nsx/services/l2gateway/nsx_v3/driver.py | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/vmware_nsx/services/l2gateway/nsx_v/driver.py b/vmware_nsx/services/l2gateway/nsx_v/driver.py index 806a5a7919..c201f7748e 100644 --- a/vmware_nsx/services/l2gateway/nsx_v/driver.py +++ b/vmware_nsx/services/l2gateway/nsx_v/driver.py @@ -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 diff --git a/vmware_nsx/services/l2gateway/nsx_v3/driver.py b/vmware_nsx/services/l2gateway/nsx_v3/driver.py index 361adfb4e3..1511aaf811 100644 --- a/vmware_nsx/services/l2gateway/nsx_v3/driver.py +++ b/vmware_nsx/services/l2gateway/nsx_v3/driver.py @@ -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