1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/integration/targets/exos_vlans/vars/main.yaml

89 lines
2.4 KiB
YAML
Raw Normal View History

2020-03-09 10:11:07 +01:00
---
initial_state:
- name: "Default"
state: "active"
vlan_id: 1
- name: "vlan_10"
state: "active"
vlan_id: 10
- name: "vlan_20"
state: "suspend"
vlan_id: 20
merged:
requests:
- data: '{"openconfig-vlan:vlans": [{"config": {"status": "ACTIVE", "vlan-id": 30, "name": "vlan_30", "tpid": "oc-vlan-types:TPID_0x8100"}}]}'
method: POST
path: /rest/restconf/data/openconfig-vlan:vlans/
- data: '{"openconfig-vlan:vlans": {"vlan": [{"config": {"status": "SUSPENDED", "vlan-id": 10, "name": "vlan_10", "tpid": "oc-vlan-types:TPID_0x8100"}}]}}'
method: PATCH
path: /rest/restconf/data/openconfig-vlan:vlans/
after:
- name: "Default"
state: "active"
vlan_id: 1
- name: "vlan_10"
state: "suspend"
vlan_id: 10
- name: "vlan_20"
state: "suspend"
vlan_id: 20
- name: "vlan_30"
state: "active"
vlan_id: 30
replaced:
requests:
- data: '{"openconfig-vlan:vlans": [{"config": {"status": "SUSPENDED", "vlan-id": 40, "name": "vlan_40", "tpid": "oc-vlan-types:TPID_0x8100"}}]}'
method: POST
path: /rest/restconf/data/openconfig-vlan:vlans/
- data: '{"openconfig-vlan:vlans": {"vlan": [{"config": {"status": "ACTIVE", "vlan-id": 20, "name": "Test_VLAN20", "tpid": "oc-vlan-types:TPID_0x8100"}}]}}'
method: PATCH
path: /rest/restconf/data/openconfig-vlan:vlans/
after:
- name: "Default"
state: "active"
vlan_id: 1
- name: "vlan_10"
state: "active"
vlan_id: 10
- name: "Test_VLAN20"
state: "active"
vlan_id: 20
- name: "vlan_40"
state: "suspend"
vlan_id: 40
overridden:
requests:
- data: null
method: DELETE
path: /rest/restconf/data/openconfig-vlan:vlans/vlan=20
- data: '{"openconfig-vlan:vlans": {"vlan": [{"config": {"status": "SUSPENDED", "vlan-id": 10, "name": "TEST_VLAN10", "tpid": "oc-vlan-types:TPID_0x8100"}}]}}'
method: PATCH
path: /rest/restconf/data/openconfig-vlan:vlans/
after:
- name: "Default"
state: "active"
vlan_id: 1
- name: "TEST_VLAN10"
state: "suspend"
vlan_id: 10
deleted:
requests:
- data: null
method: DELETE
path: /rest/restconf/data/openconfig-vlan:vlans/vlan=10
- data: null
method: DELETE
path: /rest/restconf/data/openconfig-vlan:vlans/vlan=20
after:
- name: "Default"
state: "active"
vlan_id: 1