Skip to content

Commit

Permalink
Merge pull request #1447 from DavidVentura/fix-ios-keyerror
Browse files Browse the repository at this point in the history
Fix #1387
  • Loading branch information
mirceaulinic authored May 27, 2021
2 parents 43d7006 + 2999a0b commit 8f1c615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion napalm/ios/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -3442,7 +3442,8 @@ def get_network_instances(self, name=""):

# remove interfaces in the VRF from the default VRF
for item in interfaces:
del instances["default"]["interfaces"]["interface"][item]
if item in instances["default"]["interfaces"]["interface"]:
del instances["default"]["interfaces"]["interface"][item]

instances[vrf_name] = {
"name": vrf_name,
Expand Down

0 comments on commit 8f1c615

Please sign in to comment.