Adding Network MTU parameter to VLANs
Change-Id: Id0aefc4a8ee8e07ec74ef4a519d646e9fc0120ec
diff --git a/_states/maasng.py b/_states/maasng.py
index 40ec9a4..85df2f4 100644
--- a/_states/maasng.py
+++ b/_states/maasng.py
@@ -332,12 +332,13 @@
return ret
-def vlan_present_in_fabric(name, fabric, vlan, primary_rack, description='', dhcp_on=False):
+def vlan_present_in_fabric(name, fabric, vlan, primary_rack, description='', dhcp_on=False, mtu=1500):
"""
:param name: Name of vlan
:param fabric: Name of fabric
:param vlan: Vlan id
+ :param mtu: MTU
:param description: Description of vlan
:param dhcp_on: State of dhcp
:param primary_rack: primary_rack
@@ -360,6 +361,7 @@
changes = __salt__['maasng.create_vlan_in_fabric'](name=name,
fabric=fabric,
vlan=vlan,
+ mtu=mtu,
description=description,
primary_rack=primary_rack,
dhcp_on=dhcp_on)
@@ -370,6 +372,7 @@
changes = __salt__['maasng.create_vlan_in_fabric'](name=name,
fabric=fabric,
vlan=vlan,
+ mtu=mtu,
description=description,
primary_rack=primary_rack,
dhcp_on=dhcp_on,