summaryrefslogtreecommitdiff
path: root/src/conf_mode/system_conntrack.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-28 20:35:32 +0100
committerGitHub <noreply@github.com>2024-02-28 20:35:32 +0100
commitfc96c0150eb632e016d7f2ba8adf32a9940c1e8c (patch)
treee41c55228643fac1694d87d24183381d45ef4f38 /src/conf_mode/system_conntrack.py
parente1644d96a613d02db8cc21ccac6226b53568c5b0 (diff)
parent6f7d1e15665655e37e8ca830e28d9650445c1217 (diff)
downloadvyos-1x-fc96c0150eb632e016d7f2ba8adf32a9940c1e8c.tar.gz
vyos-1x-fc96c0150eb632e016d7f2ba8adf32a9940c1e8c.zip
Merge pull request #3055 from sarthurdev/T6073
vrf: conntrack: T6073: Populate VRF zoning chains only while conntrack is required
Diffstat (limited to 'src/conf_mode/system_conntrack.py')
-rwxr-xr-xsrc/conf_mode/system_conntrack.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/system_conntrack.py b/src/conf_mode/system_conntrack.py
index 7f6c71440..e075bc928 100755
--- a/src/conf_mode/system_conntrack.py
+++ b/src/conf_mode/system_conntrack.py
@@ -104,6 +104,10 @@ def get_config(config=None):
if conf.exists(['service', 'conntrack-sync']):
set_dependents('conntrack_sync', conf)
+ # If conntrack status changes, VRF zone rules need updating
+ if conf.exists(['vrf']):
+ set_dependents('vrf', conf)
+
return conntrack
def verify(conntrack):