Make synchronizer consistent with server cert naming scheme, create ports automatically, add failover servers to UI
diff --git a/xos/services/vpn/models.py b/xos/services/vpn/models.py
index ed2b033..3e98047 100644
--- a/xos/services/vpn/models.py
+++ b/xos/services/vpn/models.py
@@ -34,7 +34,8 @@
'is_persistent': True,
'ca_crt': None,
'port': None,
- 'script_text': None}
+ 'script_text': None,
+ 'failover_servers': []}
def __init__(self, *args, **kwargs):
vpn_services = VPNService.get_service_objects().all()
@@ -112,6 +113,14 @@
self.set_attribute("is_persistent", value)
@property
+ def failover_servers(self):
+ self.get_attribute("failover_servers", self.default_attributes["failover_servers"])
+
+ @failover_servers.setter
+ def failover_servers(self, value):
+ self.set_attribute("failover_servers", value)
+
+ @property
def clients_can_see_each_other(self):
"""bool: True if the client can see the subnet of the server, false otherwise."""
return self.get_attribute(