summaryrefslogtreecommitdiffstats
path: root/tools/frr-reload.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/frr-reload.py')
-rwxr-xr-xtools/frr-reload.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py
index 47e363755..8a39f4204 100755
--- a/tools/frr-reload.py
+++ b/tools/frr-reload.py
@@ -400,7 +400,8 @@ class Config(object):
self.lines.append(line)
- self.lines.append(pim_vrfs)
+ if len(pim_vrfs) > 0:
+ self.lines.append(pim_vrfs)
self.load_contexts()