Creating a ipam via vnc_api resulted in addresses being allocated from the end of subnet range (addr_from_start attr is null)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Opinion
|
Medium
|
Sachin Bansal |
Bug Description
R2.20 Build 53 Ubuntu 14.04 Juno
Below ipam was created with vnc_api as below. It is seen that addr_from_start is set to null which causes all the ips - default-gw, dns, host ips etc. to be allocated from the end of the IP address range.
We should have the addr_from_start set to true by default.
ipam_obj = NetworkIpam(
ipam_fq_name = ipam_obj.
ipam_real_obj = vh.network_
api_vn_obj = VirtualNetwork(
vn_id = vh.virtual_
ipam = vh.network_
ipam_sn_lst = []
network, prefix = str(subnets[
ipam_sn = IpamSubnetType(
ipam_sn_
api_vn_
vh.virtual_
-------
{
"network-ipam": {
"fq_name": [
"p3",
"ipam1"
],
"href": "http://
"id_perms": {
},
"uuid": {
}
},
"name": "ipam1",
},
"uuid": "564875ea-
{
},
],
}
]
}
}
Changed in juniperopenstack: | |
status: | New → Opinion |