We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86266e commit b799477Copy full SHA for b799477
netdot/Client.py
@@ -624,8 +624,8 @@ def get_device_vlans(self, device):
624
iface_vlans = self.get_object_by_filter('interfacevlan', 'interface', iface)
625
for iv in iface_vlans['InterfaceVlan'].keys():
626
print iv
627
- if iv['vlan'] not in dev_vlans:
628
- dev_vlans.append(iv['vlan'])
+ if iface_vlans['InterfaceVlan'][iv]['vlan'] not in dev_vlans:
+ dev_vlans.append(iface_vlans['InterfaceVlan'][iv]['vlan'])
629
except requests.exceptions.HTTPError as e:
630
# This is caused by SVI interfaces. They don't have a Vlan
631
# because they are Vlans...
0 commit comments