summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-06 18:18:12 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-06 20:58:56 +0100
commit22091b99ce884a7bf81d65bba0d0a705776ba471 (patch)
tree945c1ab2dc89405ad0314ae7b26206914e94467d /interface-definitions/include
parent24c99947f4a7ca8b3519a69f8c61eba8af55d859 (diff)
downloadvyos-1x-22091b99ce884a7bf81d65bba0d0a705776ba471.tar.gz
vyos-1x-22091b99ce884a7bf81d65bba0d0a705776ba471.zip
T1843: use include files for interface arp-cache-timeout configuration
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/interface-arp-cache-timeout.xml.i13
-rw-r--r--interface-definitions/include/vif.xml.i14
2 files changed, 14 insertions, 13 deletions
diff --git a/interface-definitions/include/interface-arp-cache-timeout.xml.i b/interface-definitions/include/interface-arp-cache-timeout.xml.i
new file mode 100644
index 000000000..81d35f593
--- /dev/null
+++ b/interface-definitions/include/interface-arp-cache-timeout.xml.i
@@ -0,0 +1,13 @@
+<leafNode name="arp-cache-timeout">
+ <properties>
+ <help>ARP cache entry timeout in seconds</help>
+ <valueHelp>
+ <format>1-86400</format>
+ <description>ARP cache entry timout in seconds (default 30)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-86400"/>
+ </constraint>
+ <constraintErrorMessage>ARP cache entry timeout must be between 1 and 86400 seconds</constraintErrorMessage>
+ </properties>
+</leafNode>
diff --git a/interface-definitions/include/vif.xml.i b/interface-definitions/include/vif.xml.i
index 597137828..4adae6016 100644
--- a/interface-definitions/include/vif.xml.i
+++ b/interface-definitions/include/vif.xml.i
@@ -42,19 +42,7 @@
</leafNode>
<node name="ip">
<children>
- <leafNode name="arp-cache-timeout">
- <properties>
- <help>ARP cache entry timeout in seconds</help>
- <valueHelp>
- <format>1-86400</format>
- <description>ARP cache entry timout in seconds (default 30)</description>
- </valueHelp>
- <constraint>
- <validator name="numeric" argument="--range 1-86400"/>
- </constraint>
- <constraintErrorMessage>ARP cache entry timeout must be between 1 and 86400 seconds</constraintErrorMessage>
- </properties>
- </leafNode>
+ #include <include/interface-arp-cache-timeout.xml.i>
<leafNode name="enable-proxy-arp">
<properties>
<help>Enable proxy-arp on this interface</help>