Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (33 sloc) 780 Bytes
test_phy:
- rpc: get-config
- kwargs:
filter_xml: configuration/interfaces
- item:
id: ./name
xpath: 'interfaces/interface[name="ge-0/0/42"]'
tests:
- is-equal: name, ge-0/0/42
info: "Interface exists"
err: "-"
test_irb:
- rpc: get-config
- kwargs:
filter_xml: configuration/interfaces
- item:
id: ./name
xpath: 'interfaces/interface[name="irb"]/unit[name="42"]'
tests:
- is-equal: name, 42
info: "Interface exists"
err: "-"
test_vlan:
- rpc: get-config
- kwargs:
filter_xml: configuration/vlans
- item:
id: ./vlan
xpath: 'vlans/vlan[name="DT"]'
tests:
- is-equal: name, DT
info: "VLAN exists"
err: "-"
You can’t perform that action at this time.