From d19ac1e8f42cc591461210490c82e315ca4d3996 Mon Sep 17 00:00:00 2001 From: deepak-singhal0408 Date: Thu, 12 Sep 2024 23:28:29 +0000 Subject: [PATCH] Fix pre-commit --- scripts/route_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])