| Summary: | RFE: IPV6 command for neutron port-update --allowed-address-pairs | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Jeremy <jmelvin> |
| Component: | python-neutronclient | Assignee: | Bernard Cafarelli <bcafarel> |
| Status: | CLOSED NOTABUG | QA Contact: | Toni Freger <tfreger> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 (Kilo) | CC: | amuller, bcafarel, chrisw, jruzicka, nyechiel, srevivo |
| Target Milestone: | --- | Keywords: | FutureFeature, RFE, Unconfirmed, ZStream |
| Target Release: | 7.0 (Kilo) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-23 14:34:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
@Bernard, can you please verify if it's currently possible to add IPv6 allowed address pairs, and if anything changed in this regard from Kilo to master? This is related to how to enter allowed address pairs parameters, you would get the same behavior here with two IPv4 adresses
What you enter is actually a mac (optional)/IP pair where the "," separator is used. For additional (pair) parameters, separate with a space:
$ neutron port-update b17865ee-b8c2-4d79-b5f8-034e61196346 --allowed-address-pairs type=dict list=true mac_address=fa:16:3e:b9:47:52,ip_address=0.0.0.0/0 ip_address=127.0.0.1/32 mac_address=fa:16:3e:b9:47:52,ip_address=::/0
This will add the 3 tuples {"ip_address": "0.0.0.0/0", "mac_address": "fa:16:3e:b9:47:52"}, {"ip_address": "127.0.0.1/32", "mac_address": "fa:16:3e:b9:47:52"}, {"ip_address": "::/0", "mac_address": "fa:16:3e:b9:47:52"}
Also, I just tested on OSP 7 and this also works on this version (with the same syntax)
So the customer command should be something like:
$ neutron port-update 7aed2fbd-9d1c-4c39-b36d-8cc4873dc554 --allowed-address-pairs type=dict list=true mac_address=fa:16:3e:51:bc:bb,ip_address=0.0.0.0/0 mac_address=fa:16:3e:51:bc:bb,ip_address=::/0
Thanks, that works. we can close this BZ. |
Description of problem: Need a way to add allowed address pairs for IPV6 addresses. Version-Release number of selected component (if applicable): openstack-neutron-2015.1.0-16.el7ost.noarch python-neutron-2015.1.0-16.el7ost.noarch Additional info: Attempting to add multiple or single ipv6 ip_address does not work. or overwrites the ipv4 address: [hsiaand@nj51labadm6v ~]$ neutron port-update 7aed2fbd-9d1c-4c39-b36d-8cc4873dc554 --allowed-address-pairs type=dict list=true mac_address=fa:16:3e:51:bc:bb,ip_address=0.0.0.0/0,ip_address=::/0 Updated port: 7aed2fbd-9d1c-4c39-b36d-8cc4873dc554 [hsiaand@nj51labadm6v ~]$ neutron port-show 7aed2fbd-9d1c-4c39-b36d-8cc4873dc554 +-----------------------+---------------------------------------------------------------------------------------+ | Field | Value | +-----------------------+---------------------------------------------------------------------------------------+ | admin_state_up | True | | allowed_address_pairs | {"ip_address": "::/0", "mac_address": "fa:16:3e:51:bc:bb"} | | binding:vnic_type | normal | | device_id | 9644fa16-269a-4a53-943e-50b6dcf6d841 | | device_owner | compute:None | | extra_dhcp_opts | | | fixed_ips | {"subnet_id": "57f7d23d-78b5-411f-859d-a039233f583b", "ip_address": "192.168.225.11"} | | id | 7aed2fbd-9d1c-4c39-b36d-8cc4873dc554 | | mac_address | fa:16:3e:51:bc:bb | | name | | | network_id | b6acca69-36fd-4d11-ba77-1f267d26c56f | | security_groups | 4107ceb4-1139-4efe-bc52-f8344f89f94d | | status | ACTIVE | | tenant_id | 5bfb5141ed6a48e69bb5f63698d7bed1 |