Skip to content

Commit e7d0f9a

Browse files
mnasiadkabbezak
authored andcommitted
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 737063c commit e7d0f9a

File tree

1 file changed

+1
-1
lines changed
  • networking_generic_switch/devices/netmiko_devices

1 file changed

+1
-1
lines changed

networking_generic_switch/devices/netmiko_devices/cumulus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def send_config_set(self, net_connect, cmd_set):
171171
:returns: The output of the configuration commands.
172172
"""
173173
cmd_set.append('nv config apply --assume-yes')
174-
net_connect.enable()
175174
# NOTE: Do not exit config mode because save needs elevated
176175
# privileges
177176
return net_connect.send_config_set(config_commands=cmd_set,
178177
cmd_verify=False,
178+
enter_config_mode=False,
179179
exit_config_mode=False)

0 commit comments

Comments
 (0)