summaryrefslogtreecommitdiff
path: root/src/conf_mode/system_ip.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-12 21:25:42 +0100
committerChristian Breunig <christian@breunig.cc>2024-12-16 22:24:50 +0100
commit7d99257902c2d638dbf9a8a095660d6aa0d92e38 (patch)
treedef8b5ed6e15c64bcbe92062e60d0d751bc2bdd9 /src/conf_mode/system_ip.py
parent176f974d1c50aae44ec985467aa37f01ca6e0169 (diff)
downloadvyos-1x-7d99257902c2d638dbf9a8a095660d6aa0d92e38.tar.gz
vyos-1x-7d99257902c2d638dbf9a8a095660d6aa0d92e38.zip
frr: T6746: do not use FRRender apply() method when vyos-configd is running
Diffstat (limited to 'src/conf_mode/system_ip.py')
-rwxr-xr-xsrc/conf_mode/system_ip.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/system_ip.py b/src/conf_mode/system_ip.py
index 374e6e611..86843eb78 100755
--- a/src/conf_mode/system_ip.py
+++ b/src/conf_mode/system_ip.py
@@ -25,6 +25,7 @@ from vyos.configverify import verify_route_map
from vyos.frrender import FRRender
from vyos.utils.dict import dict_search
from vyos.utils.process import is_systemd_service_active
+from vyos.utils.process import is_systemd_service_running
from vyos.utils.system import sysctl_write
from vyos import ConfigError
from vyos import airbag
@@ -55,7 +56,7 @@ def verify(config_dict):
return
def generate(config_dict):
- if config_dict and 'frrender_cls' not in config_dict:
+ if config_dict and not is_systemd_service_running('vyos-configd.service'):
FRRender().generate(config_dict)
return None
@@ -109,7 +110,7 @@ def apply(config_dict):
# running when this script is called first. Skip this part and wait for initial
# commit of the configuration to trigger this statement
if is_systemd_service_active('frr.service'):
- if config_dict and 'frrender_cls' not in config_dict:
+ if config_dict and not is_systemd_service_running('vyos-configd.service'):
FRRender().apply()
call_dependents()