Release 0.5.1 (#101)
* use netmiko_args * Add changes for 4.1.0 (#89) * Update requirements.txt * Typpo in requirements * _send_command has only two parameters * Adapt to stricter Unit tests --------- Co-authored-by: Anton Gridnev <anton@gridnev.pro> * Remove s350_base_interfaces custom map - it is allready in napalm base * Adapt Unit tests to canonical_interface_name() * Add format parameter to get_config() * Add badges * Tests for push are enought * update CD actions * add tests for device SG500-52 * Merge CI to develop (#95) * Simplify CI * CI update * CI update * Update CI from develop (#94) * Add format parameter to get_config() * Add badges * Tests for push are enought * update CD actions * add tests for device SG500-52 * fetch_command_output helper (#97) * fetch_command_output.sh tool * Update fetch_command_update from develop (#93) * adding read_timeout_override netmiko option --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Petr Klima <petr.klima@madeta.cz> Co-authored-by: Dave <davama@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Anton Gridnev <anton@gridnev.pro> * Set default command timeout (#98) * adding read_timeout_override netmiko option --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Petr Klima <petr.klima@madeta.cz> * Fetch command output - obfuscations (#99) * add IP and MAC obfuscation * Add obfuscate strings * Merge master changes back to develop (#100) * Lift version to 0.4.1 * Adapt to napalm 4.1 tests (#90) * use netmiko_args * Add changes for 4.1.0 (#89) * Update requirements.txt * Typpo in requirements * _send_command has only two parameters * Adapt to stricter Unit tests --------- Co-authored-by: Anton Gridnev <anton@gridnev.pro> * Remove s350_base_interfaces custom map - it is allready in napalm base * Adapt Unit tests to canonical_interface_name() --------- Co-authored-by: Dave <davama@gmail.com> Co-authored-by: Anton Gridnev <anton@gridnev.pro> * move version to 0.4.1.1 * Make it napalm 5 compliant (#92) * use netmiko_args * Add changes for 4.1.0 (#89) * Update requirements.txt * Typpo in requirements * _send_command has only two parameters * Adapt to stricter Unit tests --------- Co-authored-by: Anton Gridnev <anton@gridnev.pro> * Remove s350_base_interfaces custom map - it is allready in napalm base * Adapt Unit tests to canonical_interface_name() * Add format parameter to get_config() * Add badges --------- Co-authored-by: Dave <davama@gmail.com> Co-authored-by: Anton Gridnev <anton@gridnev.pro> * move version to 5.0.0 * move to version 0.5.0 --------- Co-authored-by: Dave <davama@gmail.com> Co-authored-by: Anton Gridnev <anton@gridnev.pro> * better obfuscation for fetch command output * better obfuscation for fetch command output * get rid of textFSM templates * get rid of textFSM templates * Add support and tests for SG250 * bump to version 0.5.1 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Dave <davama@gmail.com> Co-authored-by: Anton Gridnev <anton@gridnev.pro> Co-authored-by: Petr Klima <petr.klima@madeta.cz> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
77 files changed
+2720
-75
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Napalm-s350
|
||||
|
||||
NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx, CBS35x).
|
||||
NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG250, SG3xx, SG5xx, CBS35x).
|
||||
|
||||
## Status
|
||||
|
||||
@@ -45,58 +45,58 @@ napalm --user USER --password PASSWORD --vendor s350 --debug HOSTNAME
|
||||
|
||||
## Supported devices
|
||||
|
||||
This driver initially targets the Cisco SG350 device though other, similar, devices may
|
||||
This driver initially targets the Cisco SG350 device though other, similar, devices are
|
||||
be supported.
|
||||
|
||||
| function | SG300 | SG500 | SG350 | SG550 | stack SG500 | stack SG550 | CBS350 |
|
||||
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| **Send commands** |
|
||||
| cli | x | x | x | x | x | x | x |
|
||||
| **Config manipulation** |
|
||||
|get_config | x | x | x | x | | | x |
|
||||
|get_config (filtered) | x | x | x | x | | | x |
|
||||
|get_config (sanitized) | x | x | x | x | | | x |
|
||||
|load_merge_candidate | | | | | | | |
|
||||
|load_replace_candidate | | | | | | | |
|
||||
|compare_config | | | | | | | |
|
||||
|commit_config | | | | | | | |
|
||||
|confirm_commit | | | | | | | |
|
||||
|has_pending_commit | | | | | | | |
|
||||
|rollback | | | | | | | |
|
||||
|discard_config | | | | | | | |
|
||||
|compliance_report | | | | | | | |
|
||||
|load_template | | | | | | | |
|
||||
| **Get information** |
|
||||
|get_arp_table | x | x | x | x | | | x |
|
||||
|get_arp_table (with vrf) | NS | NS | NS | NS | | | NS |
|
||||
|get_bgp_config | | | | | | | |
|
||||
|get_bgp_neighbors | | | | | | | |
|
||||
|get_bgp_neighbors_detail | | | | | | | |
|
||||
|get_environment | | | | | | | |
|
||||
|get_facts | x | x | x | x | | | x |
|
||||
|get_firewall_policies | | | | | | | |
|
||||
|get_interfaces | x | x | x | x | | | x |
|
||||
|get_interfaces_counters | | | | | | | |
|
||||
|get_interfaces_ip | x 4 | x 4 | x 4 | x 4 | | | x 4 |
|
||||
|get_ipv6_neighbors_table | | | | | | | |
|
||||
|get_lldp_neighbors | x | x | x | x | | | x |
|
||||
|get_lldp_neighbors_detail | x | x | x | x | | | x |
|
||||
|get_mac_address_table | | | | | | | |
|
||||
|get_network_instances | | | | | | | |
|
||||
|get_ntp_peers | | | | | | | |
|
||||
|get_ntp_servers | x | x | x | x | | | x |
|
||||
|get_ntp_stats | | | | | | | |
|
||||
|get_optics | | | | | | | |
|
||||
|get_probes_config | | | | | | | |
|
||||
|get_probes_results | | | | | | | |
|
||||
|get_route_to | | | | | | | |
|
||||
|get_snmp_information | | | | | | | |
|
||||
|get_users | | | | | | | |
|
||||
|get_vlans | x | x | x | x | | | x |
|
||||
| **Other actions** |
|
||||
|is_alive | | | | | | | |
|
||||
|ping | | | | | | | |
|
||||
|traceroute | | | | | | | |
|
||||
| function | SG250 | SG300 | SG500 | SG350 | SG550 | stack SG500 | stack SG550 | CBS350 |
|
||||
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| **Send commands** |
|
||||
| cli | x | x | x | x | x | x | x | x |
|
||||
| **Config manipulation** |
|
||||
|get_config | x | x | x | x | x | | | x |
|
||||
|get_config (filtered) | x | x | x | x | x | | | x |
|
||||
|get_config (sanitized) | x | x | x | x | x | | | x |
|
||||
|load_merge_candidate | | | | | | | | |
|
||||
|load_replace_candidate | | | | | | | | |
|
||||
|compare_config | | | | | | | | |
|
||||
|commit_config | | | | | | | | |
|
||||
|confirm_commit | | | | | | | | |
|
||||
|has_pending_commit | | | | | | | | |
|
||||
|rollback | | | | | | | | |
|
||||
|discard_config | | | | | | | | |
|
||||
|compliance_report | | | | | | | | |
|
||||
|load_template | | | | | | | | |
|
||||
| **Get information** |
|
||||
|get_arp_table | x | x | x | x | x | | | x |
|
||||
|get_arp_table (with vrf) | NS | NS | NS | NS | NS | | | NS |
|
||||
|get_bgp_config | | | | | | | | |
|
||||
|get_bgp_neighbors | | | | | | | | |
|
||||
|get_bgp_neighbors_detail | | | | | | | | |
|
||||
|get_environment | | | | | | | | |
|
||||
|get_facts | x | x | x | x | x | | | x |
|
||||
|get_firewall_policies | | | | | | | | |
|
||||
|get_interfaces | x | x | x | x | x | | | x |
|
||||
|get_interfaces_counters | | | | | | | | |
|
||||
|get_interfaces_ip | x 4 | x 4 | x 4 | x 4 | x 4 | | | x 4 |
|
||||
|get_ipv6_neighbors_table | | | | | | | | |
|
||||
|get_lldp_neighbors | x | x | x | x | x | | | x |
|
||||
|get_lldp_neighbors_detail | x | x | x | x | x | | | x |
|
||||
|get_mac_address_table | | | | | | | | |
|
||||
|get_network_instances | | | | | | | | |
|
||||
|get_ntp_peers | | | | | | | | |
|
||||
|get_ntp_servers | x | x | x | x | x | | | x |
|
||||
|get_ntp_stats | | | | | | | | |
|
||||
|get_optics | | | | | | | | |
|
||||
|get_probes_config | | | | | | | | |
|
||||
|get_probes_results | | | | | | | | |
|
||||
|get_route_to | | | | | | | | |
|
||||
|get_snmp_information | | | | | | | | |
|
||||
|get_users | | | | | | | | |
|
||||
|get_vlans | x | x | x | x | x | | | x |
|
||||
| **Other actions** |
|
||||
|is_alive | x | x | x | x | x | x | x | x |
|
||||
|ping | | | | | | | | |
|
||||
|traceroute | | | | | | | | |
|
||||
|
||||
|
||||
NS - not supported - devices do not have support for that feature
|
||||
@@ -106,6 +106,22 @@ NS - not supported - devices do not have support for that feature
|
||||
|
||||
To be sure we can support new device we use test files.
|
||||
|
||||
### Fetch command output tool
|
||||
There is tool for getting necessary infromatin form running switch
|
||||
```
|
||||
cd test/unit
|
||||
|
||||
# DEVICE_TYPE as PID: in "show inventory" output
|
||||
# INTERFACE an inteface
|
||||
# LLDP_INTERFACE inteface for getting LLDP inforation
|
||||
./fetch_command_output.sh -u USER -p PASSWORD -t DEVICE_TYPE -v s350 \
|
||||
-d SWITCH_IP_or_FQDN -i INTERFACE -l LLDP_INTERFACE
|
||||
```
|
||||
|
||||
Output files from that tool are in "test/unit/command_output/$DEVICE_TYPE"
|
||||
|
||||
### By hand
|
||||
|
||||
We need text output of those commands, to add new device:
|
||||
```
|
||||
show arp
|
||||
|
||||
Reference in new issue
Block a user