Ask Your Question
0

How to Add multiple ip inside allowed-address-pairs

asked 2015-11-16 22:20:44 -0500

senyapsudah gravatar image

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.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-11-16 23:05:17 -0500

senyapsudah gravatar image

Forget about this, manage to solve the issue. instead of using below:

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

i just use

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

and check the port again, i can see multiple ip address being added.

edit flag offensive delete link more

Comments

On which system this worked? (CentOS or Ubuntu)

shashidhar gravatar imageshashidhar ( 2015-11-17 00:36:40 -0500 )edit

Works on both.

Suresh Dharavath gravatar imageSuresh Dharavath ( 2017-02-02 07:08:56 -0500 )edit
0

answered 2017-02-02 07:03:01 -0500

Suresh Dharavath gravatar image

updated 2017-02-02 07:08:45 -0500

If you also want to update that with ip and mac addresses pairs then:

neutron port-update pt_mgmt_interface --allowed_address_pairs type=dict list=true ip_address=172.16.3.62,mac_address=fa:16:3e:67:9b:d7 ip_address=172.16.3.62,mac_address=fa:16:3e:ab:85:53
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-11-16 22:20:44 -0500

Seen: 12,592 times

Last updated: Feb 02 '17