Permalink
Browse files

[openvpn] Added topology attribute to schema

  • Loading branch information...
nemesisdesign committed Feb 8, 2017
1 parent 9046599 commit f25e77efeb71f470f3fa672ebdeaf93b677ad42c
Showing with 12 additions and 0 deletions.
  1. +10 −0 netjsonconfig/backends/openvpn/schema.py
  2. +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

0 comments on commit f25e77e

Please sign in to comment.