summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-07 11:57:09 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-07 11:58:21 +0200
commit89da1559e145d8e86750a634e5268df60e63b4b3 (patch)
tree828e85963e694296b3ec037d566d8446cd473297 /interface-definitions
parent5d9f2b33059bf314cb3e400139066e2024200c31 (diff)
downloadvyos-1x-89da1559e145d8e86750a634e5268df60e63b4b3.tar.gz
vyos-1x-89da1559e145d8e86750a634e5268df60e63b4b3.zip
XML: WireGuard: run interfacedefinition through XML lint
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-wireguard.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/interface-definitions/interfaces-wireguard.xml b/interface-definitions/interfaces-wireguard.xml
index 284a2e643..6e2622018 100644
--- a/interface-definitions/interfaces-wireguard.xml
+++ b/interface-definitions/interfaces-wireguard.xml
@@ -5,7 +5,8 @@
<tagNode name="wireguard" owner="${vyos_conf_scripts_dir}/interface-wireguard.py">
<properties>
<help>WireGuard interface name</help>
- <priority>459</priority> <!-- subsequent ones may be removed, just make sure ethernet ifs are present -->
+ <priority>459</priority>
+ <!-- subsequent ones may be removed, just make sure ethernet ifs are present -->
<constraint>
<regex>^wg[0-9]{1,4}</regex>
</constraint>
@@ -18,7 +19,7 @@
<children>
<leafNode name="address">
<properties>
- <help>IP address</help>
+ <help>IP address</help>
<constraint>
<validator name="ip-cidr"/>
</constraint>
@@ -45,7 +46,7 @@
<leafNode name="disable">
<properties>
<help>disables interface</help>
- <valueless />
+ <valueless/>
</properties>
</leafNode>
<leafNode name="port">
@@ -88,7 +89,7 @@
<leafNode name="disable">
<properties>
<help>disables peer</help>
- <valueless />
+ <valueless/>
</properties>
</leafNode>
<leafNode name="pubkey">
@@ -100,7 +101,7 @@
<constraintErrorMessage>Key is not valid 44-character (32-bytes) base64</constraintErrorMessage>
</properties>
</leafNode>
- <leafNode name="preshared-key">
+ <leafNode name="preshared-key">
<properties>
<help>base64 encoded preshared key</help>
<constraint>
@@ -115,7 +116,7 @@
<constraint>
<validator name="ip-prefix"/>
</constraint>
- <multi/>
+ <multi/>
</properties>
</leafNode>
<!-- eventually check format IP:port -->
@@ -128,7 +129,7 @@
<properties>
<help>how often send keep alives in seconds</help>
<constraint>
- <validator name="numeric" argument="--range 1-65535"/>
+ <validator name="numeric" argument="--range 1-65535"/>
</constraint>
</properties>
</leafNode>