[SNMP] When uptime is less than the boot time of snmp, to pause the task until snmp service is up.#1496
Closed
EmmaLin11 wants to merge 4 commits intosonic-net:masterfrom
EmmaLin11:pause_snmp_task
Closed
[SNMP] When uptime is less than the boot time of snmp, to pause the task until snmp service is up.#1496EmmaLin11 wants to merge 4 commits intosonic-net:masterfrom EmmaLin11:pause_snmp_task
EmmaLin11 wants to merge 4 commits intosonic-net:masterfrom
EmmaLin11:pause_snmp_task
Conversation
…o is ptf32 or ptf64. When topo is ptf32 or ptf64, snmp lldp pytest will failed. Because there are no lldp data respond from sonic device. The topologies for lldp does not include ptf32 and ptf64 on testcase.yml. Thus the ptf32 and ptf64 topo shall be skipped. Signed-off-by: Emma Lin <[email protected]>
…s defined in tests/conftest.py to identify testbed type.
…il snmp service is up.
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…ux-kernel submodules (sonic-net#7064) sonic-swss * Add table descriptions for dynamic buffer calculation to the documents (sonic-net#1664) * Remove vxlanmgrd dependency on orchagent (sonic-net#1647) sonic-utilities * [show] Fix 'show mac' output, when FDB entry with Vlan 1 is present (sonic-net#1368) * [warm-reboot]: Check empty key before issuing redis hget (sonic-net#1496) * [generate-dump] Remove Arista specific logic (sonic-net#1482) * [warm-reboot]: added automated recover for ISSU file (sonic-net#1466) * [warm-reboot] Check if warm restart flag is set when issuing a warm-reboot (sonic-net#1460) * [show][config] fix for show/config muxcable hwmode model value; fix show/config muxcable return codes; (sonic-net#1494) sonic-linux-kernel * [net] Disable prio and cls cgroups to make working cgroup2 sock matching (sonic-net#198) Signed-off-by: Danny Allen <[email protected]>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
Including the following changes: [bitmap_vnet] Remove BMTOR implementation (sonic-net#1496) [intfsorch] Init proxy_arp variable while adding router interface. (sonic-net#1473) [drop counters] Clarify log messages for initial counter setup (sonic-net#1445) Signed-off-by: Liat Grozovik <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
When uptime is less than the boot time of snmp, to pause the task until snmp service is up.
The default boot time of snmp service is 3m30s in /etc/systemd/system/snmp.timer. Perform snmp ansible test before snmp service up , it will cause test failed. Because it cannot get the response from snmp.
Type of change
Approach
How did you do it?
Check if ansible_uptime_seconds is larger than 3m30s firstly or not. If uptime is larger than 3m30s, perform the test immediately. If uptime is less than 3m30s, shall perform the test after have a (3m30s - ansible_uptime_seconds) delay.
How did you verify/test it?
Perform snmp ansible test when uptime is less than 3m30s, check if have a (3m30s - ansible_uptime_seconds) delay.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation