We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea6e2b1 commit 46a51a5Copy full SHA for 46a51a5
library/junos_install_config
@@ -199,6 +199,14 @@ def _load_via_console(module):
199
if m_args['passwd'] is not None:
200
c_args.append('--passwd='+m_args['passwd'])
201
202
+ # the default mode for loading a config via the console
203
+ # is to load-overwrite. So we need to check the module
204
+ # option and set the "--merge" option if overwrite is False
205
+
206
+ overwrite = module.boolean(module.params['overwrite'])
207
+ if overwrite is False:
208
+ c_args.append('--merge')
209
210
c_args.append(m_args['host'])
211
212
logfile = m_args['logfile']
0 commit comments