changed to using OrderedDict to preserve order of lines
This commit is contained in:
Peter Sprygada 2016-04-27 14:41:00 -04:00
parent d652b2edc0
commit c43ea83275

View file

@ -229,7 +229,7 @@ class NetworkConfig(object):
if self._device_os == 'junos': if self._device_os == 'junos':
return updates return updates
diffs = dict() diffs = collections.OrderedDict()
for update in updates: for update in updates:
if replace == 'block' and update.parents: if replace == 'block' and update.parents:
update = update.parents[-1] update = update.parents[-1]