summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-22 17:44:52 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-22 17:44:52 +0200
commitcc87303aad1f5b9140ddcd82a9a75df1979b087c (patch)
tree90f4c84f3d9a97f9008240bea7236e6383fe9f3e /interface-definitions
parentfbdafa2987edece3dfff516f0f13f91a8dd5cb86 (diff)
downloadvyos-1x-cc87303aad1f5b9140ddcd82a9a75df1979b087c.tar.gz
vyos-1x-cc87303aad1f5b9140ddcd82a9a75df1979b087c.zip
accel-ppp: provide common wins-server include definition
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/accel-wins-server.xml.i13
-rw-r--r--interface-definitions/service_pppoe-server.xml.in14
-rw-r--r--interface-definitions/vpn_l2tp.xml.in14
3 files changed, 15 insertions, 26 deletions
diff --git a/interface-definitions/include/accel-wins-server.xml.i b/interface-definitions/include/accel-wins-server.xml.i
new file mode 100644
index 000000000..461a65ddf
--- /dev/null
+++ b/interface-definitions/include/accel-wins-server.xml.i
@@ -0,0 +1,13 @@
+<leafNode name="wins-server">
+ <properties>
+ <help>Windows Internet Name Service (WINS) servers propagated to client</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>Domain Name Server (DNS) IPv4 address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ </constraint>
+ <multi/>
+ </properties>
+</leafNode>
diff --git a/interface-definitions/service_pppoe-server.xml.in b/interface-definitions/service_pppoe-server.xml.in
index 27669f1c3..6b09b3db4 100644
--- a/interface-definitions/service_pppoe-server.xml.in
+++ b/interface-definitions/service_pppoe-server.xml.in
@@ -255,19 +255,7 @@
<multi/>
</properties>
</leafNode>
- <leafNode name="wins-server">
- <properties>
- <help>Windows Internet Name Service (WINS) servers propagated to client</help>
- <valueHelp>
- <format>ipv4</format>
- <description>Domain Name Server (DNS) IPv4 address</description>
- </valueHelp>
- <constraint>
- <validator name="ipv4-address"/>
- </constraint>
- <multi/>
- </properties>
- </leafNode>
+ #include <include/accel-wins-server.xml.i>
<node name="ppp-options">
<properties>
<help>Advanced protocol options</help>
diff --git a/interface-definitions/vpn_l2tp.xml.in b/interface-definitions/vpn_l2tp.xml.in
index ab0435172..702ef8b5a 100644
--- a/interface-definitions/vpn_l2tp.xml.in
+++ b/interface-definitions/vpn_l2tp.xml.in
@@ -165,19 +165,7 @@
</leafNode>
</children>
</node>
- <leafNode name="wins-server">
- <properties>
- <help>Windows Internet Name Service (WINS) servers propagated to client</help>
- <valueHelp>
- <format>ipv4</format>
- <description>Domain Name Server (DNS) IPv4 address</description>
- </valueHelp>
- <constraint>
- <validator name="ipv4-address"/>
- </constraint>
- <multi/>
- </properties>
- </leafNode>
+ #include <include/accel-wins-server.xml.i>
<node name="client-ip-pool">
<properties>
<help>Pool of client IP addresses (must be within a /24)</help>