summaryrefslogtreecommitdiffstats
path: root/tools/frr-reload.py
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2021-02-26 17:31:07 +0100
committerChirag Shah <chirag@nvidia.com>2021-03-08 20:58:29 +0100
commitf26070fc07a279d3a616e8f2d5d05069625f6de5 (patch)
tree49b431356c5f7c3c68a49cda5295629d3db478e7 /tools/frr-reload.py
parentMerge pull request #8180 from kuldeepkash/topojson_framework (diff)
downloadfrr-f26070fc07a279d3a616e8f2d5d05069625f6de5.tar.xz
frr-f26070fc07a279d3a616e8f2d5d05069625f6de5.zip
tools: Mark reload failure when no form cli fails
if no form of the cli fails to execute, mark frr-reload as failure so return code can be nonzero. The similar approach is done for non no-form (add case) of the cli. Ticket:CM-33345 Reviewed By:CCR-11287 Testing Done: Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'tools/frr-reload.py')
-rwxr-xr-xtools/frr-reload.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py
index b98c001e7..60647a883 100755
--- a/tools/frr-reload.py
+++ b/tools/frr-reload.py
@@ -2024,6 +2024,7 @@ if __name__ == "__main__":
'"%s" we failed to remove this command',
" -- ".join(original_cmd),
)
+ reload_ok = False
break
new_last_arg = last_arg[0:-1]