Skip to content

Commit

Permalink
issue_822 Handling review comments: updated failure msgs and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
VitthalMagadum committed Oct 14, 2024
1 parent c7a3d35 commit 4b31a5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions anta/tests/snmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,14 @@ class VerifySnmpPDUCounters(AntaTest):
By default, all SNMP PDU counters will be checked for any non-zero values.
An optional list of specific SNMP PDU(s) can be provided for granular testing.
- Verifies that the valid notification type and VRF name.
- Ensures that UDP port provided matches the expected value.
- Ensures that the community_string is properly set for SNMP v1/v2 and for SNMP v3, the user field is included, aligning with version-specific requirements.
Expected Results
----------------
* Success: The test will pass if the SNMP PDU counter(s) are non-zero/greater than zero.
* Failure: The test will fail if the SNMP PDU counter(s) are zero/None/Not Found.
* Success: The test will pass if the provided SNMP notification host and all specified parameters are correctly configured.
* Failure: The test will fail if the provided SNMP notification host is not configured or specified parameters are not correctly configured.
Examples
--------
Expand Down

0 comments on commit 4b31a5d

Please sign in to comment.