summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-12-11 19:33:08 +0100
committerChristian Poessinger <christian@poessinger.com>2022-12-11 19:34:15 +0100
commit9fe2353ee85fda18c181dab973cbcde6d2294e6c (patch)
tree0808b74c80c6e1ef5d31ce1bd2f276121f400f9c
parenta52a52c433d43e4df986fdb7192d9a8357df446a (diff)
downloadvyos-1x-9fe2353ee85fda18c181dab973cbcde6d2294e6c.tar.gz
vyos-1x-9fe2353ee85fda18c181dab973cbcde6d2294e6c.zip
pppoe: xml: T4792: split "no-peer-dns" CLI node into building block
-rw-r--r--interface-definitions/include/interface/no-peer-dns.xml.i8
-rw-r--r--interface-definitions/interfaces-pppoe.xml.in7
2 files changed, 9 insertions, 6 deletions
diff --git a/interface-definitions/include/interface/no-peer-dns.xml.i b/interface-definitions/include/interface/no-peer-dns.xml.i
new file mode 100644
index 000000000..d663f04c1
--- /dev/null
+++ b/interface-definitions/include/interface/no-peer-dns.xml.i
@@ -0,0 +1,8 @@
+<!-- include start from interface/no-peer-dns.xml.i -->
+<leafNode name="no-peer-dns">
+ <properties>
+ <help>Do not use DNS servers provided by the peer</help>
+ <valueless/>
+ </properties>
+</leafNode>
+<!-- include end -->
diff --git a/interface-definitions/interfaces-pppoe.xml.in b/interface-definitions/interfaces-pppoe.xml.in
index 719060fa9..35c4889ea 100644
--- a/interface-definitions/interfaces-pppoe.xml.in
+++ b/interface-definitions/interfaces-pppoe.xml.in
@@ -82,12 +82,7 @@
<leafNode name="mtu">
<defaultValue>1492</defaultValue>
</leafNode>
- <leafNode name="no-peer-dns">
- <properties>
- <help>Do not use DNS servers provided by the peer</help>
- <valueless/>
- </properties>
- </leafNode>
+ #include <include/interface/no-peer-dns.xml.i>
<leafNode name="remote-address">
<properties>
<help>IPv4 address of remote end of the PPPoE link</help>