ansible/test/integration/targets/exos_vlans/vars/main.yaml
JayalakshmiV 45acdb41d2 Added Exos vlan resource module (#61865)
* EXOS_VLAN resource module

* EXOS_VLAN resource module

* EXOS_VLAN resource module

* EXOS_VLAN resource module

* EXOS_VLAN resource module

* Fix exos_vlans resource module and integration test

* Move exos_vlan folder to exos_vlans folder

* Fix exos->config->vlans and exos->utils

* Fix version_added

* Improve exos_vlans module and integration tests

* Fix exos_vlans.py

* exos_vlan resource module
2019-10-10 06:50:04 -04:00

88 lines
2.4 KiB
YAML

---
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