-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bugfix/ios get interfaces counters mgmt0 (#1201) * IOS: fix get_interfaces_counters when interface = canonical Fixes #1200 mgmt0 interface is not translated to it's canonical name on the 'show interface' command. Thix fix attempt to use the expected Canonical name first and fallback to the interface name in case of a KeyError is raised * Add test * Make black happy ! * Version 3.0.1 (#1202) * Junos: close configuration in case configure_private is set to avoid configure session to stay forever. (#1199) This is done in commit_config and discard_config functions. Co-authored-by: Mircea Ulinic <mirceaulinic@users.noreply.github.com> * Bugfix/ios get optics input na (#1206) * IOS: fix get_optics when input is N/A Extend the current check to ouput value to the input value. Input value could also be N/A Fixes #1205 * Add test * Bugfix/ios get optics support vss (#1208) * IOS: support get_optics on VSS Setup Introduce a new class function: _is_vss If the current swith is a VSS setup, run the following commands an parse the output:: show interfaces transceiver switch 1 show interfaces transceiver switch 2 * Add test * Make black happy * Bump pytest from 5.4.1 to 5.4.2 (#1204) Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.1 to 5.4.2. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest@5.4.1...5.4.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Mircea Ulinic <mirceaulinic@users.noreply.github.com> * Update README.md and setup.py so branch has some differences (#1209) * Fix cmd_verify and null character on NX-OS (#1214) * Bump ddt from 1.3.1 to 1.4.1 (#1219) Bumps [ddt](https://github.com/datadriventests/ddt) from 1.3.1 to 1.4.1. - [Release notes](https://github.com/datadriventests/ddt/releases) - [Commits](datadriventests/ddt@1.3.1...1.4.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> * Add eos_fn0039_config optional arg to toggle FN 0039 on config commands (#1212) Co-authored-by: Kirk Byers <ktbyers@twb-tech.com> Co-authored-by: Exane Server Team <frederic.brin@exane.com> Co-authored-by: spinoshi <simone.spinelli@geant.org> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Kirk Byers <ktbyers@twb-tech.com>
- Loading branch information
1 parent
803f764
commit 456f736
Showing
20 changed files
with
1,038 additions
and
25 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
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
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
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
16 changes: 16 additions & 0 deletions
16
test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/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,16 @@ | ||
{ | ||
"mgmt0": { | ||
"rx_unicast_packets": 10039584, | ||
"rx_octets": 860372462, | ||
"rx_broadcast_packets": 10025891, | ||
"rx_multicast_packets": 6, | ||
"rx_errors": 0, | ||
"rx_discards": 0, | ||
"tx_unicast_packets": 309048, | ||
"tx_octets": 110610635, | ||
"tx_broadcast_packets": -1, | ||
"tx_multicast_packets": -1, | ||
"tx_errors": 0, | ||
"tx_discards": 0 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/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,12 @@ | ||
|
||
|
||
*: 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 | ||
----------------------------------------------------------------------------------------------------------------- | ||
* mgmt0 0 0 0 0 0 1 0 0 0 |
31 changes: 31 additions & 0 deletions
31
test/ios/mocked_data/test_get_interfaces_counters/no_canonical_for_mgmt/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,31 @@ | ||
mgmt0 is up, line protocol is up (connected) | ||
Hardware is I82580 MGMT, address is 0008.e3ff.fd68 (bia 0008.e3ff.fd68) | ||
Internet address is 10.211.127.1/24 | ||
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, | ||
reliability 255/255, txload 1/255, rxload 1/255 | ||
Encapsulation ARPA, loopback not set | ||
Keepalive not supported | ||
Full-duplex, 1000Mb/s | ||
Media-type configured as RJ45 connector | ||
input flow-control is off, output flow-control is unsupported | ||
Clock mode is auto | ||
ARP type: ARPA, ARP Timeout 04:00:00 | ||
Last input 00:00:01, output never, output hang never | ||
Last clearing of "show interface" counters 23w5d | ||
Input queue: 0/1000/0/0 (size/max/drops/flushes); Total output drops: 0 | ||
Queueing strategy: fifo | ||
Output queue: 0/40 (size/max) | ||
5 minute input rate 0 bits/sec, 0 packets/sec | ||
5 minute output rate 0 bits/sec, 0 packets/sec | ||
10039584 packets input, 860372462 bytes, 0 no buffer | ||
Received 10025891 broadcasts (416 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 | ||
0 input packets with dribble condition detected | ||
309048 packets output, 110610635 bytes, 0 underruns | ||
0 output errors, 0 collisions, 25 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 |
Oops, something went wrong.