Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chassis] Snmp fixes - test_snmp_default_route and test_snmp_queue_co…
…unters (#15279) Summary: This PR fixes test issue introduced as part of #3537 for test_snmp_default_route test, and General fix for test_snmp_queue_counters test teardown. Type of change Approach What is the motivation for this PR? After PR #3537 introduction, CLI command output for 'show ip route 0.0.0.0/0' has been changed and a new word 'recursive' gets added. Hence sonic-mgmt needs to be modified to support this new change. For example, "* 11.0.0.145 recursive via iBGP" During teardown of 'test_snmp_queue_counters' test, sometimes we see the following error while recopying the config_db json file for the duthost. E tests.common.errors.RunAnsibleModuleFail: run module copy failed, Ansible Results => E {"changed": false, "failed": true, "msg": "Source /etc/sonic/orig_config_db1.json not found"} complex_args = {'dest': '/etc/sonic/config_db1.json', 'remote_src': True, 'src': '/etc/sonic/orig_config_db1.json'} filename = '/data/tests/snmp/test_snmp_queue_counters.py' function_name = 'teardown' How did you do it? Handle 'recursive' word as well while parsing for ip-address in test_snmp_default_route test case. Make sure the duthost is same during test call and teardown in test_snmp_queue_counters test case. How did you verify/test it? Ran all the above-mentioned test cases on a T2 chassis and made sure tests passed with expected behavior.
- Loading branch information