5e200f2d0a
* 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
85 lines
2.3 KiB
YAML
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
|