forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IPv6 only] Fix ipv6_only fixture to remove ipv4 from snmp agent addr…
…ess (sonic-net#12325) Description of PR Fix the ipv6 fixture to handle SNMP_AGENT_ADDRESS_CONFIG in config. Revise the assert_addr_in_ifconfig to assert_addr_in_output to make it more reusable. Summary: Fix feature interaction issue between [sonic-net/SONiC#12010:https://github.com/sonic-net/SONiC/pull/12010] and [sonic-net/SONiC#17045:https://github.com/sonic-net/SONiC/pull/17045] Approach What is the motivation for this PR? current convert_and_restore_config_db_to_ipv6_only() fixture - removes the IPv4 mgmt address, but the IPV4 mgmt address continues to be in SNMP_AGENT_ADDRESS_CONFIG table. Upon config reload when snmpd comes up, it sees ipv4 and ipv6 mgmt addresses in SNMP_AGENT_ADDRESS_CONFIG table and snmpd fails to come up as mgmt interface does not have ipv4 address assigned to the interface. How did you do it? Fixture will check all IPs in the SNMP_AGENT_ADDRESS_CONFIG table and remove the IPv4 addresses. How did you verify/test it? Run on physical testbeds, with dual-stack mgmt-ip addresses testbed and only with IPv6/IPv4 mgmt-ip address testbed. ip/test_mgmt_ipv6_only.py::test_bgp_facts_ipv6_only[-] PASSED [ 20%] ip/test_mgmt_ipv6_only.py::test_show_features_ipv6_only[-] PASSED [ 40%] ip/test_mgmt_ipv6_only.py::test_image_download_ipv6_only[-] SKIPPED (Cannot get image url) [ 60%] ip/test_mgmt_ipv6_only.py::test_syslog_ipv6_only[-] PASSED [ 80%] ip/test_mgmt_ipv6_only.py::test_syslog_ipv6_only[-] PASSED [100%] co-authorized by: [email protected]
- Loading branch information
Showing
1 changed file
with
89 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters