• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ansible Network Collection for Cisco NXOS

Cisco NX-OS Collection

CI Codecov CI

The Ansible Cisco NX-OS collection includes a variety of Ansible content to help automate the management of Cisco NX-OS network appliances.

The Cisco NX-OS connection plugins combined with Cisco NX-OS resource modules aligns the Cisco NX-OS experience with the other core networking platforms supported by Ansible.

This collection has been tested against Cisco N9K-C9300v chassis running NX-OS 9.3.6. The modules with full support for Cisco MDS are tested against NX-OS 8.4(1) on MDS Switches.

Ansible version compatibility

This collection has been tested against following Ansible versions: >=2.14.0.

For collections that support Ansible 2.9, please ensure you update your network_os to use the fully qualified collection name (for example, cisco.ios.ios). Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions. PEP440 is the schema used to describe the versions of Ansible.

Supported connections

The Cisco NX-OS collection supports network_cli and httpapi connections. A detailed platform guide can be found here.

Included content

Cliconf plugins

Name Description
cisco.nxos.nxos Use NX-OS cliconf to run commands on Cisco NX-OS platform

Httpapi plugins

Name Description
cisco.nxos.nxos Use NX-API to run commands on Cisco NX-OS platform

Netconf plugins

Name Description
cisco.nxos.nxos Use nxos netconf plugin to run netconf commands on Cisco NX-OS platform.

Modules

Name Description
cisco.nxos.nxos_aaa_server Manages AAA server global configuration.
cisco.nxos.nxos_aaa_server_host Manages AAA server host-specific configuration.
cisco.nxos.nxos_acl_interfaces ACL interfaces resource module
cisco.nxos.nxos_acls ACLs resource module
cisco.nxos.nxos_banner Manage multiline banners on Cisco NXOS devices
cisco.nxos.nxos_bfd_global Bidirectional Forwarding Detection (BFD) global-level configuration
cisco.nxos.nxos_bfd_interfaces BFD interfaces resource module
cisco.nxos.nxos_bgp_address_family BGP Address Family resource module.
cisco.nxos.nxos_bgp_global BGP Global resource module.
cisco.nxos.nxos_bgp_neighbor_address_family BGP Neighbor Address Family resource module.
cisco.nxos.nxos_bgp_templates BGP Templates resource module.
cisco.nxos.nxos_command Run arbitrary command on Cisco NXOS devices
cisco.nxos.nxos_config Manage Cisco NXOS configuration sections
cisco.nxos.nxos_devicealias Configuration of device alias for Cisco NXOS MDS Switches.
cisco.nxos.nxos_evpn_global Handles the EVPN control plane for VXLAN.
cisco.nxos.nxos_evpn_vni Manages Cisco EVPN VXLAN Network Identifier (VNI).
cisco.nxos.nxos_facts Gets facts about NX-OS switches
cisco.nxos.nxos_fc_interfaces Fc Interfaces resource module
cisco.nxos.nxos_feature Manage features in NX-OS switches.
cisco.nxos.nxos_file_copy Copy a file to a remote NXOS device.
cisco.nxos.nxos_gir Trigger a graceful removal or insertion (GIR) of the switch.
cisco.nxos.nxos_gir_profile_management Create a maintenance-mode or normal-mode profile for GIR.
cisco.nxos.nxos_hostname Hostname resource module.
cisco.nxos.nxos_hsrp Manages HSRP configuration on NX-OS switches.
cisco.nxos.nxos_hsrp_interfaces HSRP interfaces resource module
cisco.nxos.nxos_igmp Manages IGMP global configuration.
cisco.nxos.nxos_igmp_interface Manages IGMP interface configuration.
cisco.nxos.nxos_igmp_snooping Manages IGMP snooping global configuration.
cisco.nxos.nxos_install_os Set boot options like boot, kickstart image and issu.
cisco.nxos.nxos_interfaces Interfaces resource module
cisco.nxos.nxos_l2_interfaces L2 interfaces resource module
cisco.nxos.nxos_l3_interfaces L3 interfaces resource module
cisco.nxos.nxos_lacp LACP resource module
cisco.nxos.nxos_lacp_interfaces LACP interfaces resource module
cisco.nxos.nxos_lag_interfaces LAG interfaces resource module
cisco.nxos.nxos_lldp_global LLDP resource module
cisco.nxos.nxos_lldp_interfaces LLDP interfaces resource module
cisco.nxos.nxos_logging_global Logging resource module.
cisco.nxos.nxos_ntp_global NTP Global resource module.
cisco.nxos.nxos_nxapi Manage NXAPI configuration on an NXOS device.
cisco.nxos.nxos_ospf_interfaces OSPF Interfaces Resource Module.
cisco.nxos.nxos_ospfv2 OSPFv2 resource module
cisco.nxos.nxos_ospfv3 OSPFv3 resource module
cisco.nxos.nxos_overlay_global Configures anycast gateway MAC of the switch.
cisco.nxos.nxos_pim Manages configuration of a PIM instance.
cisco.nxos.nxos_pim_interface Manages PIM interface configuration.
cisco.nxos.nxos_pim_rp_address Manages configuration of an PIM static RP address instance.
cisco.nxos.nxos_ping Tests reachability using ping from Nexus switch.
cisco.nxos.nxos_prefix_lists Prefix-Lists resource module.
cisco.nxos.nxos_reboot Reboot a network device.
cisco.nxos.nxos_rollback Set a checkpoint or rollback to a checkpoint.
cisco.nxos.nxos_route_maps Route Maps resource module.
cisco.nxos.nxos_rpm Install patch or feature rpms on Cisco NX-OS devices.
cisco.nxos.nxos_snapshot Manage snapshots of the running states of selected features.
cisco.nxos.nxos_snmp_community (deprecated, removed after 2024-01-01) Manages SNMP community configs.
cisco.nxos.nxos_snmp_contact (deprecated, removed after 2024-01-01) Manages SNMP contact info.
cisco.nxos.nxos_snmp_host (deprecated, removed after 2024-01-01) Manages SNMP host configuration.
cisco.nxos.nxos_snmp_location (deprecated, removed after 2024-01-01) Manages SNMP location information.
cisco.nxos.nxos_snmp_server SNMP Server resource module.
cisco.nxos.nxos_snmp_traps (deprecated, removed after 2024-01-01) Manages SNMP traps.
cisco.nxos.nxos_snmp_user (deprecated, removed after 2024-01-01) Manages SNMP users for monitoring.
cisco.nxos.nxos_static_routes Static routes resource module
cisco.nxos.nxos_system Manage the system attributes on Cisco NXOS devices
cisco.nxos.nxos_telemetry TELEMETRY resource module
cisco.nxos.nxos_udld Manages UDLD global configuration params.
cisco.nxos.nxos_udld_interface Manages UDLD interface configuration params.
cisco.nxos.nxos_user Manage the collection of local users on Nexus devices
cisco.nxos.nxos_vlans VLANs resource module
cisco.nxos.nxos_vpc Manages global VPC configuration
cisco.nxos.nxos_vpc_interface Manages interface VPC configuration
cisco.nxos.nxos_vrf Manages global VRF configuration.
cisco.nxos.nxos_vrf_af Manages VRF AF.
cisco.nxos.nxos_vrf_interface Manages interface specific VRF configuration.
cisco.nxos.nxos_vrrp Manages VRRP configuration on NX-OS switches.
cisco.nxos.nxos_vsan Configuration of vsan for Cisco NXOS MDS Switches.
cisco.nxos.nxos_vtp_domain Manages VTP domain configuration.
cisco.nxos.nxos_vtp_password Manages VTP password configuration.
cisco.nxos.nxos_vtp_version Manages VTP version configuration.
cisco.nxos.nxos_vxlan_vtep Manages VXLAN Network Virtualization Endpoint (NVE).
cisco.nxos.nxos_vxlan_vtep_vni Creates a Virtual Network Identifier member (VNI)
cisco.nxos.nxos_zone_zoneset Configuration of zone/zoneset for Cisco NXOS MDS Switches.

Click the Content button to see the list of content included in this collection.

Installing this collection

You can install the Cisco NX-OS collection with the Ansible Galaxy CLI:

ansible-galaxy collection install cisco.nxos

You can also include it in a requirements.yml file and install it with ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: cisco.nxos

Using this collection

This collection includes network resource modules.

Using modules from the Cisco NX-OS collection in your playbooks

You can call modules by their Fully Qualified Collection Namespace (FQCN), such as cisco.nxos.nxos_l2_interfaces. The following example task replaces configuration changes in the existing configuration on a Cisco NX-OS network device, using the FQCN:

---
  - name: Replace device configuration of specified L2 interfaces with provided configuration.
    cisco.nxos.nxos_l2_interfaces:
      config:
        - name: Ethernet1/1
          trunk:
            native_vlan: 20
            trunk_vlans: 5-10, 15
      state: replaced

NOTE: For Ansible 2.9, you may not see deprecation warnings when you run your playbooks with this collection. Use this documentation to track when a module is deprecated.

See Also:

Contributing to this collection

Ongoing development efforts and contributions to this collection are solely focused on enhancements to current resource modules, additional resource modules and enhancements to connection plugins.

We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the Cisco NX-OS collection repository. See Contributing to Ansible-maintained collections for complete details.

You can also join us on:

See the Ansible Community Guide for details on contributing to Ansible.

Code of Conduct

This collection follows the Ansible project's Code of Conduct. Please read and familiarize yourself with this document.

Release notes

Release notes are available here.

Roadmap

More information

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.

More Repositories

1

community.general

Ansible Community General Collection
Python
821
star
2

community.vmware

Ansible Collection for VMware
Python
348
star
3

community.zabbix

Zabbix Ansible modules
Python
320
star
4

amazon.aws

Ansible Collection for Amazon AWS
Python
304
star
5

cisco.ios

Ansible Network Collection for Cisco IOS
Python
277
star
6

community.kubernetes

Kubernetes Collection for Ansible
Makefile
264
star
7

overview

Collections overview, how to request a namespace
249
star
8

ansible.windows

Windows core collection for Ansible
PowerShell
246
star
9

azure

Development area for Azure Collections
Python
246
star
10

kubernetes.core

The collection includes a variety of Ansible content to help automate the management of applications in Kubernetes and OpenShift clusters, as well as the provisioning and maintenance of clusters themselves.
Python
215
star
11

community.windows

Windows community collection for Ansible
PowerShell
200
star
12

community.docker

Community Docker Collection for Ansible: modules and plugins for working with Docker
Python
200
star
13

community.aws

Ansible Collection for Community AWS
Python
187
star
14

ansible.posix

Ansible Collection for Posix
Python
152
star
15

community.digitalocean

This Ansible collection contains modules for assisting in the automation of the DigitalOcean cloud.
Python
141
star
16

ansible.netcommon

Ansible Network Collection for Common Code
Python
141
star
17

vmware.vmware_rest

Ansible Collection for VMWare (REST modules)
Python
131
star
18

community.grafana

Grafana Collection for Ansible
Python
129
star
19

community.network

Ansible Community Network Collection
Python
124
star
20

community.postgresql

Manage PostgreSQL with Ansible
Python
108
star
21

community.mongodb

MongoDB Ansible Collection
Python
106
star
22

hetzner.hcloud

A collection to manage resources on Hetzner Cloud
Python
105
star
23

community.mysql

MySQL Ansible Collection
Python
99
star
24

google.cloud

GCP Ansible Collection https://galaxy.ansible.com/google/cloud
Python
99
star
25

community.routeros

Ansible modules for managing MikroTik RouterOS instances.
Python
97
star
26

community.crypto

The community.crypto collection for Ansible.
Python
96
star
27

collection_template

A GitHub Template repo to use as the basis for future repos
91
star
28

arista.eos

Ansible Network Collection for Arista EOS
Python
82
star
29

junipernetworks.junos

Ansible Network Collection for Juniper JunOS
Python
80
star
30

ibm_zos_core

Red Hat Ansible Certified Content for IBM Z
Python
77
star
31

community.sops

Simple and flexible tool for managing secrets
Python
76
star
32

ansible.utils

A collection of ansible utilities for the content creator.
Python
73
star
33

servicenow.itsm

Ansible Collection for ServiceNow ITSM
Python
71
star
34

community.hashi_vault

Ansible collection for managing and working with HashiCorp Vault.
Python
69
star
35

cloud.terraform

The collection automates the management and provisioning of infrastructure as code (IaC) using the Terraform CLI tool within Ansible playbooks and Execution Environment runtimes.
Python
67
star
36

cisco.iosxr

Ansible Network Collection for Cisco IOSXR
Python
65
star
37

community.libvirt

Manage libvirt with Ansible
Python
61
star
38

netapp.ontap

Ansible collection to support NetApp ONTAP configuration.
Python
56
star
39

netapp

Development area for Netapp collections
Python
49
star
40

cisco.asa

Ansible Security Collection for Cisco ASA
Python
49
star
41

dellemc.enterprise_sonic

Ansible Network Collection for Enterprise SONiC Distribution by Dell Technologies
Python
42
star
42

microsoft.ad

Ansible collection for Active Directory management
Python
40
star
43

dellemc.os10

Jinja
37
star
44

community.rabbitmq

Manage RabbitMQ with Ansible
Python
31
star
45

community.dns

Ansible modules and plugins for working with DNS
Python
27
star
46

community.cassandra

Cassandra Ansible Collection
Python
25
star
47

ibm.qradar

IBM QRadar Ansible Collection
Python
24
star
48

news-for-maintainers

Announcements of changes impacting collection contributors and maintainers
24
star
49

community.elastic

Python
24
star
50

ibm.spectrum_virtualize

IBM Spectrum Virtualize
21
star
51

community.proxysql

ProxySQL Ansible Collection
Python
21
star
52

community.healthchecksio

This Ansible collection contains modules for assisting in the automation of the Healthchecks.io monitoring service.
Python
18
star
53

community.hrobot

Hetzner Robot Collection
Python
17
star
54

community.cip

Ansible Collection to automate Programmable Logic Controllers over Common Industrial Protocol (CIP)
Python
17
star
55

ansible.scm

An ansible collection for prescriptive retrieval and publish using git
Python
16
star
56

ansible.network

Ansible Network Collection for network and IP utilities that are not specific to any platform or OS.
16
star
57

openvswitch.openvswitch

Ansible Network Collection for Open vSwitch
Python
15
star
58

ibm_zos_cics

The IBM z/OS CICS collection supports management of CICS resources and definitions in Ansible via the CMCI REST API provided by CICS.
Python
15
star
59

cloud.common

Common files for the Cloud collections
Python
14
star
60

frr.frr

Ansible Collection for Free Range Routing (FRR)
Python
13
star
61

amazon.cloud

Ansible Collection for Amazon AWS' Cloud Control API
Python
12
star
62

splunk.es

Ansible Collection for Splunk Enterprise
Python
11
star
63

community.internal_test_tools

Internal only, not for end users
Python
11
star
64

ibm_zos_ims

IBM z/OS IMS Collection
Python
11
star
65

mellanox.onyx

onyx
Python
10
star
66

ansible-inclusion

Requests to include new collections into the ansible package
10
star
67

community.yang

Ansible Community Collection to support Yang in network devices.
Python
10
star
68

ansible.snmp

Python
10
star
69

dellemc.os9

Jinja
9
star
70

vmware_rest_code_generator

Tooling ued to generate the vmware.vmware_rest collection
Python
9
star
71

community.ciscosmb

Ansible Galaxy module for Cisco SMB switches - SG300, SG500, SG350, SG550
Python
8
star
72

dellemc.os6

Python
8
star
73

community.molecule

Ansible community.molecule is a very small collection that hosts filters used by molecule playbooks.
Python
8
star
74

splunk.enterprise_security

Ansible Collection for Splunk Enterprise
7
star
75

community.sonic

Ansible Galaxy community module for SONiC NOS
Python
7
star
76

community.kubevirt

KubeVirt Collection of Ansible.
Python
7
star
77

vmware.vmware

Ansible VMWare Collection
Python
7
star
78

ansible.security

Ansible Security Collection for security and are not specific to any security vendor.
7
star
79

pravic

An experimental project intended to explore how Ansible could be used to manage cloud-based resources in a more declarative way.
Python
7
star
80

community.google

Python
6
star
81

amazon_cloud_code_generator

Tooling used to generate the amazon.cloud collection
Python
6
star
82

community.sap

Python
6
star
83

logicmonitor

Repo to house LogicMonitor Collection
Python
6
star
84

ansible.yang

Ansible Supported Collection to support YANG in network devices.
Python
5
star
85

community.fqcn_migration

5
star
86

community.clickhouse

Ansible Community ClickHouse Collection
Python
5
star
87

cloud.roles

Collection of roles to help get started using Ansible with public clouds
4
star
88

trendmicro.deepsec

Ansible Collection for managing TrendMicro DeepSecurity Endpoint Security solutions.
Python
4
star
89

ibm.cloud

Code and relative documentation for the IBM Cloud Collection
Python
4
star
90

community.vagrant

community.vagrant collection (to adopt the module from molecule-vagrant)
4
star
91

community.azure

Manage Azure with Ansible
4
star
92

netapp.storagegrid

Ansible collection to support NetApp StorageGrid configuration.
Python
3
star
93

ibm.ds8000

IBM DS8000
Python
3
star
94

netapp.aws

Ansible collection to support NetApp CVS configuration in AWS.
Python
3
star
95

checkpoint

Ansible Security Collection for Check Point devices
3
star
96

skydive

Ansible Collection for Skydive network / protocols analyzer
Python
3
star
97

Datadog

Datadog Collection
Jinja
3
star
98

consoledot.edgemanagement

PoC Ansible Collection for Red Hat Edge Fleet Manager
Python
3
star
99

netapp.cloudmanager

Ansible collection to support NetApp Cloud Manager configuration, including CVO deployments.
Python
3
star
100

pureport

An Ansible Collection for interacting with the Pureport Fabric ReST API
Python
3
star