summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-17 10:00:21 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-17 10:00:21 +0200
commit6884dc45c01ac2691761fb05d7ac8b7bdc290b38 (patch)
treeef54c23646a857d2197d89b052c06f2fa0990ea0
parentc0483db231eb86ff6f5f64064d5dfce8c602e07f (diff)
downloadvyos-1x-6884dc45c01ac2691761fb05d7ac8b7bdc290b38.tar.gz
vyos-1x-6884dc45c01ac2691761fb05d7ac8b7bdc290b38.zip
xml: wireguard: use port-number building block
-rw-r--r--interface-definitions/interfaces-wireguard.xml.in13
1 files changed, 1 insertions, 12 deletions
diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in
index 773bde09c..7b6c717b9 100644
--- a/interface-definitions/interfaces-wireguard.xml.in
+++ b/interface-definitions/interfaces-wireguard.xml.in
@@ -102,18 +102,7 @@
</constraint>
</properties>
</leafNode>
- <leafNode name="port">
- <properties>
- <help>Port number used for tunnel endpoint</help>
- <valueHelp>
- <format>u32:1-65535</format>
- <description>Numeric IP port</description>
- </valueHelp>
- <constraint>
- <validator name="numeric" argument="--range 1-65535"/>
- </constraint>
- </properties>
- </leafNode>
+ #include <include/port-number.xml.i>
<leafNode name="persistent-keepalive">
<properties>
<help>Interval to send keepalive messages</help>