blob: 7dfabf7d1f963175426e0c96641ceec23d3ea914 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
class _TempEIPConfig(object):
"""Current EIP code on bitmask depends on EIPConfig object, this temporary
implementation helps on the transition."""
def __init__(self, flags, path, ports):
self._flags = flags
self._path = path
self._ports = ports
def get_gateway_ports(self, idx):
return self._ports
def get_openvpn_configuration(self):
return self._flags
def get_client_cert_path(self, providerconfig):
return self._path
class _TempProviderConfig(object):
"""Current EIP code on bitmask depends on ProviderConfig object, this
temporary implementation helps on the transition."""
def __init__(self, domain, path):
self._domain = domain
self._path = path
def get_domain(self):
return self._domain
def get_ca_cert_path(self):
return self._path
|