Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 16df11c

Browse files
committed
add public_ipv4_subnet_size option to create_device
1 parent bb3ae13 commit 16df11c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packet/Manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def list_devices(self, project_id, params={}):
7272

7373
def create_device(self, project_id, hostname, plan, facility,
7474
operating_system, billing_cycle='hourly', userdata='',
75-
locked=False, tags={}, features={}, ipxe_script_url='', always_pxe=False):
75+
locked=False, tags={}, features={}, ipxe_script_url='',
76+
always_pxe=False, public_ipv4_subnet_size=31):
7677

7778
params = {
7879
'hostname': hostname,
@@ -84,6 +85,7 @@ def create_device(self, project_id, hostname, plan, facility,
8485
'userdata': userdata,
8586
'locked': locked,
8687
'features': features,
88+
'public_ipv4_subnet_size': public_ipv4_subnet_size,
8789
'tags': tags,
8890
}
8991

0 commit comments

Comments
 (0)