summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-22 18:42:28 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-22 18:42:49 +0100
commitb95e5d120fb13b7ade66db7523b56e3f55bf6439 (patch)
tree13ee95ac24d017a06db7a8070d4fbec0dc305dfb
parent3fd31206fd6f00e407147e14877b0c70aacd3770 (diff)
downloadvyos-1x-b95e5d120fb13b7ade66db7523b56e3f55bf6439.tar.gz
vyos-1x-b95e5d120fb13b7ade66db7523b56e3f55bf6439.zip
wireguard: T2206: improve help strings
-rw-r--r--interface-definitions/include/port-number.xml.i2
-rw-r--r--interface-definitions/interfaces-wireguard.xml.in19
2 files changed, 16 insertions, 5 deletions
diff --git a/interface-definitions/include/port-number.xml.i b/interface-definitions/include/port-number.xml.i
index 0d0747811..81c192628 100644
--- a/interface-definitions/include/port-number.xml.i
+++ b/interface-definitions/include/port-number.xml.i
@@ -1,7 +1,7 @@
<!-- included start from port-number.xml.i -->
<leafNode name="port">
<properties>
- <help>Port number used to establish connection</help>
+ <help>Port number used by connection</help>
<valueHelp>
<format>u32:1-65535</format>
<description>Numeric IP port</description>
diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in
index e54ef12f7..92c9f510c 100644
--- a/interface-definitions/interfaces-wireguard.xml.in
+++ b/interface-definitions/interfaces-wireguard.xml.in
@@ -90,21 +90,32 @@
</leafNode>
<leafNode name="address">
<properties>
- <help>IP address of tunnel remote end</help>
+ <help>IP address of tunnel endpoint</help>
<valueHelp>
<format>ipv4</format>
- <description>IPv4 address to listen for incoming connections</description>
+ <description>IPv4 address of remote tunnel endpoint</description>
</valueHelp>
<valueHelp>
<format>ipv6</format>
- <description>IPv6 address to listen for incoming connections</description>
+ <description>IPv6 address of remote tunnel endpoint</description>
</valueHelp>
<constraint>
<validator name="ip-address"/>
</constraint>
</properties>
</leafNode>
- #include <include/port-number.xml.i>
+ <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>
<leafNode name="persistent-keepalive">
<properties>
<help>Interval to send keepalive messages</help>