Adding Netbox
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
---
|
||||
# This file is used to map show commands to parser templates. When this file
|
||||
# is processed, the command is issued on the target device and the output is
|
||||
# passed to the parser to be converted to Ansible facts. The parser file
|
||||
# should be located in `parser_templates/cli`.
|
||||
#
|
||||
# Each entry in this file supports the following keys:
|
||||
#
|
||||
# * command - the cli command to execute on the target device
|
||||
# * parser - the filename of the parser relative to parse_templates/cli
|
||||
# * engine - one of `command_parser` (default) or `textfsm_parser`
|
||||
# * name - name of dictionary key to store new ansible_facts, only relevant for `textfsm_parser` engine
|
||||
# * groups - a list of one or more groups the commadn belongs to
|
||||
# * pre_hook - path to the set of tasks to execute before running the command
|
||||
# * post_hook - path to the set of tasks to execute after running the command
|
||||
#
|
||||
# Please see the [documentation](https://github.com/ansible-network/cisco_ios/blob/devel/tasks/get_facts.yaml) for more details.
|
||||
#
|
||||
- command: show version
|
||||
parser: show_version.yaml
|
||||
groups:
|
||||
- all
|
||||
- default
|
||||
- system
|
||||
|
||||
- command: show interface
|
||||
parser: show_interfaces.yaml
|
||||
groups:
|
||||
- all
|
||||
- default
|
||||
- interfaces
|
||||
|
||||
- command: show interface transceiver
|
||||
parser: show_interfaces_transceiver.yaml
|
||||
groups:
|
||||
- all
|
||||
- transceiver
|
||||
|
||||
- command: show ip bgp summary
|
||||
parser: show_ip_bgp_summary.yaml
|
||||
groups:
|
||||
- all
|
||||
- bgp
|
||||
- routing
|
||||
|
||||
- command: show cdp neighbors detail
|
||||
parser: show_cdp_neighbors_detail.yaml
|
||||
groups:
|
||||
- all
|
||||
- cdp
|
||||
|
||||
- command: show lldp neighbors detail
|
||||
parser: show_lldp_neighbors_detail.yaml
|
||||
groups:
|
||||
- all
|
||||
- lldp
|
||||
|
||||
- command: show ip vrf detail
|
||||
parser: show_ip_vrf_detail.yaml
|
||||
groups:
|
||||
- all
|
||||
- vrf
|
||||
- routing
|
||||
3
roles/ansible-network.cisco_ios/vars/main.yml
Normal file
3
roles/ansible-network.cisco_ios/vars/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
# vars file for ansible-network.cisco_ios
|
||||
#
|
||||
Reference in New Issue
Block a user