You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/exos_vlans/vars/main.yaml

89 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