update the _ios_template module to use the network_cli plugin (#19933)

* updates the deprecated ios_template module to use network_cli
* adds unit test cases for ios_template
* adds check for provider argument and displays warning message
This commit is contained in:
Peter Sprygada 2017-01-06 20:22:17 -05:00 committed by GitHub
parent cd02d0ca1d
commit cba66dfedc
8 changed files with 256 additions and 52 deletions

View file

@ -244,11 +244,11 @@ class NetworkConfig(object):
for item in updates:
for p in item._parents:
if p not in visited:
visited.add(p)
if p.line not in visited:
visited.add(p.line)
expanded.append(p)
expanded.append(item)
visited.add(item)
visited.add(item.line)
return expanded