diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-12-08 11:27:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 11:27:49 +0100 |
commit | 2a25efce5f3e03385a4fa1a412d6f41a07e9d483 (patch) | |
tree | c1d55aa093c69fd92e934e26bca6f8a7d5caff61 /interface-definitions/include | |
parent | 7ef0840d464205964314c97e4335a2fcf0ca0532 (diff) | |
parent | e8957b575b050b075b74c94c3352d253414f4a6f (diff) | |
download | vyos-1x-2a25efce5f3e03385a4fa1a412d6f41a07e9d483.tar.gz vyos-1x-2a25efce5f3e03385a4fa1a412d6f41a07e9d483.zip |
Merge pull request #633 from jack9603301/T3089
mirror: T3089: support two-way traffic mirroring
Diffstat (limited to 'interface-definitions/include')
-rw-r--r-- | interface-definitions/include/interface-mirror.xml.i | 26 |
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 --> |