From 9e0570b88ff970c39e256aab8b75fbff8e26f2d0 Mon Sep 17 00:00:00 2001 From: Abhishek Dosi Date: Mon, 16 Dec 2024 09:39:33 +0000 Subject: [PATCH] Make API is_bgp_suppress_enable as this can return backtrace in Config reload/minigraph as bgp containe rmight not be up and running. Signed-off-by: Abhishek Dosi --- scripts/route_check.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/route_check.py b/scripts/route_check.py index 4a801abe97..9fb80e34cf 100755 --- a/scripts/route_check.py +++ b/scripts/route_check.py @@ -331,12 +331,9 @@ def get_asicdb_routes(namespace): def is_bgp_suppress_fib_pending_enabled(namespace): """ - Retruns True if FIB suppression is enabled in BGP config, False otherwise + On 202405 image this feature is not supported so always return False """ - show_run_cmd = ['show', 'runningconfiguration', 'bgp', '-n', namespace] - - output = subprocess.check_output(show_run_cmd, text=True) - return 'bgp suppress-fib-pending' in output + return False def is_suppress_fib_pending_enabled(namespace):