I went to reserve an IP range and when I didn't specify the type it gave errors for start_ip and end_ip, but also type should not be required. type should default to reserved.
ubuntu@region-1:~$ maas admin ipranges create start_ip=192.168.122.1 end_ip=192.168.122.39
{"start_ip": ["No range can be created at requested start IP."], "type": ["This field is required.", "No range can be created at requested start IP."]}
ubuntu@region-1:~$ maas admin ipranges create start_ip=192.168.122.1 end_ip=192.168.122.39 type=reserved
Success.
Machine-readable output follows:
{
"id": 2,
"resource_uri": "/MAAS/api/2.0/ipranges/2/",
"type": "reserved",
"start_ip": "192.168.122.1",
"end_ip": "192.168.122.39",
"comment": "",
"user": {
"username": "admin",
"email": "noreply@maas", "is_superuser": true
},
"subnet": { "resource_uri": "/MAAS/api/2.0/subnets/1/", "gateway_ip": "192.168.122.1", "allow_proxy": true, "dns_servers": [],
"space": "space-0",
"cidr": "192.168.122.0/24",
"id": 1, "rdns_mode": 2,
"name": "192.168.122.0/24",
"vlan": { "resource_uri": "/MAAS/api/2.0/vlans/5001/", "dhcp_on": true, "secondary_rack": "4y3h7s",
"mtu": 1500, "fabric": "fabric-0", "external_dhcp": null,
"id": 5001, "primary_rack": "4y3h7r",
"name": "untagged",
"vid": 0
}
}
}
I went to reserve an IP range and when I didn't specify the type it gave errors for start_ip and end_ip, but also type should not be required. type should default to reserved. 192.168. 122.1 end_ip= 192.168. 122.39 192.168. 122.1 end_ip= 192.168. 122.39 type=reserved api/2.0/ ipranges/ 2/",
"is_superuser" : true
"resource_ uri": "/MAAS/ api/2.0/ subnets/ 1/",
"gateway_ ip": "192.168.122.1",
"allow_ proxy": true,
"dns_servers" : [],
"rdns_ mode": 2,
"resource_ uri": "/MAAS/ api/2.0/ vlans/5001/ ",
"dhcp_ on": true,
"secondary _rack": "4y3h7s",
"fabric" : "fabric-0",
"external_ dhcp": null,
"primary_ rack": "4y3h7r",
ubuntu@region-1:~$ maas admin ipranges create start_ip=
{"start_ip": ["No range can be created at requested start IP."], "type": ["This field is required.", "No range can be created at requested start IP."]}
ubuntu@region-1:~$ maas admin ipranges create start_ip=
Success.
Machine-readable output follows:
{
"id": 2,
"resource_uri": "/MAAS/
"type": "reserved",
"start_ip": "192.168.122.1",
"end_ip": "192.168.122.39",
"comment": "",
"user": {
"username": "admin",
"email": "noreply@maas",
},
"subnet": {
"space": "space-0",
"cidr": "192.168.122.0/24",
"id": 1,
"name": "192.168.122.0/24",
"vlan": {
"mtu": 1500,
"id": 5001,
"name": "untagged",
"vid": 0
}
}
}