TVD: Add missing VPN driver api

Change-Id: I8718aca1696dcce7744b5a828c7852185c6645bb
This commit is contained in:
Adit Sarfaty 2018-12-12 10:14:50 +02:00
parent 32dd3390c0
commit ab49850cff

View File

@ -106,3 +106,11 @@ class NSXIPsecVpnDriver(service_drivers.VpnDriver):
if driver and hasattr(driver, 'get_ipsec_site_connection_status'): if driver and hasattr(driver, 'get_ipsec_site_connection_status'):
return driver.get_ipsec_site_connection_status( return driver.get_ipsec_site_connection_status(
context, ipsec_site_conn_id) context, ipsec_site_conn_id)
def validate_router_gw_info(self, context, router_id, gw_info):
# Currently only NSX-T supports it. In the future we will need to
# decide on the driver by the tenant
driver = self.drivers.get(projectpluginmap.NsxPlugins.NSX_T)
if driver and hasattr(driver, 'validate_router_gw_info'):
return driver.validate_router_gw_info(
context, router_id, gw_info)