add primary_rack param for maasng.update_vlan
Change-Id: Ibde5d729cf4da6acd8e22f41aaaf28574a104d4e
diff --git a/_modules/maasng.py b/_modules/maasng.py
index 1939b80..65ffc84 100644
--- a/_modules/maasng.py
+++ b/_modules/maasng.py
@@ -870,7 +870,7 @@
return {"error": "Frabic not found on MaaS server"}
-def update_vlan(name, fabric, vid, description, dhcp_on=False):
+def update_vlan(name, fabric, vid, description, primary_rack, dhcp_on=False):
'''
Update vlan
@@ -886,6 +886,7 @@
"name": name,
"dhcp_on": str(dhcp_on),
"description": description,
+ "primary_rack": primary_rack,
}
maas = _create_maas_client()
fabric_id = get_fabric(fabric)