From 3fae081bec9afc3dbb4724868cda7e38d86ec90a Mon Sep 17 00:00:00 2001 From: Bhavani Parise Date: Tue, 10 Mar 2026 23:08:07 -0700 Subject: [PATCH] tests/dns: add BGP and interface recovery check during config reload - Add wait_for_bgp=True to config_reload_minigraph_with_rendered_golden_config_override in setup - Add check_intf_up_ports=True and wait_for_bgp=True to config_reload in teardown Ensures interfaces and BGP sessions are up after config reload before continuing. Made-with: Cursor --- tests/dns/test_dns_resolv_conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dns/test_dns_resolv_conf.py b/tests/dns/test_dns_resolv_conf.py index 645bbd17bbc..c1022ed3599 100644 --- a/tests/dns/test_dns_resolv_conf.py +++ b/tests/dns/test_dns_resolv_conf.py @@ -41,7 +41,7 @@ def setup_env(duthost): # Restore default dns config_reload_minigraph_with_rendered_golden_config_override( - duthost, safe_reload=True, check_intf_up_ports=True + duthost, safe_reload=True, check_intf_up_ports=True, wait_for_bgp=True ) yield @@ -54,7 +54,7 @@ def setup_env(duthost): duthost.file(path=GOLDEN_CONFIG, state='absent') # Restore config - config_reload(duthost, safe_reload=True) + config_reload(duthost, safe_reload=True, check_intf_up_ports=True, wait_for_bgp=True) def test_dns_resolv_conf(duthost):