summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-08 21:29:15 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-08 21:29:15 +0200
commita9ad4ad88ff3aabc5053d42c1595d78290f39b2b (patch)
treea9159248fd44dd5ac6912af1e1ff104c7ffb778e /interface-definitions/include
parentb184a5700f22bac01aa937fa3d8321f003d6ca14 (diff)
parent3f44a6e920100d9530b653fa08d18ec09d1c8231 (diff)
downloadvyos-1x-a9ad4ad88ff3aabc5053d42c1595d78290f39b2b.tar.gz
vyos-1x-a9ad4ad88ff3aabc5053d42c1595d78290f39b2b.zip
Merge branch 't2244-wireguard' of github.com:c-po/vyos-1x into current
* 't2244-wireguard' of github.com:c-po/vyos-1x: wireguard: T2244: split port configuration to XML include file wireguard: T2247: add VRF support wireguard: T2244: use xml include for mtu wireguard: T2244: rewrite to match code structure of other interfaces
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/port-number.xml.i12
1 files changed, 12 insertions, 0 deletions
diff --git a/interface-definitions/include/port-number.xml.i b/interface-definitions/include/port-number.xml.i
new file mode 100644
index 000000000..78eb4b7af
--- /dev/null
+++ b/interface-definitions/include/port-number.xml.i
@@ -0,0 +1,12 @@
+<leafNode name="port">
+ <properties>
+ <help>Port number used to establish connection</help>
+ <valueHelp>
+ <format>1-65535</format>
+ <description>Numeric IP port</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+</leafNode>