summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-04-05 17:15:42 +0300
committerNataliia Solomko <natalirs1985@gmail.com>2024-04-05 17:15:42 +0300
commit8052a2e07b67156b95a20701184596c1b8af8369 (patch)
tree64502214871881d4cf1dd256d719a5ebd8df1dc3
parentae96118ec38c4064552889aea5e50023a66aac1e (diff)
downloadvyos-1x-8052a2e07b67156b95a20701184596c1b8af8369.tar.gz
vyos-1x-8052a2e07b67156b95a20701184596c1b8af8369.zip
conntrack-sync: T1244: Support for StartupResync in conntrackd
-rw-r--r--data/templates/conntrackd/conntrackd.conf.tmpl1
-rw-r--r--interface-definitions/service_conntrack-sync.xml.in6
2 files changed, 7 insertions, 0 deletions
diff --git a/data/templates/conntrackd/conntrackd.conf.tmpl b/data/templates/conntrackd/conntrackd.conf.tmpl
index 3f957b696..b87edfd75 100644
--- a/data/templates/conntrackd/conntrackd.conf.tmpl
+++ b/data/templates/conntrackd/conntrackd.conf.tmpl
@@ -4,6 +4,7 @@
Sync {
Mode FTFW {
DisableExternalCache {{ 'on' if disable_external_cache is defined else 'off' }}
+ StartupResync {{ 'on' if enable_startup_resync is defined else 'off' }}
}
{% for iface, iface_config in interface.items() %}
{% if loop.first %}
diff --git a/interface-definitions/service_conntrack-sync.xml.in b/interface-definitions/service_conntrack-sync.xml.in
index 105c2a3a0..4bb07643b 100644
--- a/interface-definitions/service_conntrack-sync.xml.in
+++ b/interface-definitions/service_conntrack-sync.xml.in
@@ -80,6 +80,12 @@
<multi/>
</properties>
</leafNode>
+ <leafNode name="enable-startup-resync">
+ <properties>
+ <help>Order conntrackd to request a complete conntrack table resync against the other node at startup</help>
+ <valueless/>
+ </properties>
+ </leafNode>
<node name="failover-mechanism">
<properties>
<help>Failover mechanism to use for conntrack-sync</help>