Skip to main content

NAPALM drivers for Aruba AOS-CX Switches

Project description

Napalm-aruba-cx

NAPALM Driver implementation for AOS-CX Switches.

Supported Devices

All AOS-CX devices are supported, however the AOS-CX switch firmware should be version 10.05 or later, as some modules may have not been properly tested in older versions.

Current Support Functionality

* get_arp_table - Get the ARP table from a device.
* get_config - Get configuration from the device.
* get_facts - Get the version, serial number, vendor, model, and uptime from a device.
* get_interfaces - Get list of interfaces from a device.
* get_interfaces_ip - Get list of interface IP addresses from a device.
* get_lldp_neighbors - Get the list of LLDP Neighbors from a device.
* get_lldp_neighbors_detail - Get LLDP Neighbor details from a device.
* get_mac_address_table - Get the MAC Address table from a device.
* get_ntp_servers - Gets NTP information from a network device.
* get_route_to - Shows an IP route on a device.
* get_snmp_information - Get the SNMP information of a device.
* is_alive - Check to see if the connection to the device is up.
* ping - Execute a ping command from the device.

Early versions of this driver will focus on the Get functions.  Configuration handling is in current development.

Getting Started

For more information and guides to help get started, check out the Aruba Developer Hub section for NAPALM.

Prerequisites

The following software is required:

  • Python3
  • Pip
  • Python modules specified in requirements.txt
    • pyaoscx v1.0.0
    • requests
    • urllib3

Note that the current version of this driver utilizes pyaoscx v1 only. Future versions of this driver will be compatible with pyaoscx v2

Installing

To install simply run:

pip3 install napalm-aruba-cx

Switch configuration

The AOS-CX driver utilizes the REST API on the switches. Depending on the switch model, this may already be enabled. If not, please use the CLI commands below to enable REST on the specified VRF.

  1. There must be a user on the switch who belongs to the "administrators group" and has a password set. This user would then be allowed to access the REST API. In the below example, replace the username "admin" and password "mypassword" with your own username and password respectively.
8320(config)# user admin group administrators password plaintext mypassword
  1. Set the access mode for the HTTPS server to "read-write" and enable the HTTPS server on the VRF through which the client making the NAPALM calls can reach the switch. In the below example, this specifies both the management VRF and the default VRF.
8320(config)# https-server rest access-mode read-write
8320(config)# https-server vrf default
8320(config)# https-server vrf mgmt

Contributing

Please read CONTRIBUTING for details on our process for submitting issues and requests.

License

This project is licensed under the Apache License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napalm-aruba-cx-0.1.4.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

napalm_aruba_cx-0.1.4-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file napalm-aruba-cx-0.1.4.tar.gz.

File metadata

  • Download URL: napalm-aruba-cx-0.1.4.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.1

File hashes

Hashes for napalm-aruba-cx-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bf9feafbef41b026ab31e392ab531a7965987681ca1b87c603f38641563f5ae0
MD5 2288ddebbbba50febc4388ccec751811
BLAKE2b-256 698be997840b3f172fd0080d96112f6b64eefc74e63db01bc481099868b440db

See more details on using hashes here.

File details

Details for the file napalm_aruba_cx-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: napalm_aruba_cx-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.2.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.1

File hashes

Hashes for napalm_aruba_cx-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93e8dbf4fa7a9d9f9fffbc75e55904e837d0125d4625e447e6976de29eff0118
MD5 1fe90b8da67314e3642ae64a4608d358
BLAKE2b-256 444e1b0168e9d61403ecd6d0534583d845c173cd2dda4cdd9785cb46ebab16c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page