I found the following REST API in Openstack [1] to associate a floating IP to a given server. There you can specify to which server this IP should be allocated to. My instance have multiple network interfaces (lets say eth0, eth1 eth2). This IP allocations always allocate the IP to the first nic which is eth0. My requirement is to assign the IP to a nic which I prefer (say eth1). Is there a way to specify the nic when allocating floating IPs.
POST /v2/{tenant_id}/servers/{server_id}/action
{
"addFloatingIp": {
"address": "10.10.10.1"
}
}
I expect a API something like below. How can I know the list of parameters available in the request payload under "addFloatingIp"
{
"addFloatingIp": {
"address": "10.10.10.1",
"nic":"eth2"
}
}
Openstack version : IceHouse