Fix ranges creation, for multipe similar subnets
Change-Id: I7a0e2146da3e5c2fec3a7934a8c472eec74758ef
diff --git a/_states/maasng.py b/_states/maasng.py
index 7b14f99..b6eb01f 100644
--- a/_states/maasng.py
+++ b/_states/maasng.py
@@ -461,7 +461,7 @@
return ret
-def iprange_present(name, type_range, start_ip, end_ip, comment=''):
+def iprange_present(name, type_range, start_ip, end_ip, subnet=None, comment=None):
'''
:param name: Name of iprange
@@ -494,7 +494,7 @@
changes = __salt__['maasng.create_iprange'](type_range=type_range,
start_ip=start_ip,
- end_ip=end_ip, comment=comment)
+ end_ip=end_ip,subnet=subnet, comment=comment)
ret["changes"] = changes
if "error" in changes:
ret['comment'] = "State execution failed for iprange {0}".format(name)
@@ -551,7 +551,7 @@
return ret
-def fabric_present(name, description):
+def fabric_present(name, description=None):
"""
:param name: Name of fabric