Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Add multiple ip inside allowed-address-pairs

Hi Guys,

i'm trying to add 2 address pairs to the existing neutron port. i use below command.

neutron port-update af47ddc2-d6db-4a4d-a922-6e6efcab4737 --allowed-address-pairs type=dict list=true ip_address=172.18.58.94,ip_address=172.18.58.95

the command run successfully, however when i do neutron port-show af47ddc2-d6db-4a4d-a922-6e6efcab4737 i can see it will only take the last ip address assigned to the port. which is 172.18.58.95.

+-----------------------+-------------------------------------------------------------------------------------+
| Field                 | Value                                                                               |
+-----------------------+-------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                |
| allowed_address_pairs | {"ip_address": "172.18.58.95", "mac_address": "fa:16:3e:11:18:a9"}                  |
| binding:host_id       | compute01.host.com                                                         |
| binding:profile       | {}                                                                                  |
| binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}                                      |
| binding:vif_type      | ovs                                                                                 |
| binding:vnic_type     | normal                                                                              |
| device_id             | f8477fd3-7921-4967-947f-5e67fd4a3e2b                                                |
| device_owner          | compute:joe                                                                          |
| extra_dhcp_opts       |                                                                                     |
| fixed_ips             | {"subnet_id": "52c49785-d665-410a-950c-c8f26b896efe", "ip_address": "172.18.58.90"} |
| id                    | af47ddc2-d6db-4a4d-a922-6e6efcab4737                                                |
| mac_address           | fa:16:3e:11:18:a9                                                                   |
| name                  |                                                                                     |
| network_id            | 6277df4f-d3a3-4014-b413-4d31a3536812                                                |
| security_groups       | 56ac730b-d91f-4c66-9d02-bb742454a075                                                |
| status                | ACTIVE                                                                              |
| tenant_id             | 1dbed40aa64043c4a476e9a3328672b1                                                    |
+-----------------------+-------------------------------------------------------------------------------------+

looking forward for reply.