From: Ly Loi Date: Tue, 22 Jul 2014 21:22:12 +0000 (-0700) Subject: Define some abstract methods in VpnDriver class X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=940d125922f16ae8c2aa4187b46304fc66648c52;p=openstack-build%2Fneutron-build.git 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 --- 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."""