Skip to content

Commit f25e77e

Browse files
committed
[openvpn] Added topology attribute to schema
1 parent 9046599 commit f25e77e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

netjsonconfig/backends/openvpn/schema.py

+10
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,16 @@
468468
"default": "udp",
469469
"options": {"enum_titles": ["UDP", "TCP"]}
470470
},
471+
"topology": {
472+
"title": "topology",
473+
"description": "Configure virtual addressing topology when running in tun "
474+
"mode. This directive has no meaning in tap mode, which "
475+
"always uses a subnet topology.",
476+
"enum": ["net30", "p2p", "subnet"],
477+
"type": "string",
478+
"default": "subnet",
479+
"propertyOrder": 7,
480+
},
471481
"tls_server": {
472482
"title": "TLS Server",
473483
"description": "Enable TLS authentication",

tests/openvpn/test_backend.py

+2
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def test_client_mode(self):
147147
"status": "/var/log/openvpn.status 30",
148148
"status_version": 1,
149149
"tls_client": True,
150+
"topology": "p2p",
150151
"tun_ipv6": True,
151152
"up": "/home/user/up-command.sh",
152153
"up_delay": 10,
@@ -187,6 +188,7 @@ def test_client_mode(self):
187188
status /var/log/openvpn.status 30
188189
status-version 1
189190
tls-client
191+
topology p2p
190192
tun-ipv6
191193
up /home/user/up-command.sh
192194
up-delay 10

0 commit comments

Comments
 (0)