summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-20 21:02:59 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-20 21:03:35 +0200
commitd457ef195293b8f4971ecded227134f0bec0fc0a (patch)
treeaa5a47b8ade5e32e88ecc94dafd75c7e542573e4 /interface-definitions
parentad44a7301c038e0a300a20fc26952e86b3b92d83 (diff)
downloadvyos-1x-d457ef195293b8f4971ecded227134f0bec0fc0a.tar.gz
vyos-1x-d457ef195293b8f4971ecded227134f0bec0fc0a.zip
macvlan: T2023: prepare common source interface include file
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/source-interface-ethernet.xml.i12
-rw-r--r--interface-definitions/interfaces-pseudo-ethernet.xml.in13
2 files changed, 13 insertions, 12 deletions
diff --git a/interface-definitions/include/source-interface-ethernet.xml.i b/interface-definitions/include/source-interface-ethernet.xml.i
new file mode 100644
index 000000000..ad90bc4ac
--- /dev/null
+++ b/interface-definitions/include/source-interface-ethernet.xml.i
@@ -0,0 +1,12 @@
+<leafNode name="source-interface">
+ <properties>
+ <help>Physical interface the traffic will go through</help>
+ <valueHelp>
+ <format>interface</format>
+ <description>Physical interface used for traffic forwarding</description>
+ </valueHelp>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py -t ethernet</script>
+ </completionHelp>
+ </properties>
+</leafNode>
diff --git a/interface-definitions/interfaces-pseudo-ethernet.xml.in b/interface-definitions/interfaces-pseudo-ethernet.xml.in
index 61fd6c9fd..d5f9ca661 100644
--- a/interface-definitions/interfaces-pseudo-ethernet.xml.in
+++ b/interface-definitions/interfaces-pseudo-ethernet.xml.in
@@ -41,18 +41,7 @@
#include <include/ipv6-dup-addr-detect-transmits.xml.i>
</children>
</node>
- <leafNode name="source-interface">
- <properties>
- <help>Physical Interface used for this device</help>
- <valueHelp>
- <format>interface</format>
- <description>Physical interface used for this pseudo device</description>
- </valueHelp>
- <completionHelp>
- <script>${vyos_completion_dir}/list_interfaces.py -t ethernet</script>
- </completionHelp>
- </properties>
- </leafNode>
+ #include <include/source-interface-ethernet.xml.i>
#include <include/interface-mac.xml.i>
<leafNode name="mode">
<properties>