Adding Netbox
This commit is contained in:
31
roles/ansible-network.cisco_ios/tests/test_parser_templates.yaml
Executable file
31
roles/ansible-network.cisco_ios/tests/test_parser_templates.yaml
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env ansible-playbook
|
||||
|
||||
---
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
vars:
|
||||
ansible_network_os: ios
|
||||
roles:
|
||||
- "{{ playbook_dir }}/../../ansible-network.network-engine"
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Include tests for `show interfaces`
|
||||
include_tasks: parser_templates/cli/show_interfaces/main.yaml
|
||||
vars:
|
||||
interfaces: "{{ cisco_ios['interfaces'] }}"
|
||||
|
||||
- name: Include tests for `show ip bgp summary`
|
||||
include_tasks: parser_templates/cli/show_ip_bgp_summary/main.yaml
|
||||
vars:
|
||||
bgp: "{{ cisco_ios['vrf']['DEFAULT']['protocols']['bgp'] }}"
|
||||
|
||||
- name: Include tests for `show ip vrf detail`
|
||||
include_tasks: parser_templates/cli/show_ip_vrf_detail/main.yaml
|
||||
vars:
|
||||
vrfs: "{{ cisco_ios['vrf'] }}"
|
||||
|
||||
- name: Include tests for `show version`
|
||||
include_tasks: parser_templates/cli/show_version/main.yaml
|
||||
vars:
|
||||
system: "{{ cisco_ios['system'] }}"
|
||||
Reference in New Issue
Block a user