Remove unsed variable is l2_interfaces.py (#61246)

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
pull/61265/head
Paul Belanger 5 years ago committed by GitHub
parent c3b1a0a7e8
commit c61dec032c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -207,7 +207,6 @@ def set_interface(want, have):
commands.append("switchport trunk native vlan {0}".format(native_vlan)) commands.append("switchport trunk native vlan {0}".format(native_vlan))
allowed_vlans = want['trunk'].get("trunk_allowed_vlans") allowed_vlans = want['trunk'].get("trunk_allowed_vlans")
has_allowed = has_trunk.get("trunk_allowed_vlans")
if allowed_vlans: if allowed_vlans:
allowed_vlans = ','.join(allowed_vlans) allowed_vlans = ','.join(allowed_vlans)
commands.append("switchport trunk allowed vlan {0}".format(allowed_vlans)) commands.append("switchport trunk allowed vlan {0}".format(allowed_vlans))

Loading…
Cancel
Save