summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-04 17:58:35 +0000
committerChristian Poessinger <christian@poessinger.com>2021-01-04 18:59:48 +0100
commit2400e704bd2060365bd8e5391cb296e1bbc0b51c (patch)
tree8e62ad57d365e7f7c4074c32f11d7605e2ea63d8
parentf6645171ebf0dcc40d1dfd619357764bf5b1ff6f (diff)
downloadvyos-1x-2400e704bd2060365bd8e5391cb296e1bbc0b51c.tar.gz
vyos-1x-2400e704bd2060365bd8e5391cb296e1bbc0b51c.zip
mirror: T3089: bugfix is_mirror_intf code path
(cherry picked from commit 939546c4213d3123babf54133698266688fd8c9f)
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 163ab2f6a..35a964110 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -1019,7 +1019,7 @@ class Interface(Control):
if 'is_mirror_intf' in self._config:
source_if = next(iter(self._config['is_mirror_intf']))
- config = self._config['is_mirror_intf'][source_if]
+ config = self._config['is_mirror_intf'][source_if].get('mirror', None)
# Remove existing mirroring rules
delete_tc_cmd = f'tc qdisc del dev {source_if} handle ffff: ingress; '