Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[openvpn] Added topology attribute to schema
  • Loading branch information
nemesisdesign committed Feb 8, 2017
1 parent 9046599 commit f25e77e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions netjsonconfig/backends/openvpn/schema.py
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions tests/openvpn/test_backend.py
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f25e77e

Please sign in to comment.