eos_vlans: Never try to set vlan_id as a property (#63689)

This commit is contained in:
Nathaniel Case 2019-10-18 16:55:27 -04:00 committed by GitHub
parent 93280bd59c
commit d98482c294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,7 +209,7 @@ def generate_commands(vlan_id, to_set, to_remove):
return ["no vlan {0}".format(vlan_id)]
for key, value in to_set.items():
if value is None:
if key == "vlan_id" or value is None:
continue
commands.append("{0} {1}".format(key, value))