From d203db5ebaeb5c88ffd42cbb9014299ceee3e8f4 Mon Sep 17 00:00:00 2001 From: Petr Klima Date: Mon, 8 Mar 2021 17:49:42 +0100 Subject: [PATCH 1/7] move command outputs outside of mocked_data dir --- .../SG300-10/show_arp.txt | 0 .../SG300-10/show_hosts.txt | 0 .../SG300-10/show_interface_description.txt | 0 .../SG300-10/show_interfaces_status.txt | 0 .../SG300-10/show_inventory.txt | 0 .../SG300-10/show_ip_interface.txt | 0 .../SG300-10/show_ip_route.txt | 0 .../SG300-10/show_ldp_neighbor_gi7.txt | 0 .../SG300-10/show_lldp_local_gi7.txt | 0 .../SG300-10/show_lldp_neighbors.txt | 0 .../SG300-10/show_ports_jumbo_frame.txt | 0 .../SG300-10/show_running-config.txt | 0 .../SG300-10/show_sntp_status.txt | 0 .../SG300-10/show_startup-config.txt | 0 .../SG300-10/show_system.txt | 0 .../SG300-10/show_version.txt | 0 .../SG350X-48P-K9/show_arp.txt | 0 .../SG350X-48P-K9/show_hosts.txt | 0 .../show_interface_description.txt | 0 .../SG350X-48P-K9/show_interfaces_status.txt | 0 .../SG350X-48P-K9/show_inventory.txt | 0 .../SG350X-48P-K9/show_ip_interface.txt | 0 .../SG350X-48P-K9/show_ip_route.txt | 0 .../SG350X-48P-K9/show_lldp_local_gi1_0_1.txt | 0 .../SG350X-48P-K9/show_lldp_neighbors.txt | 0 ...how_lldp_neighbors.txt.long_systemname.txt | 0 .../SG350X-48P-K9/show_lldp_neighbors_INT.txt | 0 .../show_lldp_neighbors_gi1_0_1.txt | 0 .../SG350X-48P-K9/show_ports_jumbo_frame.txt | 0 .../SG350X-48P-K9/show_running_config.txt | 0 .../show_running_config_detailed.txt | 0 .../SG350X-48P-K9/show_sntp_status.txt | 0 .../SG350X-48P-K9/show_startup_config.txt | 0 .../SG350X-48P-K9/show_system.txt | 0 .../SG350X-48P-K9/show_version.txt | 0 .../SG500-28-K9/show_arp.txt | 0 .../SG500-28-K9/show_hosts.txt | 0 .../show_interface_description.txt | 0 .../SG500-28-K9/show_interfaces_status.txt | 0 .../SG500-28-K9/show_inventory.txt | 0 .../SG500-28-K9/show_ip_interface.txt | 0 .../SG500-28-K9/show_ip_route.txt | 0 .../SG500-28-K9/show_lldp_local_gi1-1-1.txt | 0 .../show_lldp_neighbor_gi1-1-26.txt | 0 .../SG500-28-K9/show_lldp_neighbors.txt | 0 .../SG500-28-K9/show_ports_jumbo_frame.txt | 0 .../SG500-28-K9/show_running-config.txt | 0 .../SG500-28-K9/show_sntp_status.txt | 0 .../SG500-28-K9/show_startup-config.txt | 0 .../SG500-28-K9/show_system.txt | 0 .../SG500-28-K9/show_version.txt | 0 .../SG550X-24MP-K9/show_arp.txt | 0 .../SG550X-24MP-K9/show_hosts.txt | 0 .../show_interface_description.txt | 0 .../SG550X-24MP-K9/show_interfaces_status.txt | 0 .../SG550X-24MP-K9/show_inventory.txt | 0 .../SG550X-24MP-K9/show_ip_interface.txt | 0 .../SG550X-24MP-K9/show_ip_route.txt | 0 .../show_lldp_local_GigabitEthernet1-0-1.txt | 0 .../SG550X-24MP-K9/show_lldp_neighbors.txt | 0 .../show_lldp_neighbors_te1_0_4.txt | 0 .../SG550X-24MP-K9/show_ports_jumbo-frame.txt | 0 .../SG550X-24MP-K9/show_running_config.txt | 0 .../SG550X-24MP-K9/show_sntp_status.txt | 0 .../SG550X-24MP-K9/show_startup_config.txt | 0 .../SG550X-24MP-K9/show_system.txt | 0 .../SG550X-24MP-K9/show_version.txt | 0 test/unit/mocked_data/commands.txt | 33 ------------------- 68 files changed, 33 deletions(-) rename test/unit/{mocked_data => command_output}/SG300-10/show_arp.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_hosts.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_interface_description.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_interfaces_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_inventory.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_ip_interface.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_ip_route.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_ldp_neighbor_gi7.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_lldp_local_gi7.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_lldp_neighbors.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_ports_jumbo_frame.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_running-config.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_sntp_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_startup-config.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_system.txt (100%) rename test/unit/{mocked_data => command_output}/SG300-10/show_version.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_arp.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_hosts.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_interface_description.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_interfaces_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_inventory.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_ip_interface.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_ip_route.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_lldp_local_gi1_0_1.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_lldp_neighbors.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_lldp_neighbors.txt.long_systemname.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_lldp_neighbors_INT.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_lldp_neighbors_gi1_0_1.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_ports_jumbo_frame.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_running_config.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_running_config_detailed.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_sntp_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_startup_config.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_system.txt (100%) rename test/unit/{mocked_data => command_output}/SG350X-48P-K9/show_version.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_arp.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_hosts.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_interface_description.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_interfaces_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_inventory.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_ip_interface.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_ip_route.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_lldp_local_gi1-1-1.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_lldp_neighbor_gi1-1-26.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_lldp_neighbors.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_ports_jumbo_frame.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_running-config.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_sntp_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_startup-config.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_system.txt (100%) rename test/unit/{mocked_data => command_output}/SG500-28-K9/show_version.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_arp.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_hosts.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_interface_description.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_interfaces_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_inventory.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_ip_interface.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_ip_route.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_lldp_local_GigabitEthernet1-0-1.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_lldp_neighbors.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_lldp_neighbors_te1_0_4.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_ports_jumbo-frame.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_running_config.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_sntp_status.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_startup_config.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_system.txt (100%) rename test/unit/{mocked_data => command_output}/SG550X-24MP-K9/show_version.txt (100%) delete mode 100644 test/unit/mocked_data/commands.txt diff --git a/test/unit/mocked_data/SG300-10/show_arp.txt b/test/unit/command_output/SG300-10/show_arp.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_arp.txt rename to test/unit/command_output/SG300-10/show_arp.txt diff --git a/test/unit/mocked_data/SG300-10/show_hosts.txt b/test/unit/command_output/SG300-10/show_hosts.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_hosts.txt rename to test/unit/command_output/SG300-10/show_hosts.txt diff --git a/test/unit/mocked_data/SG300-10/show_interface_description.txt b/test/unit/command_output/SG300-10/show_interface_description.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_interface_description.txt rename to test/unit/command_output/SG300-10/show_interface_description.txt diff --git a/test/unit/mocked_data/SG300-10/show_interfaces_status.txt b/test/unit/command_output/SG300-10/show_interfaces_status.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_interfaces_status.txt rename to test/unit/command_output/SG300-10/show_interfaces_status.txt diff --git a/test/unit/mocked_data/SG300-10/show_inventory.txt b/test/unit/command_output/SG300-10/show_inventory.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_inventory.txt rename to test/unit/command_output/SG300-10/show_inventory.txt diff --git a/test/unit/mocked_data/SG300-10/show_ip_interface.txt b/test/unit/command_output/SG300-10/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_ip_interface.txt rename to test/unit/command_output/SG300-10/show_ip_interface.txt diff --git a/test/unit/mocked_data/SG300-10/show_ip_route.txt b/test/unit/command_output/SG300-10/show_ip_route.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_ip_route.txt rename to test/unit/command_output/SG300-10/show_ip_route.txt diff --git a/test/unit/mocked_data/SG300-10/show_ldp_neighbor_gi7.txt b/test/unit/command_output/SG300-10/show_ldp_neighbor_gi7.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_ldp_neighbor_gi7.txt rename to test/unit/command_output/SG300-10/show_ldp_neighbor_gi7.txt diff --git a/test/unit/mocked_data/SG300-10/show_lldp_local_gi7.txt b/test/unit/command_output/SG300-10/show_lldp_local_gi7.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_lldp_local_gi7.txt rename to test/unit/command_output/SG300-10/show_lldp_local_gi7.txt diff --git a/test/unit/mocked_data/SG300-10/show_lldp_neighbors.txt b/test/unit/command_output/SG300-10/show_lldp_neighbors.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_lldp_neighbors.txt rename to test/unit/command_output/SG300-10/show_lldp_neighbors.txt diff --git a/test/unit/mocked_data/SG300-10/show_ports_jumbo_frame.txt b/test/unit/command_output/SG300-10/show_ports_jumbo_frame.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_ports_jumbo_frame.txt rename to test/unit/command_output/SG300-10/show_ports_jumbo_frame.txt diff --git a/test/unit/mocked_data/SG300-10/show_running-config.txt b/test/unit/command_output/SG300-10/show_running-config.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_running-config.txt rename to test/unit/command_output/SG300-10/show_running-config.txt diff --git a/test/unit/mocked_data/SG300-10/show_sntp_status.txt b/test/unit/command_output/SG300-10/show_sntp_status.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_sntp_status.txt rename to test/unit/command_output/SG300-10/show_sntp_status.txt diff --git a/test/unit/mocked_data/SG300-10/show_startup-config.txt b/test/unit/command_output/SG300-10/show_startup-config.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_startup-config.txt rename to test/unit/command_output/SG300-10/show_startup-config.txt diff --git a/test/unit/mocked_data/SG300-10/show_system.txt b/test/unit/command_output/SG300-10/show_system.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_system.txt rename to test/unit/command_output/SG300-10/show_system.txt diff --git a/test/unit/mocked_data/SG300-10/show_version.txt b/test/unit/command_output/SG300-10/show_version.txt similarity index 100% rename from test/unit/mocked_data/SG300-10/show_version.txt rename to test/unit/command_output/SG300-10/show_version.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_arp.txt b/test/unit/command_output/SG350X-48P-K9/show_arp.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_arp.txt rename to test/unit/command_output/SG350X-48P-K9/show_arp.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_hosts.txt b/test/unit/command_output/SG350X-48P-K9/show_hosts.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_hosts.txt rename to test/unit/command_output/SG350X-48P-K9/show_hosts.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_interface_description.txt b/test/unit/command_output/SG350X-48P-K9/show_interface_description.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_interface_description.txt rename to test/unit/command_output/SG350X-48P-K9/show_interface_description.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_interfaces_status.txt b/test/unit/command_output/SG350X-48P-K9/show_interfaces_status.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_interfaces_status.txt rename to test/unit/command_output/SG350X-48P-K9/show_interfaces_status.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_inventory.txt b/test/unit/command_output/SG350X-48P-K9/show_inventory.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_inventory.txt rename to test/unit/command_output/SG350X-48P-K9/show_inventory.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_ip_interface.txt b/test/unit/command_output/SG350X-48P-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_ip_interface.txt rename to test/unit/command_output/SG350X-48P-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_ip_route.txt b/test/unit/command_output/SG350X-48P-K9/show_ip_route.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_ip_route.txt rename to test/unit/command_output/SG350X-48P-K9/show_ip_route.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_lldp_local_gi1_0_1.txt b/test/unit/command_output/SG350X-48P-K9/show_lldp_local_gi1_0_1.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_lldp_local_gi1_0_1.txt rename to test/unit/command_output/SG350X-48P-K9/show_lldp_local_gi1_0_1.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors.txt b/test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors.txt rename to test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors.txt.long_systemname.txt b/test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors.txt.long_systemname.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors.txt.long_systemname.txt rename to test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors.txt.long_systemname.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors_INT.txt b/test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors_INT.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors_INT.txt rename to test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors_INT.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors_gi1_0_1.txt b/test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors_gi1_0_1.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_lldp_neighbors_gi1_0_1.txt rename to test/unit/command_output/SG350X-48P-K9/show_lldp_neighbors_gi1_0_1.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_ports_jumbo_frame.txt b/test/unit/command_output/SG350X-48P-K9/show_ports_jumbo_frame.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_ports_jumbo_frame.txt rename to test/unit/command_output/SG350X-48P-K9/show_ports_jumbo_frame.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_running_config.txt b/test/unit/command_output/SG350X-48P-K9/show_running_config.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_running_config.txt rename to test/unit/command_output/SG350X-48P-K9/show_running_config.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_running_config_detailed.txt b/test/unit/command_output/SG350X-48P-K9/show_running_config_detailed.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_running_config_detailed.txt rename to test/unit/command_output/SG350X-48P-K9/show_running_config_detailed.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_sntp_status.txt b/test/unit/command_output/SG350X-48P-K9/show_sntp_status.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_sntp_status.txt rename to test/unit/command_output/SG350X-48P-K9/show_sntp_status.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_startup_config.txt b/test/unit/command_output/SG350X-48P-K9/show_startup_config.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_startup_config.txt rename to test/unit/command_output/SG350X-48P-K9/show_startup_config.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_system.txt b/test/unit/command_output/SG350X-48P-K9/show_system.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_system.txt rename to test/unit/command_output/SG350X-48P-K9/show_system.txt diff --git a/test/unit/mocked_data/SG350X-48P-K9/show_version.txt b/test/unit/command_output/SG350X-48P-K9/show_version.txt similarity index 100% rename from test/unit/mocked_data/SG350X-48P-K9/show_version.txt rename to test/unit/command_output/SG350X-48P-K9/show_version.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_arp.txt b/test/unit/command_output/SG500-28-K9/show_arp.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_arp.txt rename to test/unit/command_output/SG500-28-K9/show_arp.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_hosts.txt b/test/unit/command_output/SG500-28-K9/show_hosts.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_hosts.txt rename to test/unit/command_output/SG500-28-K9/show_hosts.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_interface_description.txt b/test/unit/command_output/SG500-28-K9/show_interface_description.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_interface_description.txt rename to test/unit/command_output/SG500-28-K9/show_interface_description.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_interfaces_status.txt b/test/unit/command_output/SG500-28-K9/show_interfaces_status.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_interfaces_status.txt rename to test/unit/command_output/SG500-28-K9/show_interfaces_status.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_inventory.txt b/test/unit/command_output/SG500-28-K9/show_inventory.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_inventory.txt rename to test/unit/command_output/SG500-28-K9/show_inventory.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_ip_interface.txt b/test/unit/command_output/SG500-28-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_ip_interface.txt rename to test/unit/command_output/SG500-28-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_ip_route.txt b/test/unit/command_output/SG500-28-K9/show_ip_route.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_ip_route.txt rename to test/unit/command_output/SG500-28-K9/show_ip_route.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_lldp_local_gi1-1-1.txt b/test/unit/command_output/SG500-28-K9/show_lldp_local_gi1-1-1.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_lldp_local_gi1-1-1.txt rename to test/unit/command_output/SG500-28-K9/show_lldp_local_gi1-1-1.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_lldp_neighbor_gi1-1-26.txt b/test/unit/command_output/SG500-28-K9/show_lldp_neighbor_gi1-1-26.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_lldp_neighbor_gi1-1-26.txt rename to test/unit/command_output/SG500-28-K9/show_lldp_neighbor_gi1-1-26.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_lldp_neighbors.txt b/test/unit/command_output/SG500-28-K9/show_lldp_neighbors.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_lldp_neighbors.txt rename to test/unit/command_output/SG500-28-K9/show_lldp_neighbors.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_ports_jumbo_frame.txt b/test/unit/command_output/SG500-28-K9/show_ports_jumbo_frame.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_ports_jumbo_frame.txt rename to test/unit/command_output/SG500-28-K9/show_ports_jumbo_frame.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_running-config.txt b/test/unit/command_output/SG500-28-K9/show_running-config.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_running-config.txt rename to test/unit/command_output/SG500-28-K9/show_running-config.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_sntp_status.txt b/test/unit/command_output/SG500-28-K9/show_sntp_status.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_sntp_status.txt rename to test/unit/command_output/SG500-28-K9/show_sntp_status.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_startup-config.txt b/test/unit/command_output/SG500-28-K9/show_startup-config.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_startup-config.txt rename to test/unit/command_output/SG500-28-K9/show_startup-config.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_system.txt b/test/unit/command_output/SG500-28-K9/show_system.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_system.txt rename to test/unit/command_output/SG500-28-K9/show_system.txt diff --git a/test/unit/mocked_data/SG500-28-K9/show_version.txt b/test/unit/command_output/SG500-28-K9/show_version.txt similarity index 100% rename from test/unit/mocked_data/SG500-28-K9/show_version.txt rename to test/unit/command_output/SG500-28-K9/show_version.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_arp.txt b/test/unit/command_output/SG550X-24MP-K9/show_arp.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_arp.txt rename to test/unit/command_output/SG550X-24MP-K9/show_arp.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_hosts.txt b/test/unit/command_output/SG550X-24MP-K9/show_hosts.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_hosts.txt rename to test/unit/command_output/SG550X-24MP-K9/show_hosts.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_interface_description.txt b/test/unit/command_output/SG550X-24MP-K9/show_interface_description.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_interface_description.txt rename to test/unit/command_output/SG550X-24MP-K9/show_interface_description.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_interfaces_status.txt b/test/unit/command_output/SG550X-24MP-K9/show_interfaces_status.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_interfaces_status.txt rename to test/unit/command_output/SG550X-24MP-K9/show_interfaces_status.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_inventory.txt b/test/unit/command_output/SG550X-24MP-K9/show_inventory.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_inventory.txt rename to test/unit/command_output/SG550X-24MP-K9/show_inventory.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_ip_interface.txt b/test/unit/command_output/SG550X-24MP-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_ip_interface.txt rename to test/unit/command_output/SG550X-24MP-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_ip_route.txt b/test/unit/command_output/SG550X-24MP-K9/show_ip_route.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_ip_route.txt rename to test/unit/command_output/SG550X-24MP-K9/show_ip_route.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_lldp_local_GigabitEthernet1-0-1.txt b/test/unit/command_output/SG550X-24MP-K9/show_lldp_local_GigabitEthernet1-0-1.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_lldp_local_GigabitEthernet1-0-1.txt rename to test/unit/command_output/SG550X-24MP-K9/show_lldp_local_GigabitEthernet1-0-1.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_lldp_neighbors.txt b/test/unit/command_output/SG550X-24MP-K9/show_lldp_neighbors.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_lldp_neighbors.txt rename to test/unit/command_output/SG550X-24MP-K9/show_lldp_neighbors.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_lldp_neighbors_te1_0_4.txt b/test/unit/command_output/SG550X-24MP-K9/show_lldp_neighbors_te1_0_4.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_lldp_neighbors_te1_0_4.txt rename to test/unit/command_output/SG550X-24MP-K9/show_lldp_neighbors_te1_0_4.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_ports_jumbo-frame.txt b/test/unit/command_output/SG550X-24MP-K9/show_ports_jumbo-frame.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_ports_jumbo-frame.txt rename to test/unit/command_output/SG550X-24MP-K9/show_ports_jumbo-frame.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_running_config.txt b/test/unit/command_output/SG550X-24MP-K9/show_running_config.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_running_config.txt rename to test/unit/command_output/SG550X-24MP-K9/show_running_config.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_sntp_status.txt b/test/unit/command_output/SG550X-24MP-K9/show_sntp_status.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_sntp_status.txt rename to test/unit/command_output/SG550X-24MP-K9/show_sntp_status.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_startup_config.txt b/test/unit/command_output/SG550X-24MP-K9/show_startup_config.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_startup_config.txt rename to test/unit/command_output/SG550X-24MP-K9/show_startup_config.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_system.txt b/test/unit/command_output/SG550X-24MP-K9/show_system.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_system.txt rename to test/unit/command_output/SG550X-24MP-K9/show_system.txt diff --git a/test/unit/mocked_data/SG550X-24MP-K9/show_version.txt b/test/unit/command_output/SG550X-24MP-K9/show_version.txt similarity index 100% rename from test/unit/mocked_data/SG550X-24MP-K9/show_version.txt rename to test/unit/command_output/SG550X-24MP-K9/show_version.txt diff --git a/test/unit/mocked_data/commands.txt b/test/unit/mocked_data/commands.txt deleted file mode 100644 index 2f33174..0000000 --- a/test/unit/mocked_data/commands.txt +++ /dev/null @@ -1,33 +0,0 @@ -If you want to help with unit test, please take look at tested devices and in case you do not find device type you own, send us output of these commands: - -# setup terminal -terminal datadump -terminal width 0 -terminal no prompt - -show inventory -show version -show system -show interfaces status -show interfaces description -show ports jumbo-frame - -# choose any physical interface on your device -show lldp local GigabitEthernet1 -show lldp local GigabitEthernet1/1 -show lldp local GigabitEthernet1/0/1 - -show ip interface -show ip route -show lldp neighbors - -# choose any interface with attached neighbor -show lldp neighbor GigabitEthernet1 - -show sntp status -show hosts -show arp -show startup-config -show running-config - - From 8228244ceb947e3c3489753e6cf454428ae40cc4 Mon Sep 17 00:00:00 2001 From: Petr Klima Date: Mon, 8 Mar 2021 17:52:40 +0100 Subject: [PATCH 2/7] add command outputs for CBS350-24P-4G --- .../command_output/CBS350-24P-4G/show_arp.txt | 6 + .../CBS350-24P-4G/show_hosts.txt | 43 ++ ..._interface_switchport_GigabitEthernet8.txt | 33 ++ .../show_interfaces_description.txt | 41 ++ .../CBS350-24P-4G/show_interfaces_status.txt | 43 ++ .../CBS350-24P-4G/show_inventory.txt | 2 + .../CBS350-24P-4G/show_ip_interface.txt | 6 + .../show_ipv6_interface_brief.txt | 5 + .../show_lldp_local_GigabitEthernet8.txt | 30 ++ .../CBS350-24P-4G/show_lldp_neighbors.txt | 13 + .../show_lldp_neighbors_GigabitEthernet8.txt | 46 ++ .../CBS350-24P-4G/show_ports_jumbo_frame.txt | 2 + .../CBS350-24P-4G/show_running_config.txt | 125 ++++++ .../show_running_config_detailed.txt | 396 ++++++++++++++++++ .../CBS350-24P-4G/show_sntp_status.txt | 56 +++ .../CBS350-24P-4G/show_startup_config.txt | 125 ++++++ .../CBS350-24P-4G/show_system.txt | 20 + .../CBS350-24P-4G/show_version.txt | 10 + 18 files changed, 1002 insertions(+) create mode 100644 test/unit/command_output/CBS350-24P-4G/show_arp.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_hosts.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_interface_switchport_GigabitEthernet8.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_interfaces_description.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_interfaces_status.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_inventory.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_ip_interface.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_ipv6_interface_brief.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_ports_jumbo_frame.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_running_config.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_running_config_detailed.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_sntp_status.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_startup_config.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_system.txt create mode 100644 test/unit/command_output/CBS350-24P-4G/show_version.txt diff --git a/test/unit/command_output/CBS350-24P-4G/show_arp.txt b/test/unit/command_output/CBS350-24P-4G/show_arp.txt new file mode 100644 index 0000000..a89f6d4 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_arp.txt @@ -0,0 +1,6 @@ +Total number of entries: 1 + + + VLAN Interface IP address HW address status +--------------------- --------------- ------------------- --------------- +vlan 11 gi19 10.7.3.5 00:2d:b9:58:4e:1d dynamic diff --git a/test/unit/command_output/CBS350-24P-4G/show_hosts.txt b/test/unit/command_output/CBS350-24P-4G/show_hosts.txt new file mode 100644 index 0000000..c31c311 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_hosts.txt @@ -0,0 +1,43 @@ +Name/address lookup is enabled +Domain Timeout: 2 seconds +Domain Retry: 1 times +Domain Polling Interval: 8 seconds + + +Default Domain Table + + Domain Source Interface Preference +-------------------------------------------- ------- --------- ---------- +abnam.example.com static + + +Name Server Table + + IP Address Source Interface Preference +-------------------------------------------- ------- --------- ---------- +fe80::1%vlan1 DHCPv6 vlan 1 1 + + +Cache Table +Flags: (STA/DYN, OK/NE/??) +STA - Static, DYN - Dynamic +OK - Okay, NE - Negative Cache, ?? - No Response + + Remaining + Host Addresses Type State TTL +------------------------- ------------------------ ---- ------ ---------- +pool.ntp.org no resolution IPv4 DYN,?? +time-pnp.cisco.com no resolution IPv6 DYN,?? +time-pnp.cisco.com no resolution IPv4 DYN,?? +time-a.timefreq.bldrdoc.g no resolution IPv6 DYN,?? +ov +time-a.timefreq.bldrdoc.g no resolution IPv4 DYN,?? +ov +time-b.timefreq.bldrdoc.g no resolution IPv6 DYN,?? +ov +time-b.timefreq.bldrdoc.g no resolution IPv4 DYN,?? +ov +time-c.timefreq.bldrdoc.g no resolution IPv6 DYN,?? +ov +time-c.timefreq.bldrdoc.g no resolution IPv4 DYN,?? +ov diff --git a/test/unit/command_output/CBS350-24P-4G/show_interface_switchport_GigabitEthernet8.txt b/test/unit/command_output/CBS350-24P-4G/show_interface_switchport_GigabitEthernet8.txt new file mode 100644 index 0000000..ada9e90 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_interface_switchport_GigabitEthernet8.txt @@ -0,0 +1,33 @@ +S-VLAN Ethernet Type: 0x8100 (802.1q) +VLAN Mapping Tunnel L2 protocols Global CoS: 5 +Name: gi8 +Switchport: enable +Administrative Mode: access +Operational Mode: up +Access Mode VLAN: 80 +Access Multicast TV VLAN: none +Trunking Native Mode VLAN: 1 +Trunking VLANs: 1,11,90 + 2-10,12-89,81-4094 (Inactive) +General PVID: 1 +General VLANs: none +General Egress Tagged VLANs: none +General Forbidden VLANs: none +General Ingress Filtering: enabled +General Acceptable Frame Type: all +General GVRP status: disabled +Customer Mode VLAN: none +Customer Multicast TV VLANs: none +Private-vlan promiscuous-association primary VLAN: none +Private-vlan promiscuous-association Secondary VLANs: none +Private-vlan host-association primary VLAN: none +Private-vlan host-association Secondary VLAN: none + +VLAN Mapping Tunnel - no resources + +VLAN Mapping One-To-One - no resources + +Classification rules: + +Classification type Group ID VLAN ID +------------------- -------- ------- diff --git a/test/unit/command_output/CBS350-24P-4G/show_interfaces_description.txt b/test/unit/command_output/CBS350-24P-4G/show_interfaces_description.txt new file mode 100644 index 0000000..3c7857f --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_interfaces_description.txt @@ -0,0 +1,41 @@ +Port Description +------- ----------- +gi1 +gi2 +gi3 +gi4 +gi5 server +gi6 +gi7 +gi8 +gi9 +gi10 +gi11 +gi12 +gi13 +gi14 +gi15 +gi16 +gi17 +gi18 +gi19 +gi20 +gi21 +gi22 +gi23 +gi24 +gi25 +gi26 +gi27 +gi28 + +Ch Description +------- ----------- +Po1 +Po2 +Po3 +Po4 +Po5 +Po6 +Po7 +Po8 diff --git a/test/unit/command_output/CBS350-24P-4G/show_interfaces_status.txt b/test/unit/command_output/CBS350-24P-4G/show_interfaces_status.txt new file mode 100644 index 0000000..8fbe475 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_interfaces_status.txt @@ -0,0 +1,43 @@ +Flow Link Back Mdix +Port Type Duplex Speed Neg ctrl State Pressure Mode +-------- ------------ ------ ----- -------- ---- ----------- -------- ------- +gi1 1G-Copper Full 100 Enabled Off Up Disabled Off +gi2 1G-Copper -- -- -- -- Down -- -- +gi3 1G-Copper Full 100 Enabled Off Up Disabled Off +gi4 1G-Copper Full 100 Enabled Off Up Disabled Off +gi5 1G-Copper Full 100 Enabled Off Up Disabled Off +gi6 1G-Copper -- -- -- -- Down -- -- +gi7 1G-Copper -- -- -- -- Down -- -- +gi8 1G-Copper Full 1000 Enabled Off Up Disabled On +gi9 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi10 1G-Copper Full 1000 Enabled Off Up Disabled On +gi11 1G-Copper -- -- -- -- Down -- -- +gi12 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi13 1G-Copper -- -- -- -- Down -- -- +gi14 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi15 1G-Copper -- -- -- -- Down -- -- +gi16 1G-Copper Full 1000 Enabled Off Up Disabled On +gi17 1G-Copper -- -- -- -- Down -- -- +gi18 1G-Copper Full 1000 Enabled Off Up Disabled On +gi19 1G-Copper Full 1000 Enabled Off Up Disabled On +gi20 1G-Copper -- -- -- -- Down -- -- +gi21 1G-Copper -- -- -- -- Down -- -- +gi22 1G-Copper -- -- -- -- Down -- -- +gi23 1G-Copper -- -- -- -- Down -- -- +gi24 1G-Copper -- -- -- -- Down -- -- +gi25 1G-Fiber -- -- -- -- Down -- -- +gi26 1G-Fiber -- -- -- -- Down -- -- +gi27 1G-Fiber -- -- -- -- Down -- -- +gi28 1G-Fiber -- -- -- -- Down -- -- + + Flow Link +Ch Type Duplex Speed Neg control State +-------- ------- ------ ----- -------- ------- ----------- +Po1 -- -- -- -- -- Not Present +Po2 -- -- -- -- -- Not Present +Po3 -- -- -- -- -- Not Present +Po4 -- -- -- -- -- Not Present +Po5 -- -- -- -- -- Not Present +Po6 -- -- -- -- -- Not Present +Po7 -- -- -- -- -- Not Present +Po8 -- -- -- -- -- Not Present diff --git a/test/unit/command_output/CBS350-24P-4G/show_inventory.txt b/test/unit/command_output/CBS350-24P-4G/show_inventory.txt new file mode 100644 index 0000000..15fe520 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_inventory.txt @@ -0,0 +1,2 @@ +NAME: "1" DESCR: "CBS350-24P-4G 24-Port Gigabit PoE Managed Switch" +PID: CBS350-24P-4G VID: V01 SN: FOC5732A91L diff --git a/test/unit/command_output/CBS350-24P-4G/show_ip_interface.txt b/test/unit/command_output/CBS350-24P-4G/show_ip_interface.txt new file mode 100644 index 0000000..03eba51 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_ip_interface.txt @@ -0,0 +1,6 @@ + + IP Address I/F I/F Status Type Directed Prec Redirect Status + admin/oper Broadcast +------------------ --------- ---------- ------- --------- ---- -------- ------ +10.0.0.150/24 vlan 80 UP/UP Static disable No enable Valid +10.1.2.2/24 vlan 10 UP/UP Static disable No enable Valid diff --git a/test/unit/command_output/CBS350-24P-4G/show_ipv6_interface_brief.txt b/test/unit/command_output/CBS350-24P-4G/show_ipv6_interface_brief.txt new file mode 100644 index 0000000..a4f5221 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_ipv6_interface_brief.txt @@ -0,0 +1,5 @@ + +Interface Interface IPv6 Link Local MLD Number of + State State IPv6 Address Version Global Addresses +---------- --------- --------- ------------------------- ------- ---------------- + vlan 1 up/down enabled fe80::a6b2:39ff:fee4:6b8f 2 0 diff --git a/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt b/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt new file mode 100644 index 0000000..9cbdaac --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt @@ -0,0 +1,30 @@ +Device ID: a4:b2:d9:a4:sb:6f +Port ID: a4:b2:d9:a4:4b:97 +Capabilities: Bridge, Router +System Name: sw-abnam-cde-q +Management address: 11.2.5.245 + +802.3 Power Via Mdi: + MDI Power support Port Class: PSE + PSE MDI Power Support: Supported + PSE MDI Power State: Enabled + PSE power pair control ability: Not supported + PSE Power Pair: Spare + PSE Power class: 0 + Power Type: Type 2 PSE + Power Source: Primary Power Source + Power Priority: low + PSE Allocated Power Value: 13.0 + +802.3 EEE: + + Local Tx: 17 uSec + Local Rx: 17 uSec + Local Tx Echo: 17 uSec + Local Rx Echo: 17 uSec + + +802.1 PVID: 80 +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: diff --git a/test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors.txt b/test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors.txt new file mode 100644 index 0000000..aed2825 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors.txt @@ -0,0 +1,13 @@ +System capability legend: +B - Bridge; R - Router; W - Wlan Access Point; T - telephone; +D - DOCSIS Cable Device; H - Host; r - Repeater; +TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other + + Port Device ID Port ID System Name Capabilities TTL +--------- ----------------- ----------------- ----------------- ------------ ----- +gi8 78:b2:b9:95:56:2a 78:b2:b9:95:56:2a APLobby B, W 97 +gi9 78:b2:b9:95:56:49 78:b2:b9:95:56:49 APlut B, W 138 +gi13 78:b2:b9:b5:4a:9c 78:b2:b9:b5:4a:9c APModr B, W 135 +gi12 78:b2:b9:95:57:3a 78:b2:b9:95:57:3a APZelen B, W 117 +gi14 dc:4a:5e:56:8f:36 dc:4a:5e:56:8f:36 O 5586 +gi16 e3:65:da:32:be:43 e3:65:da:32:be:43 APerven B, W 98 diff --git a/test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt b/test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt new file mode 100644 index 0000000..8c6cf19 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt @@ -0,0 +1,46 @@ +Device ID: 75:e6:b9:83:56:2a +Port ID: 75:e6:b9:83:56:2a +Capabilities: Bridge, Wlan-Access-Point +System Name: APLobby +System description: AP-UF, 5.2.28.18361 +Port description: bri0 +Management Address: 11.2.6.7 +Management Address: 2a00:1028:96d4:b546:768c:b97f:fe93:562a +Time To Live: 95 + + +802.3 MAC/PHY Configuration/Status +Auto-negotiation support: Not supported +Auto-negotiation status: Disabled +Auto-negotiation Advertised Capabilities: +Operational MAU type: Unknown + +802.3 Link Aggregation +Aggregation capability: Capable of being aggregated +Aggregation status: Currently not in aggregation + + +802.3 EEE: + + Remote Tx: 17 uSec + Remote Rx: 17 uSec + Remote Tx Echo: 17 uSec + Remote Rx Echo: 17 uSec + + +802.1 PVID: None +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: + + +LLDP-MED capabilities: Capabilities, Network Policy, Location, POE-PSE, POE-PD, Inventory +LLDP-MED Device Type: Network Connectivity + +Hardware revision: +Firmware revision: +Software revision: 5.2.28.18361 +Serial number: +Manufacturer name: +Model name: +Asset ID: diff --git a/test/unit/command_output/CBS350-24P-4G/show_ports_jumbo_frame.txt b/test/unit/command_output/CBS350-24P-4G/show_ports_jumbo_frame.txt new file mode 100644 index 0000000..bbb9c80 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_ports_jumbo_frame.txt @@ -0,0 +1,2 @@ +Jumbo frames are disabled + Jumbo frames will be disabled after reset diff --git a/test/unit/command_output/CBS350-24P-4G/show_running_config.txt b/test/unit/command_output/CBS350-24P-4G/show_running_config.txt new file mode 100644 index 0000000..decb3ad --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_running_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-naam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-naam-1 +passwords complexity min-classes 1 +passwords aging 0 +username asrnm password encrypted $15$hOXXXXXxxxxxtmvz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username alima password encrypted $15$y3XXXXXxxxxxzE8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name iab.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.5.8.9 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.8.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.5.8.1 diff --git a/test/unit/command_output/CBS350-24P-4G/show_running_config_detailed.txt b/test/unit/command_output/CBS350-24P-4G/show_running_config_detailed.txt new file mode 100644 index 0000000..c553790 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_running_config_detailed.txt @@ -0,0 +1,396 @@ +config-file-header +sw-aaanam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-aaanam-1 +passwords complexity min-classes 1 +passwords aging 0 +username asrdn password encrypted $15$hOzXQXXXXXxxxxxz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username alima password encrypted $15$y3ZXXXXXxxxxx8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name aaanam.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.7.6.2 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.5.8.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.7.6.1 +encrypted ip ssh-client key rsa key-pair +---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ---- +Comment: RSA Private Key +4IBje2mpuLoP7aT2rJdIoEHTRiE2kAdq+mNIKqQRPY4BCSPoccLFfS2drIsb8pIBnTQouE +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +YllXAMmkQtYXN8qa+ltk3VnqPS/UxnS+hLIqhT2OAzfP6/cNW4BRDQ3vZF3qbwb/Uo+pt/ +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +SAwRpF6ZXWXBqZBRWDjRZoL6oLamXRBpFMxaysingbw4kqS4i7bMq123l1nno2bsxZLEGc +IMKPXq7Uhkl88x85XOuFngCpyZPy42fXEtthJQqgRwmmKmMnGoYdz7gZkVaZ/J7D5eqofD +2KFCbMa6dlQGv+c5nLIGwXaxG+iG+lc7p7Ko8/mySyIZ9tZw0yXLPy/62r3q6H3RyzyoZb +VoSqOphayavKp0Bto8yVyl4A9DBBFXvnqh0VJhA9CUoe61XTmTPLcQor8JODySI41aMYRI +fz/Y4UXejY7EyxvWvCg7vGtQ1JtY0qx5J7XMUekrvwK2JKKGzbmqjMrniINoWBk459bA2q +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +fZGUqUxmj5ex0Nr0cHKhPg8RxbfdRbDB0ctLmqdGxY1khW6/tsnw6xL/dm19/BQa4z4+9B +czJUP+5K3XM5A5U1KH3PXNyCHnBHZndvaslzI9omc0piT9YJcjcfeG0dbGLFH2kMQtSx7h +3CjnCYZMHKiZbostrgmA/oY6il0tgY96ZP+JFn+Irj/Rt5IrJheN/ohJjP0dI8qFgiaCGI +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +zOv0OILzWI9pzJRjs5VRO3UPBnWECyZqRilvc+LIIMRosnugllgJeMd0R2CHK3HU2J6DHJ +yr0WZCDUY1J0wXaISOWMUaSuQnB0rv663MGWJgG/5LvjEul8/M8OqtBMFJHrSnSB7UxFDu +vb98M1ULb/gM7dPBN8Qy7jMRytiKwhUrm9B/Z3z/12/xx6WqrZxdNTxQSQ0hfE9waaQXWA +5PmyCV7vGd27ogxGdp+6HHfzktxFzRz3aVo0+AeVEgpXMMjTV6jG/2BzbOv5GvegLkj0Vs +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +6EHbOisZmXKxS46NF6USl80j8CG7anzdA/z05U2w8Kh4EQZzuI6cBJCcJFRBwFQjhr54Ky +YINWiFK0aEAbRjpvt8jaaQ2HHMYVlHgmiTStikh65qhafyqpw0nhanzlTxNW+G/el2r4z+ +D/+i8h3o4t8Ogr+vu0IMglWTTu0r8gQevADhcvhctAenJs1Rzn1/I4z4gY6L52gyYyy2e9 +4oeopEeOuqR9jAbMGQxe/hvmT2A8FjYmdN7pvcXlJo/ehhSu2bTUhl2QAOe2mzEntmecg8 +otq0qWIhY0kJORi7F6t7UFTLepMPUbnV8TsYe3NjI13vnj0ndA2JxlFGvejzvFu9A1Eonm +/l8Zyz0ncjtbcNiPXZo95pBbYpFL1JeqfCJB1hL9EWLLpacIU3XSPy3yKiyFqQZx0t4LAo +9BHCg2qMRWlsXLO8ebMUhkCrd5mOrm1QY5HmbFK067KzpmNw9o3mIj81pbnhRFys4pEm4A +S99FsRWTAyJz0Z5W7osHjlI6WqMmEc920e3ObzWTbLd1jddrCfrst5U= +---- END SSH2 PRIVATE KEY ---- +---- BEGIN SSH2 PUBLIC KEY ---- +Comment: RSA Public Key +AAAAB3NzaC1yc2EAAAADAQABAAABAQDHbAMRTeA7PnweI4t1AGl5jFWqw8dFGVVpFmygnz +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +TwGD/i22JOWR14Ka46YzxtJMV8aHSYh/wGAEhaae3rCpDzm9Dy9Pq623Tqa6GZVFxVtp6U +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +x5D2iCf32VWmXQVvyRLb1P +---- END SSH2 PUBLIC KEY ---- +. +encrypted ip ssh-client key dsa key-pair +---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ---- +Comment: DSA Private Key +b9F76lXM867lGwXasfZiqWloCE23zJND5qW/48AibvqF/JYHd0Bvennlt56Vll7tphjh0I +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +n9YDWfAVakuF7qXgeaPGrDKf4APj+wjSJ6tqBHmPLWxmy+7563Vc1z6WciCIPUii1TLsHW +y+epTzR7BO7EOmOi3a5CdYtrBSz5PnPdjA6A6MiQHGxd7o074+E9nYp4oj4Ge74x6yWegO +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +tN+GZZ4iQvikojD2KRk8OKg8JtCouMTYtep/5b65ddM/sA2blJhSjgIaPk48MejraFww+Z +SN2IvyKSKqTfe8/K0af7+Pq53KOMvDPJJzTPEYVM3JCapk+zO8F+yo11hcJVK1gjiq921R +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +YY3o+Okx/RdLXumHc4MQ1SunCyM1udY5eMpX5J2yYybGczlDeXwHrq7CQZQWi2X6YJdqvP +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +6FYp7NT0WDtrNenb9kaxpzozQqv0xMfPVFAqHeFGiYaH233yYZz+9EmaIoyXm4A1siWVPh +KXPvOYV/o3llDhQL2+1sOZ+TDSbfK8mPHT2s5vKl6bvMMbmr/aKsbm6l9n5BlX +---- END SSH2 PRIVATE KEY ---- +---- BEGIN SSH2 PUBLIC KEY ---- +Comment: DSA Public Key +AAAAB3NzaC1kc3MAAACBAL6bfj98tuqZD4TNqa7U5qUZT73Seks4Zf9Ui1SytAkwp7iTNS +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +zK4QhOS2kJ8Ra4lVUFLN2gFAn7sP4mH0MkRXp5QVXT3feCK8N+KrTdahZrUFeK+/Phyi4l +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +YVRBO0Tijyww/UGWWCS1kg92kpviKFhpGxsTJXIQg6wmEuj5sfD5AAAAFQD4zfyZn49DWS +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +wCCHWgB7lf+uwvgQAAAIBw2CJzwH+1SBlqdhz/Y6NWqcea3shXIB2hgZBJF3WB2kI1BKf4 +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +6hDuxAgld0ErrLR5aMk= +---- END SSH2 PUBLIC KEY ---- +. +encrypted crypto key import rsa +---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ---- +Comment: RSA Private Key +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 +---- END SSH2 PRIVATE KEY ---- +---- BEGIN SSH2 PUBLIC KEY ---- +Comment: RSA Public Key +AAAAB3NzaC1yc2EAAAADAQABAAABAQDFgFS81W02NtPMFaNJAiKmEd5K6R9sKbu5Y3DkAv +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +eNg8ZBl57rvHT+5YeEkgBg10bE10JbtHGshTEJ+Zsw1eO+uZIc9HampeJXZ8mjbbGq8adY +2QGOc3YZlPXVRdmsVXQizwnAHMgJNaYl1DOxXnXVT4Q0g1TdwPSjorT84+hXXqQVqviJ5Z +bkKJigP58dzaavJvxVftHH +---- END SSH2 PUBLIC KEY ---- +. +encrypted crypto key import dsa +---- BEGIN SSH2 ENCRYPTED PRIVATE KEY ---- +Comment: DSA Private Key +Uw2f+cWbGpEZgy+01zv5nM5Rf5j6QKdKc7taOtPwAl4KmmT9ePuHMnRFq78KBMmSYJA9ED +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +nacBKVSRsNRJotrUC6LhdwtfluTATiNO/98vuc5G23Cg2Ngj5vgoLPr6Soi5/mD/LQnTLd +dgne9gNCd5SJo1rUU3k27WT1nLnQP7Zh+wdnYHyYjGz6DSx4g5pGa3PTORT4O/2Ae/v9r7 +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +X03j8r61fs6WZbf4jv0m5jWWV/+ecLP/4cIJcDL9K6naQT9WneFaoMQA6Tjb3WOQzqhC3X +KeS13OJ0Yt8TUHhEZc5zPlbcYTWQfVio/U5bEQrkS/jTULISsZO4jJ2LaX4fJ8hR+9ztGk +ZhCkCQmWc/8sGPY8LvrjIEbJhv6Ffrz/oADvW6/zbD4rebwS5h2Lf1SrLTvjfvneWJx1Jm +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +W+fyzggadRJBwDvT9l9Wf5pH8WJ7WOV8hAJ4t5BBMol0wjpVi5DIPQ8+EZbrPRthhq9vpv +DReyeaQVlz4+o7jGqNKHOMpTu9PNth5fvDh3FwE2FvxDcAFrEFKyGLiPlwrXI+ +---- END SSH2 PRIVATE KEY ---- +---- BEGIN SSH2 PUBLIC KEY ---- +Comment: DSA Public Key +AAAAB3NzaC1kc3MAAACBAMpS4LqdDFtb2rCMreOwrE2v5pIgJjYe1wAxopu1DNuWZGvUe8 +fKYr9etW49/G8h7SoRrYZxS7zVraV5GlOtoak3YGpCvt6QAM9hGHkMcH+YzCzA5t6Gi+vs +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +PD2MC4YIvgLNyYSpP/NqFq0G9S/ckiLzlP75mjrkn4GWlXp6XghxAAAAFQCVLvfzHmNpyc +1w5n0/mMfLOEYBUQAAAIBAJx3813/J8BTsJZ+yBYSM+/c1JSx8j04Uvp0jCy4ndya0p2VO +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +hOJN7+Bvyxzs0yUXMamzjDse9tkRsi/mQSSmGKIbpM6Kl3wedS7uirqDSNHLgEPUbc7cpX +VzYt9WlxEZokN+gQLSXmSxyatknNyUB1I8S55Ljow7q0J0t2E/+QNSzCIterVNHW18Ca2U +6F0PWFzFQ9mjpb/2Oxs= +---- END SSH2 PUBLIC KEY ---- +. +encrypted crypto certificate 1 import +-----BEGIN RSA ENCRYPTED PRIVATE KEY----- +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 +-----END RSA PRIVATE KEY----- +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEApGzYKCV12CNtDdkGHrFCjr2Ic5MklyXf9W3DmJuzQbdDIib/0QiwKK3gx4 +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +KVDB+QPVwzT+j9+4J2UICf2jQYJs3Aypol10OEHphHsJ3PjxlhgXSFydUTetC14SYlqZMt +lokroXWhoIGv/sj7al/DHCKr33uPNF3yoOD/8NyYjJDcUOZpQebqQcXLnhHIo0NCCjR0ID +l6twIDAQAB +-----END RSA PUBLIC KEY----- +-----BEGIN CERTIFICATE----- +MIIDJzCCAg8CEGRF05GRhjAxsiFws76YAC4wDQYJKoZIhvcNAQELBQAwUjELMAkG +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +A1UEBhMCICAxCjAIBgNVBAgMASAxCjAIBgNVBAcMASAxEzARBgNVBAMMCjEwLjAu +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +MjIwNjE4MDgzMzU3WjBSMQswCQYDVQQGEwIgIDEKMAgGA1UECAwBIDEKMAgGA1UE +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +IDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKRs2CglddgjbQ3ZBh6x +CM4yOcMoZ+ws9KIDUOmIWVmDujj7fL+JG94G79z1bQK0joyrX2p8uzExEpnpaGEK +ItVsxDVwSI28SFHbPD0eJnIDb3Lrt9QGQaACeF1dqOBLGWLq0QFilQwfkD1cM0/o +/fuCdlCAn9o0GCbNwMqaJddDhB6YR7Cdz48ZYYF0hcnVE3rQteEmJamTLZaJK6F1 +oaCBr/7I+2pfwxwiq997jzRd8qDg//DcmIyQ3FDmaUHm6kHFy54RyKNDQgo0dCA5 +ercCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEABd2z/OzvNSB3Vl2piK20ESpDAmab +so4C51pU+odY+HyoA3VDv7oeST90EunzK9/Yju7/4EFLJa4zbOGppFtvn34TOIRq +6Yk7CCbeXPwf4B3vtJq0iCB1UID2lHToH/lQaeBS6bBNkNyKgzQAvnG1cPu7yMPW +yiO1uAYD1tLFHcTqHWgAVvm+GbG2JAC50ECNWAgz5lUuVHz4CXNBSsyUDeWxUEJS +HFFrB9cYv+OHTwNqQQElZZI8so9rGdf3LfGBUxmgwfF12prMfx83+1P7JzZdQhXr +iPNH5pknzHTX4oDnLrChNKbXslWq/BKZGg6DCT9kvN2zOhzlvIzPjXE5VQ== +-----END CERTIFICATE----- +. +encrypted crypto certificate 2 import +-----BEGIN RSA ENCRYPTED PRIVATE KEY----- +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 +-----END RSA PRIVATE KEY----- +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEA4QLFVAz9B2i1sX2HkNCEWOp/Olkx+7RgYWhJ5JdU8QANFz1Udoai4fP2Dx +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaaaBBBBBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +DfpN0abkXqp5Fs/CmjAlYP75RtIm/MAipUG6y4iK9bK2zb7+d9HqztEntzNTcfO4SI0dyv +wpH0TzwuHkFz7PcKufJasawvCJ5WilOp+B51tIzCBGsLratmvXnAh5QUavORZEWs9CkEB1 +BDYQIDAQAB +-----END RSA PUBLIC KEY----- +-----BEGIN CERTIFICATE----- +MIIDJzCCAg8CEENj0ARxBb6Sh9YrA4UVfWkwDQYJKoZIhvcNAQELBQAwUjELMAkG +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +A1UEBhMCICAxCjAIBgNVBAgMASAxCjAIBgNVBAcMASAxEzARBgNVBAMMCjEwLjAu +MC4xNTAxCjAIBgNVBAoMASAxCjAIBgNVBAsMASAwHhcNMjAwNjE4MDgzNDEyWhcN +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +MjIwNjE4MDgzNDEyWjBSMQswCQYDVQQGEwIgIDEKMAgGA1UECAwBIDEKMAgGA1UE +jtM3bSHzUXMe/30eGC7dXfC9r/4Ta5F5ravxwHC4SdfhTnElIsid6XFRfmT848Tl +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +aaaaaaaaaaBBBBBBBBBccccccccccccccccccccDDDDDDDDDDDDDDDDDDDDDDDDD +Lh5Bc+z3CrnyWrGsLwieVopTqfgedbSMwgRrC62rZr15wIeUFGrzkWRFrPQpBAdQ +Q2ECAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAKqTlR8mexSEC939LNq4VX4xoTXg6 +le9hVdkWY6f+nqMXAjEBuTo4JMjbQJHczwK9iTQJ091Fhk+Z0u6/xiYY5kCoXkqJ +ZMyxuKpptGTHP+gRuG7uHLCvhS0j3OUogqbjkoE6JIIyfi4fdGUw0D/c9sL+TPLR +MHW1p3eIr4mQba/6m0LRzm0niiMVpVv4ZUu6ytP/24ljq/Wf82XZpm4R1PaVFeFk +fpWLXEb3jDr7eOtp2n2Hn2K99ygnCrMG++49KwRsBBcukuguei72EKFbPX8NHuDL +ymJWED5qX2ERAuem1/fDI5w56EEWq0hAOJf5GIAuEyJU+WSC5Tg7XDZFxQ== +-----END CERTIFICATE----- +. diff --git a/test/unit/command_output/CBS350-24P-4G/show_sntp_status.txt b/test/unit/command_output/CBS350-24P-4G/show_sntp_status.txt new file mode 100644 index 0000000..257b765 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_sntp_status.txt @@ -0,0 +1,56 @@ +Clock is synchronized, stratum 3, reference is time-pnp.cisco.com, unicast + +Unicast servers: + +Server : pool.ntp.org + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-a.timefreq.bldrdoc.gov + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-b.timefreq.bldrdoc.gov + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-c.timefreq.bldrdoc.gov + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-pnp.cisco.com + Source : Static + Status : down + Last Response : 09:04:55.0 UTC Feb 2 2021 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 3 + Offset : 1071.7822163 mSec + Delay : 0 mSec + + + +Anycast server: + + + +Broadcast: diff --git a/test/unit/command_output/CBS350-24P-4G/show_startup_config.txt b/test/unit/command_output/CBS350-24P-4G/show_startup_config.txt new file mode 100644 index 0000000..c0fb5e6 --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_startup_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-aanam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-aaam-1 +passwords complexity min-classes 1 +passwords aging 0 +username admin password encrypted $15$hOzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username klima password encrypted $15$y3ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXccccccccccccccccccccci47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name aanam.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.7.6.2 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.7.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.7.6.1 diff --git a/test/unit/command_output/CBS350-24P-4G/show_system.txt b/test/unit/command_output/CBS350-24P-4G/show_system.txt new file mode 100644 index 0000000..5ddbb0b --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_system.txt @@ -0,0 +1,20 @@ +System Description: CBS350-24P-4G 24-Port Gigabit PoE Managed Switch +System Up Time (days,hour:min:sec): 34,03:58:31 +System Contact: +System Name: sw-aanam-1 +System Location: +System MAC Address: e4:e2:49:e8:6b:8f +System Object ID: 1.3.6.1.4.1.9.6.1.1004.28.5 + +Unit Type +---- ---------------------- + 1 CBS350-24P-4G + + +Unit Fans Status +---- ------------------------------------- + 1 Fans status is N/A + +Unit Temperature (Celsius) Status +---- --------------------- ---------- + 1 63 OK diff --git a/test/unit/command_output/CBS350-24P-4G/show_version.txt b/test/unit/command_output/CBS350-24P-4G/show_version.txt new file mode 100644 index 0000000..bcb9b2d --- /dev/null +++ b/test/unit/command_output/CBS350-24P-4G/show_version.txt @@ -0,0 +1,10 @@ +Active-image: flash://system/images/image1.bin + Version: 3.0.0.61 + MD5 Digest: 9703a2dea9e4c07c5cb22bc6c0235bcf + Date: 18-Jun-2020 + Time: 20:38:40 +Inactive-image: flash://system/images/_image1.bin + Version: 3.0.0.61 + MD5 Digest: 9703a2dea9e4c07c5cb22bc6c0235bcf + Date: 18-Jun-2020 + Time: 20:38:40 From 11b518fd24accd1a4ce2baa2da630accc9f8f3ee Mon Sep 17 00:00:00 2001 From: Petr Klima Date: Mon, 8 Mar 2021 18:12:27 +0100 Subject: [PATCH 3/7] do not use abbrv 'show ip int' use 'show ip interfaces' --- napalm_s350/s350.py | 2 +- .../SG350X-48P-K9/{show_ip_int.txt => show_ip_interface.txt} | 0 .../SG500-28-K9/{show_ip_int.txt => show_ip_interface.txt} | 0 .../SG300-10/{show_ip_int.txt => show_ip_interface.txt} | 0 .../SG350X-48P-K9/{show_ip_int.txt => show_ip_interface.txt} | 0 .../SG500-28-K9/{show_ip_int.txt => show_ip_interface.txt} | 0 .../SG550X-24MP-K9/{show_ip_int.txt => show_ip_interface.txt} | 0 7 files changed, 1 insertion(+), 1 deletion(-) rename test/unit/mocked_data/test_get_interfaces/SG350X-48P-K9/{show_ip_int.txt => show_ip_interface.txt} (100%) rename test/unit/mocked_data/test_get_interfaces/SG500-28-K9/{show_ip_int.txt => show_ip_interface.txt} (100%) rename test/unit/mocked_data/test_get_interfaces_ip/SG300-10/{show_ip_int.txt => show_ip_interface.txt} (100%) rename test/unit/mocked_data/test_get_interfaces_ip/SG350X-48P-K9/{show_ip_int.txt => show_ip_interface.txt} (100%) rename test/unit/mocked_data/test_get_interfaces_ip/SG500-28-K9/{show_ip_int.txt => show_ip_interface.txt} (100%) rename test/unit/mocked_data/test_get_interfaces_ip/SG550X-24MP-K9/{show_ip_int.txt => show_ip_interface.txt} (100%) diff --git a/napalm_s350/s350.py b/napalm_s350/s350.py index 90dadce..6763c25 100644 --- a/napalm_s350/s350.py +++ b/napalm_s350/s350.py @@ -487,7 +487,7 @@ class S350Driver(NetworkDriver): def get_interfaces_ip(self): """Returns all configured interface IP addresses.""" interfaces = {} - show_ip_int = self._send_command("show ip int") + show_ip_int = self._send_command("show ip interface") header = True # cycle trought header for line in show_ip_int.splitlines(): diff --git a/test/unit/mocked_data/test_get_interfaces/SG350X-48P-K9/show_ip_int.txt b/test/unit/mocked_data/test_get_interfaces/SG350X-48P-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/test_get_interfaces/SG350X-48P-K9/show_ip_int.txt rename to test/unit/mocked_data/test_get_interfaces/SG350X-48P-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/test_get_interfaces/SG500-28-K9/show_ip_int.txt b/test/unit/mocked_data/test_get_interfaces/SG500-28-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/test_get_interfaces/SG500-28-K9/show_ip_int.txt rename to test/unit/mocked_data/test_get_interfaces/SG500-28-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/test_get_interfaces_ip/SG300-10/show_ip_int.txt b/test/unit/mocked_data/test_get_interfaces_ip/SG300-10/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/test_get_interfaces_ip/SG300-10/show_ip_int.txt rename to test/unit/mocked_data/test_get_interfaces_ip/SG300-10/show_ip_interface.txt diff --git a/test/unit/mocked_data/test_get_interfaces_ip/SG350X-48P-K9/show_ip_int.txt b/test/unit/mocked_data/test_get_interfaces_ip/SG350X-48P-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/test_get_interfaces_ip/SG350X-48P-K9/show_ip_int.txt rename to test/unit/mocked_data/test_get_interfaces_ip/SG350X-48P-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/test_get_interfaces_ip/SG500-28-K9/show_ip_int.txt b/test/unit/mocked_data/test_get_interfaces_ip/SG500-28-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/test_get_interfaces_ip/SG500-28-K9/show_ip_int.txt rename to test/unit/mocked_data/test_get_interfaces_ip/SG500-28-K9/show_ip_interface.txt diff --git a/test/unit/mocked_data/test_get_interfaces_ip/SG550X-24MP-K9/show_ip_int.txt b/test/unit/mocked_data/test_get_interfaces_ip/SG550X-24MP-K9/show_ip_interface.txt similarity index 100% rename from test/unit/mocked_data/test_get_interfaces_ip/SG550X-24MP-K9/show_ip_int.txt rename to test/unit/mocked_data/test_get_interfaces_ip/SG550X-24MP-K9/show_ip_interface.txt From 6c21879bc4242e7912d3c6b66b5e3771081ed36c Mon Sep 17 00:00:00 2001 From: Petr Klima Date: Mon, 8 Mar 2021 18:15:47 +0100 Subject: [PATCH 4/7] unit test mocked_data for CSB350-24P-4G --- .../CBS350-24P-4G/show_arp.txt | 6 + .../CBS350-24P-4G/show_arp.txt | 6 + .../CBS350-24P-4G/show_running_config.txt | 125 ++++++++++++++++++ .../CBS350-24P-4G/show_startup_config.txt | 125 ++++++++++++++++++ .../CBS350-24P-4G/show_running_config.txt | 125 ++++++++++++++++++ .../CBS350-24P-4G/show_startup_config.txt | 125 ++++++++++++++++++ .../CBS350-24P-4G/show_running_config.txt | 125 ++++++++++++++++++ .../CBS350-24P-4G/show_startup_config.txt | 125 ++++++++++++++++++ .../CBS350-24P-4G/show_hosts.txt | 43 ++++++ .../CBS350-24P-4G/show_inventory.txt | 2 + .../CBS350-24P-4G/show_system.txt | 20 +++ .../CBS350-24P-4G/show_version.txt | 10 ++ .../show_interfaces_description.txt | 41 ++++++ .../CBS350-24P-4G/show_interfaces_status.txt | 43 ++++++ .../CBS350-24P-4G/show_ports_jumbo_frame.txt | 2 + .../CBS350-24P-4G/show_lldp_neighbors.txt | 13 ++ .../CBS350-24P-4G/show_lldp_neighbors.txt | 13 ++ .../show_lldp_neighbors_GigabitEthernet8.txt | 46 +++++++ .../CBS350-24P-4G/show_sntp_status.txt | 56 ++++++++ 19 files changed, 1051 insertions(+) create mode 100644 test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/show_arp.txt create mode 100644 test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/show_arp.txt create mode 100644 test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_running_config.txt create mode 100644 test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_startup_config.txt create mode 100644 test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_running_config.txt create mode 100644 test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_startup_config.txt create mode 100644 test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_running_config.txt create mode 100644 test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_startup_config.txt create mode 100644 test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_hosts.txt create mode 100644 test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_inventory.txt create mode 100644 test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_system.txt create mode 100644 test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_version.txt create mode 100644 test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_description.txt create mode 100644 test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_status.txt create mode 100644 test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_ports_jumbo_frame.txt create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors.txt create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt create mode 100644 test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/show_sntp_status.txt diff --git a/test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/show_arp.txt b/test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/show_arp.txt new file mode 100644 index 0000000..a89f6d4 --- /dev/null +++ b/test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/show_arp.txt @@ -0,0 +1,6 @@ +Total number of entries: 1 + + + VLAN Interface IP address HW address status +--------------------- --------------- ------------------- --------------- +vlan 11 gi19 10.7.3.5 00:2d:b9:58:4e:1d dynamic diff --git a/test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/show_arp.txt b/test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/show_arp.txt new file mode 100644 index 0000000..a89f6d4 --- /dev/null +++ b/test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/show_arp.txt @@ -0,0 +1,6 @@ +Total number of entries: 1 + + + VLAN Interface IP address HW address status +--------------------- --------------- ------------------- --------------- +vlan 11 gi19 10.7.3.5 00:2d:b9:58:4e:1d dynamic diff --git a/test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_running_config.txt b/test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_running_config.txt new file mode 100644 index 0000000..decb3ad --- /dev/null +++ b/test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_running_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-naam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-naam-1 +passwords complexity min-classes 1 +passwords aging 0 +username asrnm password encrypted $15$hOXXXXXxxxxxtmvz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username alima password encrypted $15$y3XXXXXxxxxxzE8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name iab.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.5.8.9 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.8.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.5.8.1 diff --git a/test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_startup_config.txt b/test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_startup_config.txt new file mode 100644 index 0000000..c0fb5e6 --- /dev/null +++ b/test/unit/mocked_data/test_get_config/CBS350-24P-4G/show_startup_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-aanam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-aaam-1 +passwords complexity min-classes 1 +passwords aging 0 +username admin password encrypted $15$hOzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username klima password encrypted $15$y3ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXccccccccccccccccccccci47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name aanam.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.7.6.2 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.7.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.7.6.1 diff --git a/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_running_config.txt b/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_running_config.txt new file mode 100644 index 0000000..decb3ad --- /dev/null +++ b/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_running_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-naam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-naam-1 +passwords complexity min-classes 1 +passwords aging 0 +username asrnm password encrypted $15$hOXXXXXxxxxxtmvz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username alima password encrypted $15$y3XXXXXxxxxxzE8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name iab.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.5.8.9 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.8.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.5.8.1 diff --git a/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_startup_config.txt b/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_startup_config.txt new file mode 100644 index 0000000..c0fb5e6 --- /dev/null +++ b/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/show_startup_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-aanam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-aaam-1 +passwords complexity min-classes 1 +passwords aging 0 +username admin password encrypted $15$hOzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username klima password encrypted $15$y3ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXccccccccccccccccccccci47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name aanam.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.7.6.2 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.7.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.7.6.1 diff --git a/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_running_config.txt b/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_running_config.txt new file mode 100644 index 0000000..decb3ad --- /dev/null +++ b/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_running_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-naam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-naam-1 +passwords complexity min-classes 1 +passwords aging 0 +username asrnm password encrypted $15$hOXXXXXxxxxxtmvz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username alima password encrypted $15$y3XXXXXxxxxxzE8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name iab.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.5.8.9 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.8.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.5.8.1 diff --git a/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_startup_config.txt b/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_startup_config.txt new file mode 100644 index 0000000..c0fb5e6 --- /dev/null +++ b/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/show_startup_config.txt @@ -0,0 +1,125 @@ +config-file-header +sw-aanam-1 +v3.0.0.61 / RCBS3.0_930_770_007 +CLI v1.0 +file SSD indicator encrypted +@ +ssd-control-start +ssd config +ssd file passphrase control unrestricted +no ssd file integrity control +ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0 +! +! +unit-type-control-start +unit-type unit 1 network gi uplink none +unit-type-control-end +! +vlan database +vlan 11,90 +exit +voice vlan oui-table add 0001e3 Siemens_AG_phone +voice vlan oui-table add 00036b Cisco_phone +voice vlan oui-table add 00096e Avaya +voice vlan oui-table add 000fe2 H3C_Aolynk +voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone +voice vlan oui-table add 00d01e Pingtel_phone +voice vlan oui-table add 00e075 Polycom/Veritel_phone +voice vlan oui-table add 00e0bb 3Com_phone +bonjour interface range vlan 1 +hostname sw-aaam-1 +passwords complexity min-classes 1 +passwords aging 0 +username admin password encrypted $15$hOzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15 +username klima password encrypted $15$y3ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXccccccccccccccccccccci47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15 +ip ssh server +ip ssh password-auth +ip ssh pubkey-auth +ip domain name aanam.example.com +ip telnet server +! +interface vlan 1 + no ip address dhcp +! +interface vlan 11 + name LAN-Madeta + ip address 11.7.6.2 255.255.255.0 +! +interface vlan 90 + name LAN-Internet + ip address 12.9.7.254 255.255.255.0 +! +interface GigabitEthernet1 + switchport access vlan 90 +! +interface GigabitEthernet2 + switchport access vlan 90 +! +interface GigabitEthernet3 + switchport access vlan 90 +! +interface GigabitEthernet4 + switchport access vlan 90 +! +interface GigabitEthernet5 + switchport access vlan 90 +! +interface GigabitEthernet6 + switchport access vlan 90 +! +interface GigabitEthernet7 + switchport access vlan 90 +! +interface GigabitEthernet8 + switchport access vlan 90 +! +interface GigabitEthernet9 + switchport access vlan 90 +! +interface GigabitEthernet10 + switchport access vlan 90 +! +interface GigabitEthernet11 + switchport access vlan 90 +! +interface GigabitEthernet12 + switchport access vlan 90 +! +interface GigabitEthernet13 + switchport access vlan 90 +! +interface GigabitEthernet14 + switchport access vlan 90 +! +interface GigabitEthernet15 + switchport access vlan 90 +! +interface GigabitEthernet16 + switchport access vlan 90 +! +interface GigabitEthernet17 + switchport access vlan 90 +! +interface GigabitEthernet18 + switchport access vlan 90 +! +interface GigabitEthernet19 + switchport access vlan 11 +! +interface GigabitEthernet20 + switchport access vlan 11 +! +interface GigabitEthernet21 + switchport access vlan 11 +! +interface GigabitEthernet22 + switchport access vlan 11 +! +interface GigabitEthernet23 + switchport access vlan 11 +! +interface GigabitEthernet24 + switchport access vlan 11 +! +exit +ip default-gateway 11.7.6.1 diff --git a/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_hosts.txt b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_hosts.txt new file mode 100644 index 0000000..c31c311 --- /dev/null +++ b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_hosts.txt @@ -0,0 +1,43 @@ +Name/address lookup is enabled +Domain Timeout: 2 seconds +Domain Retry: 1 times +Domain Polling Interval: 8 seconds + + +Default Domain Table + + Domain Source Interface Preference +-------------------------------------------- ------- --------- ---------- +abnam.example.com static + + +Name Server Table + + IP Address Source Interface Preference +-------------------------------------------- ------- --------- ---------- +fe80::1%vlan1 DHCPv6 vlan 1 1 + + +Cache Table +Flags: (STA/DYN, OK/NE/??) +STA - Static, DYN - Dynamic +OK - Okay, NE - Negative Cache, ?? - No Response + + Remaining + Host Addresses Type State TTL +------------------------- ------------------------ ---- ------ ---------- +pool.ntp.org no resolution IPv4 DYN,?? +time-pnp.cisco.com no resolution IPv6 DYN,?? +time-pnp.cisco.com no resolution IPv4 DYN,?? +time-a.timefreq.bldrdoc.g no resolution IPv6 DYN,?? +ov +time-a.timefreq.bldrdoc.g no resolution IPv4 DYN,?? +ov +time-b.timefreq.bldrdoc.g no resolution IPv6 DYN,?? +ov +time-b.timefreq.bldrdoc.g no resolution IPv4 DYN,?? +ov +time-c.timefreq.bldrdoc.g no resolution IPv6 DYN,?? +ov +time-c.timefreq.bldrdoc.g no resolution IPv4 DYN,?? +ov diff --git a/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_inventory.txt b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_inventory.txt new file mode 100644 index 0000000..15fe520 --- /dev/null +++ b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_inventory.txt @@ -0,0 +1,2 @@ +NAME: "1" DESCR: "CBS350-24P-4G 24-Port Gigabit PoE Managed Switch" +PID: CBS350-24P-4G VID: V01 SN: FOC5732A91L diff --git a/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_system.txt b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_system.txt new file mode 100644 index 0000000..5ddbb0b --- /dev/null +++ b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_system.txt @@ -0,0 +1,20 @@ +System Description: CBS350-24P-4G 24-Port Gigabit PoE Managed Switch +System Up Time (days,hour:min:sec): 34,03:58:31 +System Contact: +System Name: sw-aanam-1 +System Location: +System MAC Address: e4:e2:49:e8:6b:8f +System Object ID: 1.3.6.1.4.1.9.6.1.1004.28.5 + +Unit Type +---- ---------------------- + 1 CBS350-24P-4G + + +Unit Fans Status +---- ------------------------------------- + 1 Fans status is N/A + +Unit Temperature (Celsius) Status +---- --------------------- ---------- + 1 63 OK diff --git a/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_version.txt b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_version.txt new file mode 100644 index 0000000..bcb9b2d --- /dev/null +++ b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_version.txt @@ -0,0 +1,10 @@ +Active-image: flash://system/images/image1.bin + Version: 3.0.0.61 + MD5 Digest: 9703a2dea9e4c07c5cb22bc6c0235bcf + Date: 18-Jun-2020 + Time: 20:38:40 +Inactive-image: flash://system/images/_image1.bin + Version: 3.0.0.61 + MD5 Digest: 9703a2dea9e4c07c5cb22bc6c0235bcf + Date: 18-Jun-2020 + Time: 20:38:40 diff --git a/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_description.txt b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_description.txt new file mode 100644 index 0000000..3c7857f --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_description.txt @@ -0,0 +1,41 @@ +Port Description +------- ----------- +gi1 +gi2 +gi3 +gi4 +gi5 server +gi6 +gi7 +gi8 +gi9 +gi10 +gi11 +gi12 +gi13 +gi14 +gi15 +gi16 +gi17 +gi18 +gi19 +gi20 +gi21 +gi22 +gi23 +gi24 +gi25 +gi26 +gi27 +gi28 + +Ch Description +------- ----------- +Po1 +Po2 +Po3 +Po4 +Po5 +Po6 +Po7 +Po8 diff --git a/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_status.txt b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_status.txt new file mode 100644 index 0000000..8fbe475 --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_interfaces_status.txt @@ -0,0 +1,43 @@ +Flow Link Back Mdix +Port Type Duplex Speed Neg ctrl State Pressure Mode +-------- ------------ ------ ----- -------- ---- ----------- -------- ------- +gi1 1G-Copper Full 100 Enabled Off Up Disabled Off +gi2 1G-Copper -- -- -- -- Down -- -- +gi3 1G-Copper Full 100 Enabled Off Up Disabled Off +gi4 1G-Copper Full 100 Enabled Off Up Disabled Off +gi5 1G-Copper Full 100 Enabled Off Up Disabled Off +gi6 1G-Copper -- -- -- -- Down -- -- +gi7 1G-Copper -- -- -- -- Down -- -- +gi8 1G-Copper Full 1000 Enabled Off Up Disabled On +gi9 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi10 1G-Copper Full 1000 Enabled Off Up Disabled On +gi11 1G-Copper -- -- -- -- Down -- -- +gi12 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi13 1G-Copper -- -- -- -- Down -- -- +gi14 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi15 1G-Copper -- -- -- -- Down -- -- +gi16 1G-Copper Full 1000 Enabled Off Up Disabled On +gi17 1G-Copper -- -- -- -- Down -- -- +gi18 1G-Copper Full 1000 Enabled Off Up Disabled On +gi19 1G-Copper Full 1000 Enabled Off Up Disabled On +gi20 1G-Copper -- -- -- -- Down -- -- +gi21 1G-Copper -- -- -- -- Down -- -- +gi22 1G-Copper -- -- -- -- Down -- -- +gi23 1G-Copper -- -- -- -- Down -- -- +gi24 1G-Copper -- -- -- -- Down -- -- +gi25 1G-Fiber -- -- -- -- Down -- -- +gi26 1G-Fiber -- -- -- -- Down -- -- +gi27 1G-Fiber -- -- -- -- Down -- -- +gi28 1G-Fiber -- -- -- -- Down -- -- + + Flow Link +Ch Type Duplex Speed Neg control State +-------- ------- ------ ----- -------- ------- ----------- +Po1 -- -- -- -- -- Not Present +Po2 -- -- -- -- -- Not Present +Po3 -- -- -- -- -- Not Present +Po4 -- -- -- -- -- Not Present +Po5 -- -- -- -- -- Not Present +Po6 -- -- -- -- -- Not Present +Po7 -- -- -- -- -- Not Present +Po8 -- -- -- -- -- Not Present diff --git a/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_ports_jumbo_frame.txt b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_ports_jumbo_frame.txt new file mode 100644 index 0000000..bbb9c80 --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_ports_jumbo_frame.txt @@ -0,0 +1,2 @@ +Jumbo frames are disabled + Jumbo frames will be disabled after reset diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors.txt b/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors.txt new file mode 100644 index 0000000..aed2825 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors.txt @@ -0,0 +1,13 @@ +System capability legend: +B - Bridge; R - Router; W - Wlan Access Point; T - telephone; +D - DOCSIS Cable Device; H - Host; r - Repeater; +TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other + + Port Device ID Port ID System Name Capabilities TTL +--------- ----------------- ----------------- ----------------- ------------ ----- +gi8 78:b2:b9:95:56:2a 78:b2:b9:95:56:2a APLobby B, W 97 +gi9 78:b2:b9:95:56:49 78:b2:b9:95:56:49 APlut B, W 138 +gi13 78:b2:b9:b5:4a:9c 78:b2:b9:b5:4a:9c APModr B, W 135 +gi12 78:b2:b9:95:57:3a 78:b2:b9:95:57:3a APZelen B, W 117 +gi14 dc:4a:5e:56:8f:36 dc:4a:5e:56:8f:36 O 5586 +gi16 e3:65:da:32:be:43 e3:65:da:32:be:43 APerven B, W 98 diff --git a/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt new file mode 100644 index 0000000..aed2825 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt @@ -0,0 +1,13 @@ +System capability legend: +B - Bridge; R - Router; W - Wlan Access Point; T - telephone; +D - DOCSIS Cable Device; H - Host; r - Repeater; +TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other + + Port Device ID Port ID System Name Capabilities TTL +--------- ----------------- ----------------- ----------------- ------------ ----- +gi8 78:b2:b9:95:56:2a 78:b2:b9:95:56:2a APLobby B, W 97 +gi9 78:b2:b9:95:56:49 78:b2:b9:95:56:49 APlut B, W 138 +gi13 78:b2:b9:b5:4a:9c 78:b2:b9:b5:4a:9c APModr B, W 135 +gi12 78:b2:b9:95:57:3a 78:b2:b9:95:57:3a APZelen B, W 117 +gi14 dc:4a:5e:56:8f:36 dc:4a:5e:56:8f:36 O 5586 +gi16 e3:65:da:32:be:43 e3:65:da:32:be:43 APerven B, W 98 diff --git a/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt new file mode 100644 index 0000000..8c6cf19 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt @@ -0,0 +1,46 @@ +Device ID: 75:e6:b9:83:56:2a +Port ID: 75:e6:b9:83:56:2a +Capabilities: Bridge, Wlan-Access-Point +System Name: APLobby +System description: AP-UF, 5.2.28.18361 +Port description: bri0 +Management Address: 11.2.6.7 +Management Address: 2a00:1028:96d4:b546:768c:b97f:fe93:562a +Time To Live: 95 + + +802.3 MAC/PHY Configuration/Status +Auto-negotiation support: Not supported +Auto-negotiation status: Disabled +Auto-negotiation Advertised Capabilities: +Operational MAU type: Unknown + +802.3 Link Aggregation +Aggregation capability: Capable of being aggregated +Aggregation status: Currently not in aggregation + + +802.3 EEE: + + Remote Tx: 17 uSec + Remote Rx: 17 uSec + Remote Tx Echo: 17 uSec + Remote Rx Echo: 17 uSec + + +802.1 PVID: None +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: + + +LLDP-MED capabilities: Capabilities, Network Policy, Location, POE-PSE, POE-PD, Inventory +LLDP-MED Device Type: Network Connectivity + +Hardware revision: +Firmware revision: +Software revision: 5.2.28.18361 +Serial number: +Manufacturer name: +Model name: +Asset ID: diff --git a/test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/show_sntp_status.txt b/test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/show_sntp_status.txt new file mode 100644 index 0000000..257b765 --- /dev/null +++ b/test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/show_sntp_status.txt @@ -0,0 +1,56 @@ +Clock is synchronized, stratum 3, reference is time-pnp.cisco.com, unicast + +Unicast servers: + +Server : pool.ntp.org + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-a.timefreq.bldrdoc.gov + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-b.timefreq.bldrdoc.gov + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-c.timefreq.bldrdoc.gov + Source : Static + Status : down + Last Response : 00:00:00.0 Jan 1 1900 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 255 + Offset : 0.0000000 mSec + Delay : 0 mSec + +Server : time-pnp.cisco.com + Source : Static + Status : down + Last Response : 09:04:55.0 UTC Feb 2 2021 + Last Request : 12:34:59.0 UTC Mar 8 2021 + Stratum Level : 3 + Offset : 1071.7822163 mSec + Delay : 0 mSec + + + +Anycast server: + + + +Broadcast: From ab67b55421850ba5628d9dd1167bc1493a13bfd6 Mon Sep 17 00:00:00 2001 From: Petr Klima Date: Tue, 9 Mar 2021 08:38:16 +0100 Subject: [PATCH 5/7] Support for CBS350-24P-4G --- README.md | 102 +++---- .../show_lldp_local_GigabitEthernet8.txt | 2 +- .../CBS350-24P-4G/expected_result.json | 6 + .../CBS350-24P-4G/expected_result.json | 6 + .../CBS350-24P-4G/expected_result.json | 5 + .../CBS350-24P-4G/expected_result.json | 5 + .../CBS350-24P-4G/expected_result.json | 5 + .../CBS350-24P-4G/expected_result.json | 47 ++++ .../CBS350-24P-4G/show_interfaces_status.txt | 43 +++ .../CBS350-24P-4G/expected_result.json | 254 ++++++++++++++++++ .../CBS350-24P-4G/show_lldp_local_gi1.txt | 30 +++ .../CBS350-24P-4G/expected_result.json | 4 + .../CBS350-24P-4G/show_ip_interface.txt | 6 + .../CBS350-24P-4G/expected_result.json | 26 ++ .../show_lldp_neighbors_GigabitEthernet8.txt | 46 ++++ .../CBS350-24P-4G/expected_result.json | 34 +++ .../CBS350-24P-4G/show_lldp_neighbors.txt | 4 - .../show_lldp_neighbors_GigabitEthernet9.txt | 46 ++++ .../CBS350-24P-4G/expected_result.json | 7 + 19 files changed, 622 insertions(+), 56 deletions(-) create mode 100644 test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_config/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_facts/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_interfaces_status.txt create mode 100644 test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_lldp_local_gi1.txt create mode 100644 test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/show_ip_interface.txt create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/expected_result.json create mode 100644 test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet9.txt create mode 100644 test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/expected_result.json diff --git a/README.md b/README.md index 7d1b5a3..635c88d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Napalm-s350 -NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx). +NAPALM driver for Cisco SMB switches (SF3xx, SF5xx, SG3xx, SG5xx, CBS35x). ## Status Master: ![Build](https://github.com/napalm-automation-community/napalm-s350/workflows/Test%20before%20push/badge.svg?branch=master&event=push) @@ -47,59 +47,59 @@ napalm --user USER --password PASSWORD --vendor s350 --debug HOSTNAME This driver initially targets the Cisco SG350 device though other, similar, devices may be supported. -| function | SG300 | SG500 | SG350 | SG550 | stack SG500 | stack SG550 | -| :--- | :---: | :---: | :---: | :---: | :---: | :---: | -| **Send commands** | -| cli | x | x | x | x | x | x | -| **Config manipulation** | -|get_config | x | x | x | x | | | -|get_config (filtered) | x | x | x | x | | | -|get_config (sanitized) | 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 | | | -|get_arp_table (with vrf) | NS | NS | NS | NS | | | -|get_bgp_config | | | | | | | -|get_bgp_neighbors | | | | | | | -|get_bgp_neighbors_detail | | | | | | | -|get_environment | | | | | | | -|get_facts | x | x | x | x | | | -|get_firewall_policies | | | | | | | -|get_interfaces | x | x | x | x | | | -|get_interfaces_counters | | | | | | | -|get_interfaces_ip | x | x | x | x | | | -|get_ipv6_neighbors_table | | | | | | | -|get_lldp_neighbors | x | x | x | x | | | -|get_lldp_neighbors_detail | x | x | x | x | | | -|get_mac_address_table | | | | | | | -|get_network_instances | | | | | | | -|get_ntp_peers | | | | | | | -|get_ntp_servers | 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 | | | -| **Other actions** | -|is_alive | | | | | | | -|ping | | | | | | | -|traceroute | | | | | | | +| 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 | | | | | | | | NS - not supported - devices do not have support for that feature - +4 - IPv4 only ... ## Want to add new device support? diff --git a/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt b/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt index 9cbdaac..68b769a 100644 --- a/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt +++ b/test/unit/command_output/CBS350-24P-4G/show_lldp_local_GigabitEthernet8.txt @@ -1,4 +1,4 @@ -Device ID: a4:b2:d9:a4:sb:6f +Device ID: a4:b2:d9:a4:4b:6f Port ID: a4:b2:d9:a4:4b:97 Capabilities: Bridge, Router System Name: sw-abnam-cde-q diff --git a/test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..d821c27 --- /dev/null +++ b/test/unit/mocked_data/test_get_arp_table/CBS350-24P-4G/expected_result.json @@ -0,0 +1,6 @@ +[ { + "age" : 0.0, + "interface" : "GigabitEthernet19", + "ip" : "10.7.3.5", + "mac" : "00:2D:B9:58:4E:1D" + } ] diff --git a/test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..d821c27 --- /dev/null +++ b/test/unit/mocked_data/test_get_arp_table_with_vrf/CBS350-24P-4G/expected_result.json @@ -0,0 +1,6 @@ +[ { + "age" : 0.0, + "interface" : "GigabitEthernet19", + "ip" : "10.7.3.5", + "mac" : "00:2D:B9:58:4E:1D" + } ] diff --git a/test/unit/mocked_data/test_get_config/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_config/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..03d4dde --- /dev/null +++ b/test/unit/mocked_data/test_get_config/CBS350-24P-4G/expected_result.json @@ -0,0 +1,5 @@ +{ + "candidate" : "", + "running" : "\nssd-control-start\nssd config\nssd file passphrase control unrestricted\nno ssd file integrity control\nssd-control-end cb0a3fdb1f3a1af4e4430033719968c0\n!\n!\nunit-type-control-start\nunit-type unit 1 network gi uplink none\nunit-type-control-end\n!\nvlan database\nvlan 11,90\nexit\nvoice vlan oui-table add 0001e3 Siemens_AG_phone\nvoice vlan oui-table add 00036b Cisco_phone\nvoice vlan oui-table add 00096e Avaya\nvoice vlan oui-table add 000fe2 H3C_Aolynk\nvoice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone\nvoice vlan oui-table add 00d01e Pingtel_phone\nvoice vlan oui-table add 00e075 Polycom/Veritel_phone\nvoice vlan oui-table add 00e0bb 3Com_phone\nbonjour interface range vlan 1\nhostname sw-naam-1\npasswords complexity min-classes 1\npasswords aging 0\nusername asrnm password encrypted $15$hOXXXXXxxxxxtmvz$sGZ57FXMuPRKztgPwpiW4p3c2YQLX1BSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15\nusername alima password encrypted $15$y3XXXXXxxxxxzE8o3$1QPeSz4ZkQwpv+TTFr8AFivLAEqLbuIbA6Zi47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15\nip ssh server\nip ssh password-auth\nip ssh pubkey-auth\nip domain name iab.example.com\nip telnet server\n!\ninterface vlan 1\n no ip address dhcp\n!\ninterface vlan 11\n name LAN-Madeta\n ip address 11.5.8.9 255.255.255.0\n!\ninterface vlan 90\n name LAN-Internet\n ip address 12.9.8.254 255.255.255.0\n!\ninterface GigabitEthernet1\n switchport access vlan 90\n!\ninterface GigabitEthernet2\n switchport access vlan 90\n!\ninterface GigabitEthernet3\n switchport access vlan 90\n!\ninterface GigabitEthernet4\n switchport access vlan 90\n!\ninterface GigabitEthernet5\n switchport access vlan 90\n!\ninterface GigabitEthernet6\n switchport access vlan 90\n!\ninterface GigabitEthernet7\n switchport access vlan 90\n!\ninterface GigabitEthernet8\n switchport access vlan 90\n!\ninterface GigabitEthernet9\n switchport access vlan 90\n!\ninterface GigabitEthernet10\n switchport access vlan 90\n!\ninterface GigabitEthernet11\n switchport access vlan 90\n!\ninterface GigabitEthernet12\n switchport access vlan 90\n!\ninterface GigabitEthernet13\n switchport access vlan 90\n!\ninterface GigabitEthernet14\n switchport access vlan 90\n!\ninterface GigabitEthernet15\n switchport access vlan 90\n!\ninterface GigabitEthernet16\n switchport access vlan 90\n!\ninterface GigabitEthernet17\n switchport access vlan 90\n!\ninterface GigabitEthernet18\n switchport access vlan 90\n!\ninterface GigabitEthernet19\n switchport access vlan 11\n!\ninterface GigabitEthernet20\n switchport access vlan 11\n!\ninterface GigabitEthernet21\n switchport access vlan 11\n!\ninterface GigabitEthernet22\n switchport access vlan 11\n!\ninterface GigabitEthernet23\n switchport access vlan 11\n!\ninterface GigabitEthernet24\n switchport access vlan 11\n!\nexit\nip default-gateway 11.5.8.1", + "startup" : "\nssd-control-start\nssd config\nssd file passphrase control unrestricted\nno ssd file integrity control\nssd-control-end cb0a3fdb1f3a1af4e4430033719968c0\n!\n!\nunit-type-control-start\nunit-type unit 1 network gi uplink none\nunit-type-control-end\n!\nvlan database\nvlan 11,90\nexit\nvoice vlan oui-table add 0001e3 Siemens_AG_phone\nvoice vlan oui-table add 00036b Cisco_phone\nvoice vlan oui-table add 00096e Avaya\nvoice vlan oui-table add 000fe2 H3C_Aolynk\nvoice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone\nvoice vlan oui-table add 00d01e Pingtel_phone\nvoice vlan oui-table add 00e075 Polycom/Veritel_phone\nvoice vlan oui-table add 00e0bb 3Com_phone\nbonjour interface range vlan 1\nhostname sw-aaam-1\npasswords complexity min-classes 1\npasswords aging 0\nusername admin password encrypted $15$hOzXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxxxxxxxSr3B5mYiBowArSTInvxasXF1umt+b2zU71rN5ghTlqmJOK9lcFBN7Qw== privilege 15\nusername klima password encrypted $15$y3ZXXXXXXXXXXXXXXXXXXXXXXXXXXXXccccccccccccccccccccci47sUAjWsjT3ZgH83/d2zIkbZorN/ycex1Q+6omIfCuE5e3jQTw== privilege 15\nip ssh server\nip ssh password-auth\nip ssh pubkey-auth\nip domain name aanam.example.com\nip telnet server\n!\ninterface vlan 1\n no ip address dhcp\n!\ninterface vlan 11\n name LAN-Madeta\n ip address 11.7.6.2 255.255.255.0\n!\ninterface vlan 90\n name LAN-Internet\n ip address 12.9.7.254 255.255.255.0\n!\ninterface GigabitEthernet1\n switchport access vlan 90\n!\ninterface GigabitEthernet2\n switchport access vlan 90\n!\ninterface GigabitEthernet3\n switchport access vlan 90\n!\ninterface GigabitEthernet4\n switchport access vlan 90\n!\ninterface GigabitEthernet5\n switchport access vlan 90\n!\ninterface GigabitEthernet6\n switchport access vlan 90\n!\ninterface GigabitEthernet7\n switchport access vlan 90\n!\ninterface GigabitEthernet8\n switchport access vlan 90\n!\ninterface GigabitEthernet9\n switchport access vlan 90\n!\ninterface GigabitEthernet10\n switchport access vlan 90\n!\ninterface GigabitEthernet11\n switchport access vlan 90\n!\ninterface GigabitEthernet12\n switchport access vlan 90\n!\ninterface GigabitEthernet13\n switchport access vlan 90\n!\ninterface GigabitEthernet14\n switchport access vlan 90\n!\ninterface GigabitEthernet15\n switchport access vlan 90\n!\ninterface GigabitEthernet16\n switchport access vlan 90\n!\ninterface GigabitEthernet17\n switchport access vlan 90\n!\ninterface GigabitEthernet18\n switchport access vlan 90\n!\ninterface GigabitEthernet19\n switchport access vlan 11\n!\ninterface GigabitEthernet20\n switchport access vlan 11\n!\ninterface GigabitEthernet21\n switchport access vlan 11\n!\ninterface GigabitEthernet22\n switchport access vlan 11\n!\ninterface GigabitEthernet23\n switchport access vlan 11\n!\ninterface GigabitEthernet24\n switchport access vlan 11\n!\nexit\nip default-gateway 11.7.6.1" +} diff --git a/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..d67ca01 --- /dev/null +++ b/test/unit/mocked_data/test_get_config_filtered/CBS350-24P-4G/expected_result.json @@ -0,0 +1,5 @@ +{ + "candidate" : "", + "running" : "", + "startup" : "" +} diff --git a/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..1bc5863 --- /dev/null +++ b/test/unit/mocked_data/test_get_config_sanitized/CBS350-24P-4G/expected_result.json @@ -0,0 +1,5 @@ +{ + "candidate" : "", + "running" : "\nssd-control-start\nssd config\nssd file passphrase control unrestricted\nno ssd file integrity control\nssd-control-end cb0a3fdb1f3a1af4e4430033719968c0\n!\n!\nunit-type-control-start\nunit-type unit 1 network gi uplink none\nunit-type-control-end\n!\nvlan database\nvlan 11,90\nexit\nvoice vlan oui-table add 0001e3 Siemens_AG_phone\nvoice vlan oui-table add 00036b Cisco_phone\nvoice vlan oui-table add 00096e Avaya\nvoice vlan oui-table add 000fe2 H3C_Aolynk\nvoice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone\nvoice vlan oui-table add 00d01e Pingtel_phone\nvoice vlan oui-table add 00e075 Polycom/Veritel_phone\nvoice vlan oui-table add 00e0bb 3Com_phone\nbonjour interface range vlan 1\nhostname sw-naam-1\npasswords complexity min-classes 1\npasswords aging 0\nusername asrnm password encrypted privilege 15\nusername alima password encrypted privilege 15\nip ssh server\nip ssh password-auth\nip ssh pubkey-auth\nip domain name iab.example.com\nip telnet server\n!\ninterface vlan 1\n no ip address dhcp\n!\ninterface vlan 11\n name LAN-Madeta\n ip address 11.5.8.9 255.255.255.0\n!\ninterface vlan 90\n name LAN-Internet\n ip address 12.9.8.254 255.255.255.0\n!\ninterface GigabitEthernet1\n switchport access vlan 90\n!\ninterface GigabitEthernet2\n switchport access vlan 90\n!\ninterface GigabitEthernet3\n switchport access vlan 90\n!\ninterface GigabitEthernet4\n switchport access vlan 90\n!\ninterface GigabitEthernet5\n switchport access vlan 90\n!\ninterface GigabitEthernet6\n switchport access vlan 90\n!\ninterface GigabitEthernet7\n switchport access vlan 90\n!\ninterface GigabitEthernet8\n switchport access vlan 90\n!\ninterface GigabitEthernet9\n switchport access vlan 90\n!\ninterface GigabitEthernet10\n switchport access vlan 90\n!\ninterface GigabitEthernet11\n switchport access vlan 90\n!\ninterface GigabitEthernet12\n switchport access vlan 90\n!\ninterface GigabitEthernet13\n switchport access vlan 90\n!\ninterface GigabitEthernet14\n switchport access vlan 90\n!\ninterface GigabitEthernet15\n switchport access vlan 90\n!\ninterface GigabitEthernet16\n switchport access vlan 90\n!\ninterface GigabitEthernet17\n switchport access vlan 90\n!\ninterface GigabitEthernet18\n switchport access vlan 90\n!\ninterface GigabitEthernet19\n switchport access vlan 11\n!\ninterface GigabitEthernet20\n switchport access vlan 11\n!\ninterface GigabitEthernet21\n switchport access vlan 11\n!\ninterface GigabitEthernet22\n switchport access vlan 11\n!\ninterface GigabitEthernet23\n switchport access vlan 11\n!\ninterface GigabitEthernet24\n switchport access vlan 11\n!\nexit\nip default-gateway 11.5.8.1", + "startup" : "\nssd-control-start\nssd config\nssd file passphrase control unrestricted\nno ssd file integrity control\nssd-control-end cb0a3fdb1f3a1af4e4430033719968c0\n!\n!\nunit-type-control-start\nunit-type unit 1 network gi uplink none\nunit-type-control-end\n!\nvlan database\nvlan 11,90\nexit\nvoice vlan oui-table add 0001e3 Siemens_AG_phone\nvoice vlan oui-table add 00036b Cisco_phone\nvoice vlan oui-table add 00096e Avaya\nvoice vlan oui-table add 000fe2 H3C_Aolynk\nvoice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone\nvoice vlan oui-table add 00d01e Pingtel_phone\nvoice vlan oui-table add 00e075 Polycom/Veritel_phone\nvoice vlan oui-table add 00e0bb 3Com_phone\nbonjour interface range vlan 1\nhostname sw-aaam-1\npasswords complexity min-classes 1\npasswords aging 0\nusername admin password encrypted privilege 15\nusername klima password encrypted privilege 15\nip ssh server\nip ssh password-auth\nip ssh pubkey-auth\nip domain name aanam.example.com\nip telnet server\n!\ninterface vlan 1\n no ip address dhcp\n!\ninterface vlan 11\n name LAN-Madeta\n ip address 11.7.6.2 255.255.255.0\n!\ninterface vlan 90\n name LAN-Internet\n ip address 12.9.7.254 255.255.255.0\n!\ninterface GigabitEthernet1\n switchport access vlan 90\n!\ninterface GigabitEthernet2\n switchport access vlan 90\n!\ninterface GigabitEthernet3\n switchport access vlan 90\n!\ninterface GigabitEthernet4\n switchport access vlan 90\n!\ninterface GigabitEthernet5\n switchport access vlan 90\n!\ninterface GigabitEthernet6\n switchport access vlan 90\n!\ninterface GigabitEthernet7\n switchport access vlan 90\n!\ninterface GigabitEthernet8\n switchport access vlan 90\n!\ninterface GigabitEthernet9\n switchport access vlan 90\n!\ninterface GigabitEthernet10\n switchport access vlan 90\n!\ninterface GigabitEthernet11\n switchport access vlan 90\n!\ninterface GigabitEthernet12\n switchport access vlan 90\n!\ninterface GigabitEthernet13\n switchport access vlan 90\n!\ninterface GigabitEthernet14\n switchport access vlan 90\n!\ninterface GigabitEthernet15\n switchport access vlan 90\n!\ninterface GigabitEthernet16\n switchport access vlan 90\n!\ninterface GigabitEthernet17\n switchport access vlan 90\n!\ninterface GigabitEthernet18\n switchport access vlan 90\n!\ninterface GigabitEthernet19\n switchport access vlan 11\n!\ninterface GigabitEthernet20\n switchport access vlan 11\n!\ninterface GigabitEthernet21\n switchport access vlan 11\n!\ninterface GigabitEthernet22\n switchport access vlan 11\n!\ninterface GigabitEthernet23\n switchport access vlan 11\n!\ninterface GigabitEthernet24\n switchport access vlan 11\n!\nexit\nip default-gateway 11.7.6.1" +} diff --git a/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..9c0b0f5 --- /dev/null +++ b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/expected_result.json @@ -0,0 +1,47 @@ +{ + "fqdn" : "sw-aanam-1.abnam.example.com", + "hostname" : "sw-aanam-1", + "interface_list" : [ + "GigabitEthernet1", + "GigabitEthernet2", + "GigabitEthernet3", + "GigabitEthernet4", + "GigabitEthernet5", + "GigabitEthernet6", + "GigabitEthernet7", + "GigabitEthernet8", + "GigabitEthernet9", + "GigabitEthernet10", + "GigabitEthernet11", + "GigabitEthernet12", + "GigabitEthernet13", + "GigabitEthernet14", + "GigabitEthernet15", + "GigabitEthernet16", + "GigabitEthernet17", + "GigabitEthernet18", + "GigabitEthernet19", + "GigabitEthernet20", + "GigabitEthernet21", + "GigabitEthernet22", + "GigabitEthernet23", + "GigabitEthernet24", + "GigabitEthernet25", + "GigabitEthernet26", + "GigabitEthernet27", + "GigabitEthernet28", + "Port-channel1", + "Port-channel2", + "Port-channel3", + "Port-channel4", + "Port-channel5", + "Port-channel6", + "Port-channel7", + "Port-channel8" + ], + "model" : "CBS350-24P-4G", + "os_version" : "3.0.0.61", + "serial_number" : "FOC5732A91L", + "uptime" : 2951911, + "vendor" : "Cisco" +} diff --git a/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_interfaces_status.txt b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_interfaces_status.txt new file mode 100644 index 0000000..8fbe475 --- /dev/null +++ b/test/unit/mocked_data/test_get_facts/CBS350-24P-4G/show_interfaces_status.txt @@ -0,0 +1,43 @@ +Flow Link Back Mdix +Port Type Duplex Speed Neg ctrl State Pressure Mode +-------- ------------ ------ ----- -------- ---- ----------- -------- ------- +gi1 1G-Copper Full 100 Enabled Off Up Disabled Off +gi2 1G-Copper -- -- -- -- Down -- -- +gi3 1G-Copper Full 100 Enabled Off Up Disabled Off +gi4 1G-Copper Full 100 Enabled Off Up Disabled Off +gi5 1G-Copper Full 100 Enabled Off Up Disabled Off +gi6 1G-Copper -- -- -- -- Down -- -- +gi7 1G-Copper -- -- -- -- Down -- -- +gi8 1G-Copper Full 1000 Enabled Off Up Disabled On +gi9 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi10 1G-Copper Full 1000 Enabled Off Up Disabled On +gi11 1G-Copper -- -- -- -- Down -- -- +gi12 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi13 1G-Copper -- -- -- -- Down -- -- +gi14 1G-Copper Full 1000 Enabled Off Up Disabled Off +gi15 1G-Copper -- -- -- -- Down -- -- +gi16 1G-Copper Full 1000 Enabled Off Up Disabled On +gi17 1G-Copper -- -- -- -- Down -- -- +gi18 1G-Copper Full 1000 Enabled Off Up Disabled On +gi19 1G-Copper Full 1000 Enabled Off Up Disabled On +gi20 1G-Copper -- -- -- -- Down -- -- +gi21 1G-Copper -- -- -- -- Down -- -- +gi22 1G-Copper -- -- -- -- Down -- -- +gi23 1G-Copper -- -- -- -- Down -- -- +gi24 1G-Copper -- -- -- -- Down -- -- +gi25 1G-Fiber -- -- -- -- Down -- -- +gi26 1G-Fiber -- -- -- -- Down -- -- +gi27 1G-Fiber -- -- -- -- Down -- -- +gi28 1G-Fiber -- -- -- -- Down -- -- + + Flow Link +Ch Type Duplex Speed Neg control State +-------- ------- ------ ----- -------- ------- ----------- +Po1 -- -- -- -- -- Not Present +Po2 -- -- -- -- -- Not Present +Po3 -- -- -- -- -- Not Present +Po4 -- -- -- -- -- Not Present +Po5 -- -- -- -- -- Not Present +Po6 -- -- -- -- -- Not Present +Po7 -- -- -- -- -- Not Present +Po8 -- -- -- -- -- Not Present diff --git a/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..24e3835 --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/expected_result.json @@ -0,0 +1,254 @@ +{ + "GigabitEthernet1" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 100 + }, + "GigabitEthernet2" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet3" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 100 + }, + "GigabitEthernet4" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 100 + }, + "GigabitEthernet5" : { + "description" : "server", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 100 + }, + "GigabitEthernet6" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet7" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet8" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet9" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet10" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet11" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet12" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet13" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet14" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet15" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet16" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet17" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet18" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet19" : { + "description" : "", + "is_enabled" : true, + "is_up" : true, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 1000 + }, + "GigabitEthernet20" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet21" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet22" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet23" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet24" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet25" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet26" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet27" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + }, + "GigabitEthernet28" : { + "description" : "", + "is_enabled" : false, + "is_up" : false, + "last_flapped" : -1.0, + "mac_address" : "A4:B2:D9:A4:4B:6F", + "mtu" : 1518, + "speed" : 0 + } +} diff --git a/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_lldp_local_gi1.txt b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_lldp_local_gi1.txt new file mode 100644 index 0000000..68b769a --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces/CBS350-24P-4G/show_lldp_local_gi1.txt @@ -0,0 +1,30 @@ +Device ID: a4:b2:d9:a4:4b:6f +Port ID: a4:b2:d9:a4:4b:97 +Capabilities: Bridge, Router +System Name: sw-abnam-cde-q +Management address: 11.2.5.245 + +802.3 Power Via Mdi: + MDI Power support Port Class: PSE + PSE MDI Power Support: Supported + PSE MDI Power State: Enabled + PSE power pair control ability: Not supported + PSE Power Pair: Spare + PSE Power class: 0 + Power Type: Type 2 PSE + Power Source: Primary Power Source + Power Priority: low + PSE Allocated Power Value: 13.0 + +802.3 EEE: + + Local Tx: 17 uSec + Local Rx: 17 uSec + Local Tx Echo: 17 uSec + Local Rx Echo: 17 uSec + + +802.1 PVID: 80 +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: diff --git a/test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..b23d0ea --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/expected_result.json @@ -0,0 +1,4 @@ +{ + "vlan 10" : { "ipv4" : { "10.1.2.2" : { "prefix_length" : 24 } } }, + "vlan 80" : { "ipv4" : { "10.0.0.150" : { "prefix_length" : 24 } } } +} diff --git a/test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/show_ip_interface.txt b/test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/show_ip_interface.txt new file mode 100644 index 0000000..03eba51 --- /dev/null +++ b/test/unit/mocked_data/test_get_interfaces_ip/CBS350-24P-4G/show_ip_interface.txt @@ -0,0 +1,6 @@ + + IP Address I/F I/F Status Type Directed Prec Redirect Status + admin/oper Broadcast +------------------ --------- ---------- ------- --------- ---- -------- ------ +10.0.0.150/24 vlan 80 UP/UP Static disable No enable Valid +10.1.2.2/24 vlan 10 UP/UP Static disable No enable Valid diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..23bec59 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/expected_result.json @@ -0,0 +1,26 @@ +{ + "GigabitEthernet8" : [ { + "hostname" : "APLobby", + "port" : "78:b2:b9:95:56:2a" + } ], + "GigabitEthernet9" : [ { + "hostname" : "APlut", + "port" : "78:b2:b9:95:56:49" + } ], + "GigabitEthernet12" : [ { + "hostname" : "APZelen", + "port" : "78:b2:b9:95:57:3a" + } ], + "GigabitEthernet13" : [ { + "hostname" : "APModr", + "port" : "78:b2:b9:b5:4a:9c" + } ], + "GigabitEthernet14" : [ { + "hostname" : "", + "port" : "dc:4a:5e:56:8f:36" + } ], + "GigabitEthernet16" : [ { + "hostname" : "APerven", + "port" : "e3:65:da:32:be:43" + } ] +} diff --git a/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt b/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt new file mode 100644 index 0000000..8c6cf19 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet8.txt @@ -0,0 +1,46 @@ +Device ID: 75:e6:b9:83:56:2a +Port ID: 75:e6:b9:83:56:2a +Capabilities: Bridge, Wlan-Access-Point +System Name: APLobby +System description: AP-UF, 5.2.28.18361 +Port description: bri0 +Management Address: 11.2.6.7 +Management Address: 2a00:1028:96d4:b546:768c:b97f:fe93:562a +Time To Live: 95 + + +802.3 MAC/PHY Configuration/Status +Auto-negotiation support: Not supported +Auto-negotiation status: Disabled +Auto-negotiation Advertised Capabilities: +Operational MAU type: Unknown + +802.3 Link Aggregation +Aggregation capability: Capable of being aggregated +Aggregation status: Currently not in aggregation + + +802.3 EEE: + + Remote Tx: 17 uSec + Remote Rx: 17 uSec + Remote Tx Echo: 17 uSec + Remote Rx Echo: 17 uSec + + +802.1 PVID: None +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: + + +LLDP-MED capabilities: Capabilities, Network Policy, Location, POE-PSE, POE-PD, Inventory +LLDP-MED Device Type: Network Connectivity + +Hardware revision: +Firmware revision: +Software revision: 5.2.28.18361 +Serial number: +Manufacturer name: +Model name: +Asset ID: diff --git a/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..3addf55 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/expected_result.json @@ -0,0 +1,34 @@ +{ + "GigabitEthernet8" : [ { + "parent_interface" : "N/A", + "remote_chassis_id" : "75:e6:b9:83:56:2a", + "remote_port" : "75:e6:b9:83:56:2a", + "remote_port_description" : "bri0", + "remote_system_capab" : [ + "B", + "W" + ], + "remote_system_description" : "AP-UF, 5.2.28.18361", + "remote_system_enable_capab" : [ + "B", + "W" + ], + "remote_system_name" : "APLobby" + } ], + "GigabitEthernet9" : [ { + "parent_interface" : "N/A", + "remote_chassis_id" : "75:e6:b9:83:56:2a", + "remote_port" : "75:e6:b9:83:56:2a", + "remote_port_description" : "bri0", + "remote_system_capab" : [ + "B", + "W" + ], + "remote_system_description" : "AP-UF, 5.2.28.18361", + "remote_system_enable_capab" : [ + "B", + "W" + ], + "remote_system_name" : "APLobby" + } ] +} diff --git a/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt index aed2825..df91044 100644 --- a/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt +++ b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors.txt @@ -7,7 +7,3 @@ TP - Two Ports MAC Relay; S - S-VLAN; C - C-VLAN; O - Other --------- ----------------- ----------------- ----------------- ------------ ----- gi8 78:b2:b9:95:56:2a 78:b2:b9:95:56:2a APLobby B, W 97 gi9 78:b2:b9:95:56:49 78:b2:b9:95:56:49 APlut B, W 138 -gi13 78:b2:b9:b5:4a:9c 78:b2:b9:b5:4a:9c APModr B, W 135 -gi12 78:b2:b9:95:57:3a 78:b2:b9:95:57:3a APZelen B, W 117 -gi14 dc:4a:5e:56:8f:36 dc:4a:5e:56:8f:36 O 5586 -gi16 e3:65:da:32:be:43 e3:65:da:32:be:43 APerven B, W 98 diff --git a/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet9.txt b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet9.txt new file mode 100644 index 0000000..8c6cf19 --- /dev/null +++ b/test/unit/mocked_data/test_get_lldp_neighbors_detail/CBS350-24P-4G/show_lldp_neighbors_GigabitEthernet9.txt @@ -0,0 +1,46 @@ +Device ID: 75:e6:b9:83:56:2a +Port ID: 75:e6:b9:83:56:2a +Capabilities: Bridge, Wlan-Access-Point +System Name: APLobby +System description: AP-UF, 5.2.28.18361 +Port description: bri0 +Management Address: 11.2.6.7 +Management Address: 2a00:1028:96d4:b546:768c:b97f:fe93:562a +Time To Live: 95 + + +802.3 MAC/PHY Configuration/Status +Auto-negotiation support: Not supported +Auto-negotiation status: Disabled +Auto-negotiation Advertised Capabilities: +Operational MAU type: Unknown + +802.3 Link Aggregation +Aggregation capability: Capable of being aggregated +Aggregation status: Currently not in aggregation + + +802.3 EEE: + + Remote Tx: 17 uSec + Remote Rx: 17 uSec + Remote Tx Echo: 17 uSec + Remote Rx Echo: 17 uSec + + +802.1 PVID: None +802.1 PPVID: +802.1 VLAN: +802.1 Protocol: + + +LLDP-MED capabilities: Capabilities, Network Policy, Location, POE-PSE, POE-PD, Inventory +LLDP-MED Device Type: Network Connectivity + +Hardware revision: +Firmware revision: +Software revision: 5.2.28.18361 +Serial number: +Manufacturer name: +Model name: +Asset ID: diff --git a/test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/expected_result.json b/test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/expected_result.json new file mode 100644 index 0000000..f1c305e --- /dev/null +++ b/test/unit/mocked_data/test_get_ntp_servers/CBS350-24P-4G/expected_result.json @@ -0,0 +1,7 @@ +{ + "pool.ntp.org" : { }, + "time-a.timefreq.bldrdoc.gov" : { }, + "time-b.timefreq.bldrdoc.gov" : { }, + "time-c.timefreq.bldrdoc.gov" : { }, + "time-pnp.cisco.com" : { } +} From fe3458a98478e568e2cca9da82ee25523d816fb2 Mon Sep 17 00:00:00 2001 From: Petr Klima Date: Tue, 9 Mar 2021 09:13:28 +0100 Subject: [PATCH 6/7] simplier GitHub workflow --- .../{python-publish.yml => PublishToPIP.yml} | 2 +- .github/workflows/TestBeforePush.yml | 28 ------------------- 2 files changed, 1 insertion(+), 29 deletions(-) rename .github/workflows/{python-publish.yml => PublishToPIP.yml} (96%) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/PublishToPIP.yml similarity index 96% rename from .github/workflows/python-publish.yml rename to .github/workflows/PublishToPIP.yml index 49f7ae6..bfa630c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/PublishToPIP.yml @@ -1,7 +1,7 @@ # This workflows will upload a Python Package using Twine when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries -name: Upload Python Package to PyPi.org +name: Publish Python Package to PyPi.org on: release: diff --git a/.github/workflows/TestBeforePush.yml b/.github/workflows/TestBeforePush.yml index 09991cc..166eace 100644 --- a/.github/workflows/TestBeforePush.yml +++ b/.github/workflows/TestBeforePush.yml @@ -7,7 +7,6 @@ on: push: branches: - develop - - master pull_request: branches: - develop @@ -34,30 +33,3 @@ jobs: run: | tox - deploy: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build - run: | - python setup.py sdist bdist_wheel - - name: Check - run: | - twine check dist/* - - name: Publish - env: - TWINE_USERNAME: ${{ secrets.TWINE_TEST_USERNAME }} - TWINE_PASSWORD: ${{ secrets.TWINE_TEST_PASSWORD }} - TWINE_REPOSITORY: ${{ secrets.TWINE_TEST_REPOSITORY }} - run: | - twine upload --repository testpypi --verbose --non-interactive --disable-progress-bar --skip-existing dist/* From fbabbe194f227d2082a35dc7beb799e9d7785f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kl=C3=ADma?= Date: Tue, 9 Mar 2021 09:27:39 +0100 Subject: [PATCH 7/7] Bump version to 0.3.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 36cff1c..01362eb 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with open("README.md", "r") as fs: setup( name="napalm-s350", - version="0.3.0", + version="0.3.1", packages=find_packages(exclude=("test*",)), author="Jasper Lievisse Adriaanse, Petr KlĂ­ma, Daniel Bacher", author_email="j@jasper.la, qaxi@seznam.cz, mail@phill93.de",