Define some abstract methods in VpnDriver class
Define the <op>_ipsec_site_connection() methods to ensure any new service drivers will implement them. Closes-Bug: 1326793 Change-Id: Idfe67632893592859990db486393a7108362447e
This commit is contained in:
parent
732c99ee12
commit
deb850b8b7
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user