From 939546c4213d3123babf54133698266688fd8c9f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jan 2021 17:58:35 +0000 Subject: mirror: T3089: bugfix is_mirror_intf code path --- python/vyos/ifconfig/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos/ifconfig/interface.py') 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; ' -- cgit v1.2.3