Skip to content

Commit

Permalink
Add nxos_ssh support for force_no_enable
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Apr 14, 2020
1 parent 638af2d commit ab7f31e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/support/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ ____________________________________
* :code:`canonical_int` (ios) - Convert operational interface's returned name to canonical name (fully expanded name) (default: ``False``).
* :code:`dest_file_system` (ios) - Destination file system for SCP transfers (default: ``flash:``).
* :code:`enable_password` (eos) - Password required to enter privileged exec (enable) (default: ``''``).
* :code:`force_no_enable` (ios, nxos_ssh) - Do not automatically enter enable-mode on connect (default: ``False``).
* :code:`global_delay_factor` (ios, nxos_ssh) - Allow for additional delay in command execution (default: ``1``).
* :code:`ignore_warning` (junos) - Allows to set `ignore_warning` when loading configuration to avoid exceptions via junos-pyez. (default: ``False``).
* :code:`keepalive` (iosxr, junos) - SSH keepalive interval, in seconds (default: ``30`` seconds).
Expand Down
1 change: 1 addition & 0 deletions napalm/nxos/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None)
self.candidate_cfg = "candidate_config.txt"
self.rollback_cfg = "rollback_config.txt"
self._dest_file_system = optional_args.pop("dest_file_system", "bootflash:")
self.force_no_enable = optional_args.get("force_no_enable", False)
self.netmiko_optional_args = netmiko_args(optional_args)
self.device = None

Expand Down

0 comments on commit ab7f31e

Please sign in to comment.