We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e9bd27 commit cbf4584Copy full SHA for cbf4584
tests/common/plugins/sanity_check/checks.py
@@ -193,7 +193,12 @@ def _restart_bgp(dut):
193
194
def _check_bgp_status_helper():
195
asic_check_results = []
196
- bgp_facts = dut.bgp_facts(asic_index='all')
+ try:
197
+ bgp_facts = dut.bgp_facts(asic_index='all')
198
+ except Exception as e:
199
+ logger.error("Failed to get BGP status on host %s: %s", dut.hostname, repr(e))
200
+ check_result['failed'] = True
201
+ return False
202
203
# Conditions to fail BGP check
204
# 1. No BGP neighbor.
0 commit comments