Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202205]Use device loopback IP address to send SNMP query from neighboring ceos or vsonic (#8802) #8972

Merged
merged 2 commits into from
Jul 14, 2023

Commits on Jul 13, 2023

  1. Use device loopback IP address to send SNMP query from neighboring ce…

    …os or vsonic (sonic-net#8802)
    
    What is the motivation for this PR?
    sonic-net/sonic-buildimage#15487 modifies snmpd in SONiC to listen on management and loopback ip by default instead of listening on any IP.
    test_interop_protocol.py::test_snmp sends a query to the neighbor device using the link ip address.
    After the above change to listen on management and loopback ip, the snmp query will fail.
    Hence, modifying the test to send SNMP query to SONiC DUT from neighboring vsonic/eos using Loopback IP of SONiC DUT.
    
    How did you do it?
    Get loopback IPv4 address DUT and use that to query from neighbor device.
    Added a generic helped function to send SNMP query to DUT from a neighbor.
    
    (cherry picked from commit d66965a)
    SuvarnaMeenakshi committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    4530c13 View commit details
    Browse the repository at this point in the history
  2. Missing import

    Signed-off-by: Suvarna Meenakshi <[email protected]>
    SuvarnaMeenakshi committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    fb3e353 View commit details
    Browse the repository at this point in the history