summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-03 21:12:58 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-03 21:12:58 +0100
commit77deec39262be04d121bd500d80ba2ed8bf04f84 (patch)
tree2d28e4719b0d62941ce1943256fe40e1659d5607 /src
parentf4625c9ee2f54992ed96f113ff52c5a9993ea769 (diff)
downloadvyos-1x-77deec39262be04d121bd500d80ba2ed8bf04f84.tar.gz
vyos-1x-77deec39262be04d121bd500d80ba2ed8bf04f84.zip
mirror: add verify() check so we can not mirror back to our self
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-ethernet.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py
index ed6396acf..bc102826f 100755
--- a/src/conf_mode/interfaces-ethernet.py
+++ b/src/conf_mode/interfaces-ethernet.py
@@ -29,6 +29,7 @@ from vyos.configverify import verify_mtu_ipv6
from vyos.configverify import verify_vlan_config
from vyos.configverify import verify_vrf
from vyos.configverify import verify_eapol
+from vyos.configverify import verify_mirror
from vyos.ifconfig import EthernetIf
from vyos.template import render
from vyos.util import call
@@ -74,6 +75,7 @@ def verify(ethernet):
verify_address(ethernet)
verify_vrf(ethernet)
verify_eapol(ethernet)
+ verify_mirror(ethernet)
ifname = ethernet['ifname']
# verify offloading capabilities