-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-lldp-neighbor.yml
19 lines (19 loc) · 1.24 KB
/
test-lldp-neighbor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
lldp-neighbor:
- command: show lldp neighbors
- iterate:
xpath: '//lldp-neighbor-information'
id: './lldp-local-port-id'
ignore-null: True
tests:
- no-diff: lldp-remote-system-name
err: "Test Failed!! lldp-remote-system-name changed for <{{pre['lldp-local-port-id']}}>! was <{{pre['lldp-remote-system-name']}}>, it is now <{{post['lldp-remote-system-name']}}> "
info: "Test succeeded!! lldp-remote-system-name is the same for <{{pre['lldp-local-port-id']}}>. it is <{{pre['lldp-remote-system-name']}}>"
ignore-null: True
- list-not-less: lldp-remote-system-name
err: "Test Failed!! neighbor <{{pre['lldp-remote-system-name']}}> is missing in post snapshot"
info: "Test succeeded!! neighbor <{{pre['lldp-remote-system-name']}}> is still present in post snapshot"
ignore-null: True
- list-not-more: lldp-remote-system-name
err: "Test Failed!! neighbor <{{post['lldp-remote-system-name']}}> has been added in post snapshot"
info: "Test succeeded!! neighbor <{{post['lldp-remote-system-name']}}> was already present in pre snapshot"
ignore-null: True