Skip to content

Commit 5621922

Browse files
committed
cumulus_nvue: Don't call enable() and set enter_config_mode = False
Let's stop using sudo for Cumulus NVUE since that's not needed. It blurs the configuration history with changes applied as root user. Closes-Bug: #2079916 Change-Id: Id1c8c93a5c0ced2a56bbcf0929c2fb8aea49b09a
1 parent 518742a commit 5621922

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • networking_generic_switch/devices/netmiko_devices

networking_generic_switch/devices/netmiko_devices/cumulus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ def send_config_set(self, net_connect, cmd_set):
159159
:returns: The output of the configuration commands.
160160
"""
161161
cmd_set.append('nv config apply --assume-yes')
162-
net_connect.enable()
163162
# NOTE: Do not exit config mode because save needs elevated
164163
# privileges
165164
return net_connect.send_config_set(config_commands=cmd_set,
166165
cmd_verify=False,
166+
enter_config_mode=False,
167167
exit_config_mode=False)

0 commit comments

Comments
 (0)