Comment 3 for bug 1331883

Revision history for this message
Dima Shulyak (dshulyak) wrote :

Well the issue is in fuelclient, it forms incorrect json.

Correct one below:

[root@nailgun ~]# fuel --debug --env 1 node --node-id 1 --network --upload
PUT http://127.0.0.1:8000/api/v1/nodes/1/interfaces/ data=[{"name": "eth0", "mac": "64:d1:96:2e:bd:b3", "state": "up", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 1, "name": "fuelweb_admin"}], "type": "ether", "id": 5}, {"name": "eth1", "mac": "64:e9:bb:d3:6a:c5", "state": "up", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 3, "name": "management"}], "type": "ether", "id": 4}, {"name": "eth2", "mac": "64:2e:89:3d:86:53", "state": "up", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 4, "name": "storage"}], "type": "ether", "id": 3}, {"name": "eth3", "mac": "64:89:84:5e:76:56", "state": "up", "max_speed": null, "current_speed": null, "assigned_networks": [{"id": 2, "name": "public"}], "type": "ether", "id": 2}, {"name": "eth4", "mac": "64:3f:45:d2:c9:b0", "state": "up", "max_speed": null, "current_speed": null, "assigned_networks": [], "type": "ether", "id": 1}]