-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
972 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
napalm | ||
Copyright 2015 Spotify AB. All rights reserved. | ||
|
||
This project includes software developed at Spotify AB. | ||
Mircea Ulinic, Kirk Byers, David Barroso, and many others, | ||
who are not necessarily associated with Spotify AB, | ||
have contributed as well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
test/ios/mocked_data/test_get_interfaces_counters/short_if_names/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"TenGigabitEthernet0/0/0": { | ||
"rx_unicast_packets": 0, | ||
"rx_octets": 1748592, | ||
"rx_broadcast_packets": 0, | ||
"rx_multicast_packets": 0, | ||
"rx_errors": 0, | ||
"rx_discards": 0, | ||
"tx_unicast_packets": 9297, | ||
"tx_octets": 1355261, | ||
"tx_broadcast_packets": -1, | ||
"tx_multicast_packets": -1, | ||
"tx_errors": 0, | ||
"tx_discards": 0 | ||
}, | ||
"TenGigabitEthernet0/0/1": { | ||
"rx_unicast_packets": 0, | ||
"rx_octets": 1748592, | ||
"rx_broadcast_packets": 0, | ||
"rx_multicast_packets": 0, | ||
"rx_errors": 0, | ||
"rx_discards": 1, | ||
"tx_unicast_packets": 9297, | ||
"tx_octets": 1355261, | ||
"tx_broadcast_packets": -1, | ||
"tx_multicast_packets": -1, | ||
"tx_errors": 0, | ||
"tx_discards": 0 | ||
}, | ||
"FortyGigabitEthernet0/0/2": { | ||
"rx_unicast_packets": 0, | ||
"rx_octets": 1748592, | ||
"rx_broadcast_packets": 0, | ||
"rx_multicast_packets": 0, | ||
"rx_errors": 0, | ||
"rx_discards": 2, | ||
"tx_unicast_packets": 9297, | ||
"tx_octets": 1355261, | ||
"tx_broadcast_packets": -1, | ||
"tx_multicast_packets": -1, | ||
"tx_errors": 0, | ||
"tx_discards": 0 | ||
}, | ||
"HundredGigabitEthernet0/0/3": { | ||
"rx_unicast_packets": 0, | ||
"rx_octets": 1748592, | ||
"rx_broadcast_packets": 0, | ||
"rx_multicast_packets": 0, | ||
"rx_errors": 0, | ||
"rx_discards": 3, | ||
"tx_unicast_packets": 9297, | ||
"tx_octets": 1355261, | ||
"tx_broadcast_packets": -1, | ||
"tx_multicast_packets": -1, | ||
"tx_errors": 0, | ||
"tx_discards": 0 | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/ios/mocked_data/test_get_interfaces_counters/short_if_names/show_interface_summary.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
*: interface is up | ||
IHQ: pkts in input hold queue IQD: pkts dropped from input queue | ||
OHQ: pkts in output hold queue OQD: pkts dropped from output queue | ||
RXBS: rx rate (bits/sec) RXPS: rx rate (pkts/sec) | ||
TXBS: tx rate (bits/sec) TXPS: tx rate (pkts/sec) | ||
TRTL: throttle count | ||
|
||
Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL | ||
----------------------------------------------------------------------------------------------------------------- | ||
* Te0/0/0 0 0 0 0 0 0 0 0 0 | ||
Te0/0/1 0 1 0 0 0 0 0 0 0 | ||
Fo0/0/2 0 2 0 0 0 0 0 0 0 | ||
Hu0/0/3 0 3 0 0 0 0 0 0 0 |
112 changes: 112 additions & 0 deletions
112
test/ios/mocked_data/test_get_interfaces_counters/short_if_names/show_interfaces.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
TenGigabitEthernet0/0/0 is up, line protocol is up | ||
Hardware is EPA-10X10GE, address is 0000.1111.2222 (bia 0000.1111.2222) | ||
Description: Link | ||
MTU 1500 bytes, BW 10000000 Kbit/sec, DLY 10 usec, | ||
reliability 255/255, txload 1/255, rxload 1/255 | ||
Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set | ||
Keepalive not supported | ||
Full Duplex, 10000Mbps, link type is force-up, media type is SFP-SR | ||
output flow-control is on, input flow-control is on | ||
ARP type: ARPA, ARP Timeout 04:00:00 | ||
Last input 00:00:00, output 00:00:30, output hang never | ||
Last clearing of "show interface" counters 1w5d | ||
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 0 | ||
Queueing strategy: fifo | ||
Output queue: 0/40 (size/max) | ||
30 second input rate 1 bits/sec, 0 packets/sec | ||
30 second output rate 1 bits/sec, 0 packets/sec | ||
0 packets input, 1748592 bytes, 0 no buffer | ||
Received 0 broadcasts (0 IP multicasts) | ||
0 runts, 0 giants, 0 throttles | ||
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored | ||
0 watchdog, 0 multicast, 0 pause input | ||
9297 packets output, 1355261 bytes, 0 underruns | ||
0 output errors, 0 collisions, 0 interface resets | ||
0 unknown protocol drops | ||
0 babbles, 0 late collision, 0 deferred | ||
0 lost carrier, 0 no carrier, 0 pause output | ||
0 output buffer failures, 0 output buffers swapped out | ||
TenGigabitEthernet0/0/1 is up, line protocol is up | ||
Hardware is EPA-10X10GE, address is 0000.1111.2222 (bia 0000.1111.2222) | ||
Description: Link | ||
MTU 1500 bytes, BW 10000000 Kbit/sec, DLY 10 usec, | ||
reliability 255/255, txload 1/255, rxload 1/255 | ||
Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set | ||
Keepalive not supported | ||
Full Duplex, 10000Mbps, link type is force-up, media type is SFP-SR | ||
output flow-control is on, input flow-control is on | ||
ARP type: ARPA, ARP Timeout 04:00:00 | ||
Last input 00:00:00, output 00:00:30, output hang never | ||
Last clearing of "show interface" counters 1w5d | ||
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 1 | ||
Queueing strategy: fifo | ||
Output queue: 0/40 (size/max) | ||
30 second input rate 1 bits/sec, 0 packets/sec | ||
30 second output rate 1 bits/sec, 0 packets/sec | ||
0 packets input, 1748592 bytes, 0 no buffer | ||
Received 0 broadcasts (0 IP multicasts) | ||
0 runts, 0 giants, 0 throttles | ||
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored | ||
0 watchdog, 0 multicast, 0 pause input | ||
9297 packets output, 1355261 bytes, 0 underruns | ||
0 output errors, 0 collisions, 0 interface resets | ||
0 unknown protocol drops | ||
0 babbles, 0 late collision, 0 deferred | ||
0 lost carrier, 0 no carrier, 0 pause output | ||
0 output buffer failures, 0 output buffers swapped out | ||
FortyGigabitEthernet0/0/2 is up, line protocol is up | ||
Hardware is EPA-10X40GE, address is 0000.1111.2222 (bia 0000.1111.2222) | ||
Description: Link | ||
MTU 1500 bytes, BW 40000000 Kbit/sec, DLY 10 usec, | ||
reliability 255/255, txload 1/255, rxload 1/255 | ||
Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set | ||
Keepalive not supported | ||
Full Duplex, 40000Mbps, link type is force-up, media type is SFP-SR | ||
output flow-control is on, input flow-control is on | ||
ARP type: ARPA, ARP Timeout 04:00:00 | ||
Last input 00:00:00, output 00:00:30, output hang never | ||
Last clearing of "show interface" counters 1w5d | ||
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 2 | ||
Queueing strategy: fifo | ||
Output queue: 0/40 (size/max) | ||
30 second input rate 1 bits/sec, 0 packets/sec | ||
30 second output rate 1 bits/sec, 0 packets/sec | ||
0 packets input, 1748592 bytes, 0 no buffer | ||
Received 0 broadcasts (0 IP multicasts) | ||
0 runts, 0 giants, 0 throttles | ||
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored | ||
0 watchdog, 0 multicast, 0 pause input | ||
9297 packets output, 1355261 bytes, 0 underruns | ||
0 output errors, 0 collisions, 0 interface resets | ||
0 unknown protocol drops | ||
0 babbles, 0 late collision, 0 deferred | ||
0 lost carrier, 0 no carrier, 0 pause output | ||
0 output buffer failures, 0 output buffers swapped out | ||
HundredGigabitEthernet0/0/3 is up, line protocol is up | ||
Hardware is EPA-1X100GE, address is 0000.1111.2222 (bia 0000.1111.2222) | ||
Description: Link | ||
MTU 1500 bytes, BW 100000000 Kbit/sec, DLY 10 usec, | ||
reliability 255/255, txload 1/255, rxload 1/255 | ||
Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set | ||
Keepalive not supported | ||
Full Duplex, 100000Mbps, link type is force-up, media type is SFP-SR | ||
output flow-control is on, input flow-control is on | ||
ARP type: ARPA, ARP Timeout 04:00:00 | ||
Last input 00:00:00, output 00:00:30, output hang never | ||
Last clearing of "show interface" counters 1w5d | ||
Input queue: 0/375/0/0 (size/max/drops/flushes); Total output drops: 3 | ||
Queueing strategy: fifo | ||
Output queue: 0/40 (size/max) | ||
30 second input rate 1 bits/sec, 0 packets/sec | ||
30 second output rate 1 bits/sec, 0 packets/sec | ||
0 packets input, 1748592 bytes, 0 no buffer | ||
Received 0 broadcasts (0 IP multicasts) | ||
0 runts, 0 giants, 0 throttles | ||
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored | ||
0 watchdog, 0 multicast, 0 pause input | ||
9297 packets output, 1355261 bytes, 0 underruns | ||
0 output errors, 0 collisions, 0 interface resets | ||
0 unknown protocol drops | ||
0 babbles, 0 late collision, 0 deferred | ||
0 lost carrier, 0 no carrier, 0 pause output | ||
0 output buffer failures, 0 output buffers swapped out |
18 changes: 18 additions & 0 deletions
18
...ios/mocked_data/test_get_mac_address_table/isr_multiple_ehwic_format/expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[{ | ||
"static": false, | ||
"active": true, | ||
"vlan": 2, | ||
"mac": "11:11:22:22:33:33", | ||
"interface": "GigabitEthernet0/0/1", | ||
"moves": -1, | ||
"last_move": -1.0 | ||
}, | ||
{ | ||
"static": false, | ||
"active": true, | ||
"vlan": 1, | ||
"mac": "33:33:22:22:11:11", | ||
"interface": "GigabitEthernet0/1/1", | ||
"moves": -1, | ||
"last_move": -1.0 | ||
}] |
9 changes: 9 additions & 0 deletions
9
...cked_data/test_get_mac_address_table/isr_multiple_ehwic_format/show_mac_address_table.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
EHWIC: 0 | ||
Destination Address Address Type VLAN Destination Port | ||
------------------- ------------ ---- ----------------- | ||
1111.2222.3333 Dynamic 2 GigabitEthernet0/0/1 | ||
|
||
EHWIC: 1 | ||
Destination Address Address Type VLAN Destination Port | ||
------------------- ------------ ---- ----------------- | ||
3333.2222.1111 Dynamic 1 GigabitEthernet0/1/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.