Skip to content

Commit

Permalink
Fix get_vlans issue of bridge-domain interface is None
Browse files Browse the repository at this point in the history
  • Loading branch information
minefuto committed Mar 12, 2021
1 parent c8284ad commit f519d24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,9 @@ def get_vlans(self):
if k == "vlan_name":
_vlan_data["name"] = v
if k == "interfaces":
if isinstance(v, str):
if v is None:
_vlan_data["interfaces"] = []
elif isinstance(v, str):
if bool(re.match(unmatch_pattern, v)):
_vlan_data["interfaces"] = []
else:
Expand Down

0 comments on commit f519d24

Please sign in to comment.