Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[openvpn] Added topology attribute to schema
- Loading branch information
Showing
with
12 additions
and
0 deletions.
-
+10
−0
netjsonconfig/backends/openvpn/schema.py
-
+2
−0
tests/openvpn/test_backend.py
|
@@ -468,6 +468,16 @@ |
|
|
"default": "udp", |
|
|
"options": {"enum_titles": ["UDP", "TCP"]} |
|
|
}, |
|
|
"topology": { |
|
|
"title": "topology", |
|
|
"description": "Configure virtual addressing topology when running in tun " |
|
|
"mode. This directive has no meaning in tap mode, which " |
|
|
"always uses a subnet topology.", |
|
|
"enum": ["net30", "p2p", "subnet"], |
|
|
"type": "string", |
|
|
"default": "subnet", |
|
|
"propertyOrder": 7, |
|
|
}, |
|
|
"tls_server": { |
|
|
"title": "TLS Server", |
|
|
"description": "Enable TLS authentication", |
|
|
|
@@ -147,6 +147,7 @@ def test_client_mode(self): |
|
|
"status": "/var/log/openvpn.status 30", |
|
|
"status_version": 1, |
|
|
"tls_client": True, |
|
|
"topology": "p2p", |
|
|
"tun_ipv6": True, |
|
|
"up": "/home/user/up-command.sh", |
|
|
"up_delay": 10, |
|
@@ -187,6 +188,7 @@ def test_client_mode(self): |
|
|
status /var/log/openvpn.status 30 |
|
|
status-version 1 |
|
|
tls-client |
|
|
topology p2p |
|
|
tun-ipv6 |
|
|
up /home/user/up-command.sh |
|
|
up-delay 10 |
|
|