Skip to content

Commit ba55198

Browse files
authored
Merge pull request #87 from JaySystem/vlanfix
Added the option to supply a description when creating a vlan
2 parents 84c2bee + 15e2102 commit ba55198

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packet/Manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,15 @@ def list_vlans(self, project_id, params=None):
574574

575575
return vlans
576576

577-
def create_vlan(self, project_id, facility, vxlan=None, vlan=None):
577+
def create_vlan(
578+
self, project_id, facility, vxlan=None, vlan=None, description=None
579+
):
578580
params = {
579581
"project_id": project_id,
580582
"facility": facility,
581583
"vxlan": vxlan,
582584
"vlan": vlan,
585+
"description": description,
583586
}
584587
data = self.call_api(
585588
"projects/%s/virtual-networks" % project_id, type="POST", params=params

0 commit comments

Comments
 (0)