Skip to content

Commit

Permalink
Make API is_bgp_suppress_enable as this can return backtrace in
Browse files Browse the repository at this point in the history
Config reload/minigraph as bgp containe rmight not be up and running.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
  • Loading branch information
abdosi committed Dec 16, 2024
1 parent 4a4a4c9 commit 9e0570b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/route_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9e0570b

Please sign in to comment.