[SNMP]: Add snmp test case using link local as snmpagent address#9268
[SNMP]: Add snmp test case using link local as snmpagent address#9268SuvarnaMeenakshi merged 15 commits intosonic-net:masterfrom
Conversation
…ic-net#9208)" This reverts commit 1c5b8dd.
Signed-off-by: Suvarna Meenakshi <[email protected]>
Signed-off-by: Suvarna Meenakshi <[email protected]>
…nic-net#9232)"" This reverts commit a12ac1e.
…ry` (sonic-net#9208)"" This reverts commit 6ceebe4.
…onic-net#8988)"" This reverts commit d51c9a6.
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Signed-off-by: Suvarna Meenakshi <[email protected]>
tests/snmp/test_snmp_link_local.py
Outdated
| break | ||
| # configure link local IP in config_db | ||
| duthost.shell( | ||
| 'redis-cli -n 4 hset "MGMT_INTERFACE|eth0|{}" "gwaddr" "fe80::1"' |
tests/snmp/test_snmp_link_local.py
Outdated
| # link local IP configured in MGMT_INTERFACE | ||
| duthost.shell("systemctl restart snmp") | ||
| stdout_lines = duthost.shell("docker exec snmp snmpget \ | ||
| -v2c -c {} {}%eth0 1.3.6.1.2.1.1.1.0" |
Signed-off-by: Suvarna Meenakshi <[email protected]>
…onic-net#8988)"" This reverts commit 87ad5db.
PR checker. Signed-off-by: Suvarna Meenakshi <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@SuvarnaMeenakshi This is to add a new test. Do we really need it in 202205 branch? |
…ic-net#9268) What is the motivation for this PR? Test added to use link local IP address as snmpagent address. How did you do it? Use ink local IP of eth0 IP address, configure that as MGMT address. Restart SNMP service so that snmpd.conf uses newly assigned MGMT address as snmpagent address Query using link local address Check if snmpresult is as expected. reload config to remove the MGMT link local IP assignment. How did you verify/test it? Verified on VS testbed,.
|
Cherry-pick PR to 202305: #9490 |
What is the motivation for this PR? Test added to use link local IP address as snmpagent address. How did you do it? Use ink local IP of eth0 IP address, configure that as MGMT address. Restart SNMP service so that snmpd.conf uses newly assigned MGMT address as snmpagent address Query using link local address Check if snmpresult is as expected. reload config to remove the MGMT link local IP assignment. How did you verify/test it? Verified on VS testbed,.
@wangxin The change to support IPv6 SNMP is merged in 202205 and this change caused SNMP over link local IPv6 to fail. |
…ic-net#9268) What is the motivation for this PR? Test added to use link local IP address as snmpagent address. How did you do it? Use ink local IP of eth0 IP address, configure that as MGMT address. Restart SNMP service so that snmpd.conf uses newly assigned MGMT address as snmpagent address Query using link local address Check if snmpresult is as expected. reload config to remove the MGMT link local IP assignment. How did you verify/test it? Verified on VS testbed,.
|
Cherry-pick PR to 202205: #9710 |
What is the motivation for this PR? Test added to use link local IP address as snmpagent address. How did you do it? Use ink local IP of eth0 IP address, configure that as MGMT address. Restart SNMP service so that snmpd.conf uses newly assigned MGMT address as snmpagent address Query using link local address Check if snmpresult is as expected. reload config to remove the MGMT link local IP assignment. How did you verify/test it? Verified on VS testbed,.
…ic-net#9268) What is the motivation for this PR? Test added to use link local IP address as snmpagent address. How did you do it? Use ink local IP of eth0 IP address, configure that as MGMT address. Restart SNMP service so that snmpd.conf uses newly assigned MGMT address as snmpagent address Query using link local address Check if snmpresult is as expected. reload config to remove the MGMT link local IP assignment. How did you verify/test it? Verified on VS testbed,.
What is the motivation for this PR? In PR #9268, a test script named test_snmp_link_local.py was introduced, but it was incorrectly listed as snmp/test_snmp_link_local_ip.py in .azure-pipelines/pr_test_scripts.yaml. This PR corrects the entry in .azure-pipelines/pr_test_scripts.yaml to resolve the mismatch. How did you do it? This PR corrects the entry in .azure-pipelines/pr_test_scripts.yaml to resolve the mismatch. How did you verify/test it?
What is the motivation for this PR? In PR sonic-net#9268, a test script named test_snmp_link_local.py was introduced, but it was incorrectly listed as snmp/test_snmp_link_local_ip.py in .azure-pipelines/pr_test_scripts.yaml. This PR corrects the entry in .azure-pipelines/pr_test_scripts.yaml to resolve the mismatch. How did you do it? This PR corrects the entry in .azure-pipelines/pr_test_scripts.yaml to resolve the mismatch. How did you verify/test it?
What is the motivation for this PR? In PR sonic-net#9268, a test script named test_snmp_link_local.py was introduced, but it was incorrectly listed as snmp/test_snmp_link_local_ip.py in .azure-pipelines/pr_test_scripts.yaml. This PR corrects the entry in .azure-pipelines/pr_test_scripts.yaml to resolve the mismatch. How did you do it? This PR corrects the entry in .azure-pipelines/pr_test_scripts.yaml to resolve the mismatch. How did you verify/test it?
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Test added to use link local IP address as snmpagent address.
How did you do it?
Use ink local IP of eth0 IP address, configure that as MGMT address.
Restart SNMP service so that snmpd.conf uses newly assigned MGMT address as snmpagent address
Query using link local address
Check if snmpresult is as expected.
reload config to remove the MGMT link local IP assignment.
How did you verify/test it?
Verified on VS testbed,.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation