ansible/test/integration/targets/exos_l2_interfaces/vars/main.yaml
JayalakshmiV 93280bd59c exos_l2_interfaces Resource module (#63113)
* Resource module for exos_l2_interfaces
2019-10-18 13:10:19 -04:00

44 lines
2.7 KiB
YAML

---
merged:
requests:
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 20}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=1/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
- data: '{"openconfig-vlan:config": {"trunk-vlans": [20, 30], "interface-mode": "TRUNK", "native-vlan": 10}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=2/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
replaced:
requests:
- data: '{"openconfig-vlan:config": {"trunk-vlans": [40], "interface-mode": "TRUNK", "native-vlan": 30}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=2/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 10}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=3/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
overridden:
requests:
- data: '{"openconfig-vlan:config": {"trunk-vlans": [20, 30], "interface-mode": "TRUNK", "native-vlan": 10}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=1/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 1}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=2/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 1}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=3/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
deleted:
requests_1:
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 1}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=2/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 1}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=3/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config
requests_2:
- data: '{"openconfig-vlan:config": {"interface-mode": "ACCESS", "access-vlan": 1}}'
method: PATCH
path: /rest/restconf/data/openconfig-interfaces:interfaces/interface=1/openconfig-if-ethernet:ethernet/openconfig-vlan:switched-vlan/config