ansible/test/integration/targets/exos_lldp_global/vars/main.yaml
Ujwal Komarla 5e200f2d0a Resource Module for exos_lldp_global (#60988)
* Model->Role->Module.
Yet to import modules/exos_facts.py

* exos_facts refactor

* future-import and metaclass

* Fix unit tests

* Fix openconfig-lldp word and send_request API from Httpapi class

idempotent, json.dumps in base class, send_requests from base exos class

* action file for exos_lldp_global

* Add intergration tests for exos_lldp_global

* Test data field of the request
2019-08-28 13:58:45 -04:00

85 lines
2.3 KiB
YAML

---
merged:
before:
interval: 30
tlv_select:
system_name: true
system_description: true
system_capabilities: false
port_description: false
management_address: false
requests:
# 'suppress-tlv-advertisement' list is sorted to compare test
- data: '{"openconfig-lldp:config": {"suppress-tlv-advertisement": ["MANAGEMENT_ADDRESS", "PORT_DESCRIPTION", "SYSTEM_CAPABILITIES", "SYSTEM_DESCRIPTION"], "hello-timer": 10}}'
method: PUT
path: /rest/restconf/data/openconfig-lldp:lldp/config
after:
interval: 10
tlv_select:
system_name: true
system_description: false
system_capabilities: false
port_description: false
management_address: false
populate:
interval: 50
tlv_select:
system_name: true
system_description: true
system_capabilities: true
port_description: false
management_address: false
replaced:
requests:
# 'suppress-tlv-advertisement' list is sorted to compare test
- data: '{"openconfig-lldp:config": {"suppress-tlv-advertisement": ["MANAGEMENT_ADDRESS", "PORT_DESCRIPTION", "SYSTEM_CAPABILITIES", "SYSTEM_NAME"], "hello-timer": 20}}'
method: PUT
path: /rest/restconf/data/openconfig-lldp:lldp/config
after:
interval: 20
tlv_select:
system_name: false
system_description: true
system_capabilities: false
port_description: false
management_address: false
deleted:
before:
interval: 50
tlv_select:
system_name: true
system_description: true
system_capabilities: true
port_description: false
management_address: false
requests:
# 'suppress-tlv-advertisement' list is sorted to compare test
- data: '{"openconfig-lldp:config": {"suppress-tlv-advertisement": ["MANAGEMENT_ADDRESS", "PORT_DESCRIPTION", "SYSTEM_CAPABILITIES"], "hello-timer": 30}}'
method: PUT
path: /rest/restconf/data/openconfig-lldp:lldp/config
after:
interval: 30
tlv_select:
system_name: true
system_description: true
system_capabilities: false
port_description: false
management_address: false
round_trip:
interval: 30
tlv_select:
system_name: true
system_description: true
system_capabilities: false
port_description: false
management_address: false