You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm finding it very hard to get started. Are there any examples to test for the following:
Ensure the quantity of neighbors are the same pre and post change
Verify each neighbor found should be there - so fxp0 should have 3 neighbors and they should be r1, r3, r5, ge-0/0/01 should have 1 neighbor, i.e. r1, etc.
Any help or improvement with the docs would be greaet.
The text was updated successfully, but these errors were encountered:
check_lldp:
- command: show lldp neighbors
- iterate:
xpath: //lldp-neighbors-information/lldp-neighbor-informationid: lldp-local-port-idtests:
- list-not-less: lldp-local-port-iderr: "Test FAILED!! The post snapshot has less LLDP neighborsthan the pre snapshot"info: "Test SUCCEEDED!! The pre and post snapshots have thesame number of LLDP neighbors"
- list-not-more: lldp-local-port-iderr: "Test FAILED!! The post snapshot has additional LLDPneighbors than the pre snapshot"info: "Test SUCCEEDED!! The pre and post snapshots have thesame number of LLDP neighbors"
For 2nd query, we can do this using module/script where depending on our first result, we can generate next set of test cases at run time using say jinja template and run those.
I'm finding it very hard to get started. Are there any examples to test for the following:
Any help or improvement with the docs would be greaet.
The text was updated successfully, but these errors were encountered: