yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #91071
[Bug 2003553] [NEW] Some port attributes are ignored in bulk port create: allowed_address_pairs, extra_dhcp_opts
Public bug reported:
It seems the bulk port create API ignores some of the port attributes it
receives:
export TOKEN="$( openstack token issue -f value -c id )"
# bulk equivalent of
# openstack --debug port create port0 --network private --allowed-address ip-address=10.0.0.1,mac-address=01:23:45:67:89:ab
curl -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d "{\"ports\":[{\"name\":\"port0\",\"network_id\":\"$( openstack net show private -f value -c id )\",\"allowed_address_pairs\":[{\"ip_address\":\"10.0.0.1\",\"mac_address\":\"01:23:45:67:89:ab\"}]}]}" -X POST http://127.0.0.1:9696/networking/v2.0/ports | json_pp
...
"allowed_address_pairs" : [],
...
# bulk equivalent of
# openstack --debug port create port0 --network private --extra-dhcp-option name=domain-name-servers,value=10.0.0.1,ip-version=4
curl -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d "{\"ports\":[{\"name\":\"port0\",\"network_id\":\"$( openstack net show private -f value -c id )\",\"extra_dhcp_opts\":[{\"opt_name\":\"domain-name-servers\",\"opt_value\":\"10.0.0.1\",\"ip_version\":\"4\"}]}]}" -X POST http://127.0.0.1:9696/networking/v2.0/ports | json_pp
...
"extra_dhcp_opts" : [],
...
neutron b71b25820be6d61ed9f249eddf32bfa49ac76524
** Affects: neutron
Importance: Undecided
Assignee: Bence Romsics (bence-romsics)
Status: New
** Tags: api
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2003553
Title:
Some port attributes are ignored in bulk port create:
allowed_address_pairs, extra_dhcp_opts
Status in neutron:
New
Bug description:
It seems the bulk port create API ignores some of the port attributes
it receives:
export TOKEN="$( openstack token issue -f value -c id )"
# bulk equivalent of
# openstack --debug port create port0 --network private --allowed-address ip-address=10.0.0.1,mac-address=01:23:45:67:89:ab
curl -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d "{\"ports\":[{\"name\":\"port0\",\"network_id\":\"$( openstack net show private -f value -c id )\",\"allowed_address_pairs\":[{\"ip_address\":\"10.0.0.1\",\"mac_address\":\"01:23:45:67:89:ab\"}]}]}" -X POST http://127.0.0.1:9696/networking/v2.0/ports | json_pp
...
"allowed_address_pairs" : [],
...
# bulk equivalent of
# openstack --debug port create port0 --network private --extra-dhcp-option name=domain-name-servers,value=10.0.0.1,ip-version=4
curl -s -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d "{\"ports\":[{\"name\":\"port0\",\"network_id\":\"$( openstack net show private -f value -c id )\",\"extra_dhcp_opts\":[{\"opt_name\":\"domain-name-servers\",\"opt_value\":\"10.0.0.1\",\"ip_version\":\"4\"}]}]}" -X POST http://127.0.0.1:9696/networking/v2.0/ports | json_pp
...
"extra_dhcp_opts" : [],
...
neutron b71b25820be6d61ed9f249eddf32bfa49ac76524
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2003553/+subscriptions
Follow ups