Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update for netmiko 4.x#308

Merged
pszulczewski merged 9 commits intodevelopnetworktocode/pyntc:developfrom
update_netmiko_4networktocode/pyntc:update_netmiko_4Copy head branch name to clipboard
Dec 22, 2023
Merged

Update for netmiko 4.x#308
pszulczewski merged 9 commits intodevelopnetworktocode/pyntc:developfrom
update_netmiko_4networktocode/pyntc:update_netmiko_4Copy head branch name to clipboard

Conversation

@pszulczewski
Copy link
Copy Markdown
Contributor

@pszulczewski pszulczewski commented Dec 5, 2023

Contains:

calc_old_timeout(
                max_loops=None,
                delay_factor=3,
                loop_delay=0.2,
                old_timeout=100,
            )
300.0

calc_old_timeout(
                max_loops=None,
                delay_factor=20,
                loop_delay=0.2,
                old_timeout=100,
            )
2000.0

calc_old_timeout(
                max_loops=500,
                delay_factor=30,
                loop_delay=0.2,
                old_timeout=3600,
            )
3000.0

fast_cli is not used anymore with read_timeout, so respective properties have been removed.
Method signatures have changed, delay_factor has been replaced with read_timeout, this is a braking change.

  • fix to nxos_device kwargs, which were failing with nornir-nautobot inventory.

  • pylint updates, pylint has been re-enabled.

@pszulczewski pszulczewski changed the title Update netmiko 4 Update for netmiko 4.x Dec 5, 2023
@pszulczewski pszulczewski force-pushed the update_netmiko_4 branch 2 times, most recently from 3c5e3ef to b4ade42 Compare December 19, 2023 19:52
Comment thread pyntc/devices/nxos_device.py
Comment thread pyntc/devices/nxos_device.py
Comment thread pyntc/devices/nxos_device.py
Comment thread pyntc/devices/nxos_device.py
Comment thread pyntc/devices/nxos_device.py
@pszulczewski
Copy link
Copy Markdown
Contributor Author

This PR has been tested for software upgrade against physical devices.

  • cisco_ios Catalyst 3500 and Cisco ISR4351/K9 for both: install_mode and regular mode.
  • cisco_nxos Cisco N9K-C9332C

Tested methods:

  • save()
  • file_copy()
  • install_os()

Copy link
Copy Markdown
Contributor

@jeffkala jeffkala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can tell I'm good with all of this.

Comment thread pyntc/devices/aireos_device.py Outdated
Post-review commit (lint)

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
@pszulczewski pszulczewski merged commit 2a6ea1d into develop Dec 22, 2023
pszulczewski added a commit that referenced this pull request Jan 3, 2024
* Update for netmiko 4.x (#308)

* Update kwargs in nxos_device.py to fix nautobot-nornir.

* Pylint updates.

* Update CI for pylint py version.

* Fix exceptions

* Fix NXOS timeout

* Add refresh facts.

* Remove save() from nxos install_os as it causes error.

* Update pyntc/devices/aireos_device.py

Post-review commit (lint)

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>

---------

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>

* Feature/boot swicth all (#289)

Extend cisco_ios boot option lookup.

---------

Co-authored-by: tomasgaj <juan_jesus.tomas_garcia@roche.com>

* Release 2.0.0

---------

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: juanjtomasg <66510649+juanjtomasg@users.noreply.github.com>
Co-authored-by: tomasgaj <juan_jesus.tomas_garcia@roche.com>
@pszulczewski pszulczewski mentioned this pull request Jan 3, 2024
@pszulczewski pszulczewski linked an issue Feb 22, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Finalize all pylint checks and renable pylint testing

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.