summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2020-12-08 15:12:13 +0800
committerjack9603301 <jack9603301@163.com>2020-12-08 15:12:13 +0800
commite8957b575b050b075b74c94c3352d253414f4a6f (patch)
tree55c7d5a55367a69255ec3c8b047af0698a4faf81 /interface-definitions
parent722e886ac2bf644dd904f0a5049f6bcac7951ccb (diff)
downloadvyos-1x-e8957b575b050b075b74c94c3352d253414f4a6f.tar.gz
vyos-1x-e8957b575b050b075b74c94c3352d253414f4a6f.zip
mirror: T3089: support two-way traffic mirroring
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/interface-mirror.xml.i26
1 files changed, 20 insertions, 6 deletions
diff --git a/interface-definitions/include/interface-mirror.xml.i b/interface-definitions/include/interface-mirror.xml.i
index e3720cde7..d34132a9c 100644
--- a/interface-definitions/include/interface-mirror.xml.i
+++ b/interface-definitions/include/interface-mirror.xml.i
@@ -1,11 +1,25 @@
<!-- included start from interface-mirror.xml.i -->
-<leafNode name="mirror">
+<node name="mirror">
<properties>
<help>Incoming/outgoing packet mirroring destination</help>
- <completionHelp>
- <script>${vyos_completion_dir}/list_interfaces.py</script>
- </completionHelp>
- <multi/>
</properties>
-</leafNode>
+ <children>
+ <leafNode name="ingress">
+ <properties>
+ <help>Mirror the ingress traffic of the interface to the destination interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ </properties>
+ </leafNode>
+ <leafNode name="egress">
+ <properties>
+ <help>Mirror the egress traffic of the interface to the destination interface</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ </properties>
+ </leafNode>
+ </children>
+</node>
<!-- included end -->