Skip to content

Commit 46a51a5

Browse files
updates
1 parent ea6e2b1 commit 46a51a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/junos_install_config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@ def _load_via_console(module):
199199
if m_args['passwd'] is not None:
200200
c_args.append('--passwd='+m_args['passwd'])
201201

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+
202210
c_args.append(m_args['host'])
203211

204212
logfile = m_args['logfile']

0 commit comments

Comments
 (0)