diff --git a/lib/ansible/module_utils/netcfg.py b/lib/ansible/module_utils/netcfg.py index ff1d138c23e..68607f525c9 100644 --- a/lib/ansible/module_utils/netcfg.py +++ b/lib/ansible/module_utils/netcfg.py @@ -229,7 +229,7 @@ class NetworkConfig(object): if self._device_os == 'junos': return updates - diffs = dict() + diffs = collections.OrderedDict() for update in updates: if replace == 'block' and update.parents: update = update.parents[-1]