diff --git a/vmware_nsx/services/vpnaas/nsx_tvd/ipsec_driver.py b/vmware_nsx/services/vpnaas/nsx_tvd/ipsec_driver.py index b96aa86f14..6fb18fb37b 100644 --- a/vmware_nsx/services/vpnaas/nsx_tvd/ipsec_driver.py +++ b/vmware_nsx/services/vpnaas/nsx_tvd/ipsec_driver.py @@ -106,3 +106,11 @@ class NSXIPsecVpnDriver(service_drivers.VpnDriver): if driver and hasattr(driver, 'get_ipsec_site_connection_status'): return driver.get_ipsec_site_connection_status( 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)