diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-06 12:13:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 12:13:47 +0100 |
commit | 5ae3f05d50f386cad33e7011ca9712e925ac7fa5 (patch) | |
tree | a2f3f705ceeed8bcbdff985e7b1b26f63572852f /python | |
parent | 9c091f0f601d1a24e386ad0d883c6dd2f2c51b63 (diff) | |
parent | dda428fc42c44decb3e661a7b6ba4e55b178dc4f (diff) | |
download | vyos-1x-5ae3f05d50f386cad33e7011ca9712e925ac7fa5.tar.gz vyos-1x-5ae3f05d50f386cad33e7011ca9712e925ac7fa5.zip |
Merge pull request #4180 from nicolas-fort/zbf-vrfaware
T6841: firewall: improve config parsing for ZBF when using VRFs and interfaces attached to VRFs
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/utils/network.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/vyos/utils/network.py b/python/vyos/utils/network.py index 8fce08de0..dc0c0a6d6 100644 --- a/python/vyos/utils/network.py +++ b/python/vyos/utils/network.py @@ -69,7 +69,9 @@ def get_vrf_members(vrf: str) -> list: answer = json.loads(output) for data in answer: if 'ifname' in data: - interfaces.append(data.get('ifname')) + # Skip PIM interfaces which appears in VRF + if 'pim' not in data.get('ifname'): + interfaces.append(data.get('ifname')) except: pass return interfaces |