... | ... | @@ -14,8 +14,10 @@ https://wiki.openstack.org/wiki/Neutron/APIv2-specification#Show_Network |
|
|
### curl example
|
|
|
|
|
|
```
|
|
|
curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" \
|
|
|
-X PUT -d '{"port": {"name": "port1 updated"}}' http://sdncontrol:8080/controller/nb/v2/neutron/port/86D29754-4779-11E3-8F96-0800200C9A66
|
|
|
curl --user "admin":"<password>" -H "Accept: application/json" -H "Content-type: application/json" \
|
|
|
-X PUT -d '{"port": {"name": "port1 updated"}}' http://sdncontrol:8080/controller/nb/v2/neutron/port/<port_id>
|
|
|
curl -H "X-Auth-Token: $(cat token)" -H "Accept: application/json" -H "Content-type: application/json" \
|
|
|
-X GET http://controlnode:9696/v2.0/ports.json 2>/dev/null | sed "s/,/,\n/g";echo;
|
|
|
```
|
|
|
|
|
|
|
|
|
\ No newline at end of file |