diff --git a/scripts/route_check.py b/scripts/route_check.py index 9974bb1c55..56c845424c 100755 --- a/scripts/route_check.py +++ b/scripts/route_check.py @@ -338,6 +338,7 @@ def is_suppress_fib_pending_enabled(namespace): return state == 'enabled' + def fetch_routes(cmd): """ Fetch routes using the given command. @@ -747,7 +748,6 @@ def check_routes_for_namespace(namespace): rt_asic_miss = filter_out_standalone_tunnel_routes(namespace, rt_asic_miss) rt_asic_miss = filter_out_soc_ip_routes(namespace, rt_asic_miss) - # Check APPL-DB INTF_TABLE with ASIC table route entries intf_appl_miss, _ = diff_sorted_lists(intf_appl, rt_asic) @@ -795,6 +795,7 @@ def check_routes_for_namespace(namespace): return results, adds, deletes + def check_routes(namespace): """ Main function to parallelize route checks across all namespaces. @@ -892,6 +893,5 @@ def main(): return ret, res - if __name__ == "__main__": sys.exit(main()[0])