Comment 1 for bug 1341096

Revision history for this message
yong sheng gong (gongysh) wrote :

It is weird.
the correct command is:
neutron port-update 55b72fe9-2c8b-4ada-b071-9e41b87454cd --fixed-ips type=dict list=true subnet_id=c256df04-550d-4ad2-87ec-3ec725799a07,ip_address=192.168.0.15

and the corresponding API is:
REQ: curl -i 'http://l7.0.ymy.ustack.in:9696/v2.0/ports/55b72fe9-2c8b-4ada-b071-9e41b87454cd.json' -X PUT -H "X-Auth-Token: 9206b92e6c5e49ca9472c60878e2258a" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"port": {"fixed_ips": [{"subnet_id": "c256df04-550d-4ad2-87ec-3ec725799a07", "ip_address": "192.168.0.15"}]}}'