Use merge operation for load configuration in junos modules (#28369)

*  Change load configuration operation from replace to merge
This commit is contained in:
Ganesh Nalawade 2017-08-18 09:50:02 +05:30 committed by GitHub
parent bc66faa328
commit ceef4f97ed
11 changed files with 12 additions and 10 deletions

View file

@ -298,6 +298,8 @@ def main():
kwargs = {}
if module.params['purge']:
kwargs['action'] = 'replace'
else:
kwargs['action'] = 'merge'
with locked_config(module):
diff = load_config(module, tostring(ele), warnings, **kwargs)