From 940d125922f16ae8c2aa4187b46304fc66648c52 Mon Sep 17 00:00:00 2001 From: Ly Loi Date: Tue, 22 Jul 2014 14:22:12 -0700 Subject: [PATCH] Define some abstract methods in VpnDriver class Define the _ipsec_site_connection() methods to ensure any new service drivers will implement them. Closes-Bug: 1326793 Change-Id: Idfe67632893592859990db486393a7108362447e --- neutron/services/vpn/service_drivers/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/neutron/services/vpn/service_drivers/__init__.py b/neutron/services/vpn/service_drivers/__init__.py index 00ee0e7f5..f03cb41a8 100644 --- a/neutron/services/vpn/service_drivers/__init__.py +++ b/neutron/services/vpn/service_drivers/__init__.py @@ -52,6 +52,19 @@ class VpnDriver(object): def delete_vpnservice(self, context, vpnservice): pass + @abc.abstractmethod + def create_ipsec_site_connection(self, context, ipsec_site_connection): + pass + + @abc.abstractmethod + def update_ipsec_site_connection(self, context, old_ipsec_site_connection, + ipsec_site_connection): + pass + + @abc.abstractmethod + def delete_ipsec_site_connection(self, context, ipsec_site_connection): + pass + class BaseIPsecVpnAgentApi(n_rpc.RpcProxy): """Base class for IPSec API to agent.""" -- 2.45.2