add primary_rack param for maasng.update_vlan
Change-Id: Ibde5d729cf4da6acd8e22f41aaaf28574a104d4e
diff --git a/_states/maasng.py b/_states/maasng.py
index ad30025..cbe8b5d 100644
--- a/_states/maasng.py
+++ b/_states/maasng.py
@@ -325,7 +325,7 @@
return ret
-def update_vlan(name, fabric, vid, description, dhcp_on=False):
+def update_vlan(name, fabric, vid, description, primary_rack, dhcp_on=False):
'''
:param name: Name of vlan
@@ -333,6 +333,7 @@
:param vid: Vlan id
:param description: Description of vlan
:param dhcp_on: State of dhcp
+ :param primary_rack: primary_rack
'''
@@ -342,7 +343,7 @@
'comment': 'Module function maasng.update_vlan executed'}
ret["changes"] = __salt__['maasng.update_vlan'](
- name=name, fabric=fabric, vid=vid, description=description, dhcp_on=dhcp_on)
+ name=name, fabric=fabric, vid=vid, description=description, primary_rack=primary_rack, dhcp_on=dhcp_on)
if "error" in fabric:
ret['comment'] = "State execution failed for fabric {0}".format(fabric)