Napalm driver for ArubaOS Switches
Project description
Napalm-arubaoss
Driver implementation for Aruba OS Switch. Tested in AOS > WC.16.09.0004, some modules may not work properly in older versions.
Currently supported Napalm methods
* cli() ✅
* close() ✅
* commit_config() ✅
* compare_config() ✅
* compliance_report() ✅
* discard_config() ✅
* get_arp_table() ✅
* get_bgp_config() ❌*
* get_bgp_neighbors() ❌*
* get_bgp_neighbors_detail() ❌*
* get_config() ✅
* get_environment() ❌ - Planned
* get_facts() ✅
* get_firewall_policies() ❌*
* get_interfaces_counters() ❌***
* get_interfaces() ✅
* get_interfaces_ip() ✅
* get_ipv6_neighbors_table() ❌*
* get_lldp_neighbors() ✅
* get_lldp_neighbors_detail() ✅
* get_network_instances() ❌*
* get_mac_address_table() ✅
* get_ntp_peers() ✅
* get_ntp_servers() ✅
* get_ntp_stats() ✅
* get_optics() ❌ - Planned
* get_probes_*() ❌*
* get_route_to() ✅
* get_snmp_information() ❌ - Planned
* get_users() ❌ - Planned
* is_alive() ✅
* load_merge_candidate() ✅**
* load_replace_candidate() ✅
* load_template() ✅
* open() ✅
* ping() ✅
* rollback() ✅
* traceroute() ✅
* N/A - not supported on the tested ArubaOS devices
** Incomplete support for load merge, configuration is directly pushed to the running config. Not recommended, use with precaution !!!
*** No easy way to get this. API does not support it and there's no single command to display it for all ports
Getting Started
Prerequisites
The following software is required:
- Python3
- Pip
- Python modules specified in
requirements.txt
Installing
To install simply run:
git clone https://github.com/napalm-automation-community/napalm-arubaos-switch
cd napalm-arubaoss-switch
pip3 install .
Switch configuration
This driver relies exclusively on the REST API of Aruba Switches, and it needs to be enabled beforehand. To enable the REST API in the switch, just run:
web-management ssl
rest-interface
rest-interface session-idle-timeout 120 #optional
Saltstack
To use the driver with Saltstack, you would typically need a proxy minion.
Proxy minion configuration:
Example pillar's config:
proxy:
proxytype: napalm
driver: arubaoss
host: 192.0.2.1
username: manager
password: manager
Proxy /etc/salt/proxy
master: lab-salt-master
mine_enabled: true # not required, but nice to have
Supported Salt execution modules
- grains.items
- net.arp
- net.mac
- net.ipaddrs
- net.lldp
- net.facts
- net.ping
- net.traceroute
- route.show
- net.cli
- net.config
- net.load_config
- net.compare_config
- net.load_template ( Issue #18)
- net.discard_config
- ntp.servers
- napalm.compliance_report
More details in Saltstack examples
Ansible
How to get it running with ansible and some examples are in the Ansible docs
Running the tests
TBD: Explain how to run the automated tests for this system
Contributing
Please read CONTRIBUTING for details on our process for submitting pull requests to us, and please ensure you follow the CODE_OF_CONDUCT.
Versioning
TBD
Authors
- Guillermo Cotone - @gcotone
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for napalm-arubaos-switch-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70b12efcc964ab545c5436a6d902cff8bcfaa3b02c416cc19e075f98f46738b9 |
|
MD5 | e07fd56d0e6c4ae857c2db04e33331c0 |
|
BLAKE2b-256 | b8d1f871fd7d093c211e4095f110c7925655f82258cc56f73dc31e4275ebf042 |
Hashes for napalm_arubaos_switch-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b0017035b71cea34e6009ee96687989b40a870ade54e244134187f87f7edf34 |
|
MD5 | 787fd7b39501ee3bf4e54f519a988332 |
|
BLAKE2b-256 | dc12ad989e37ec941a2de28db9e7bd4f456ebd4723560fae419e205d49715d26 |