summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrf.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/vrf.py')
-rwxr-xr-xsrc/conf_mode/vrf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py
index 1b19c55d2..6533f493f 100755
--- a/src/conf_mode/vrf.py
+++ b/src/conf_mode/vrf.py
@@ -32,6 +32,7 @@ from vyos.utils.network import get_vrf_members
from vyos.utils.network import interface_exists
from vyos.utils.process import call
from vyos.utils.process import cmd
+from vyos.utils.process import is_systemd_service_running
from vyos.utils.process import popen
from vyos.utils.system import sysctl_write
from vyos import ConfigError
@@ -198,7 +199,7 @@ def generate(vrf):
# Render iproute2 VR helper names
render(config_file, 'iproute2/vrf.conf.j2', vrf)
- if 'frr_dict' in vrf and 'frrender_cls' not in vrf['frr_dict']:
+ if 'frr_dict' in vrf and not is_systemd_service_running('vyos-configd.service'):
FRRender().generate(vrf['frr_dict'])
return None
@@ -341,7 +342,7 @@ def apply(vrf):
if has_rule(afi, 2000, 'l3mdev'):
call(f'ip {afi} rule del pref 2000 l3mdev unreachable')
- if 'frr_dict' in vrf and 'frrender_cls' not in vrf['frr_dict']:
+ if 'frr_dict' in vrf and not is_systemd_service_running('vyos-configd.service'):
FRRender().apply()
return None