[NEUTRON-123] [stable/beryllium]After creating port with multiple fixedIPs resulting in only fixedIP per subnet getting written to MDSAL Created: 15/Apr/16 Updated: 19/Nov/19 Resolved: 08/Jul/16 |
|
| Status: | Resolved |
| Project: | neutron |
| Component/s: | northbound-api |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Suraj Ranjan | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 5735 |
| Priority: | High |
| Description |
|
Upon creating a port and then updating with multiple fixed IPs per subnet, only one is getting reflected in neutron router config DS. openstack command used for creating port with multiple fixed-ips: neutron port-create ext-net --fixed-ip subnet_id=d8c6125a-8d1a-4802-8bfe-d287776c8b41,ip_address=12.12.12.8 --fixed-ip subnet_id=d8c6125a-8d1a-4802-8bfe-d287776c8b41,ip_address=12.12.12.9 What get reflected in MDSAL: { ], , , , { "id": "673ca49f-0ba9-4e70-a63c-0b6f4bf4fb5e", "tenant_id": "3b54ee92f05c4a45a7e8474badb2e3c8", "direction": "egress", "ethertype": "IPv6", "security_group_id": "40ea057d-1549-4727-86ea-4c3e5dcf107c" } ] |
| Comments |
| Comment by Vishal Thapar [ 18/Apr/16 ] |
|
Issue is in neutron-ports.yang: list fixed-ips { leaf ip-address { type inet:ip-address; }} Yang model allows only one ip-address per subnet. It should be leaf-list, at very list. |
| Comment by Isaku Yamahata [ 19/Apr/16 ] |
|
Yes, neutron API allows for port to have multiple ip addresses from single subnets. Does the following change work? leaf ip-address { type inet:ip-address; }} |
| Comment by Vishal Thapar [ 19/Apr/16 ] |
|
Yes, this would work but will make it difficult to make queries like 'get all fixed IPs for a subnet' as IP would also need to be part of a key given by user/application. |
| Comment by Vishal Thapar [ 11/May/16 ] |
|
http://developer.openstack.org/api-ref-networking-v2.html#listPorts suggests that change proposed by Isaku is best way to go. I'll confirm it form q-svc.log Refer meeting log for details: |
| Comment by Vishal Thapar [ 12/May/16 ] |
|
This is what we get from OpenStack: , ] So, should be good to just change the key to 'subnet-id ip-address'. I believe such a change may not even be disruptive unless someone is explicitly trying to get individual entry using the key. |
| Comment by Abhinav Gupta [ 08/Jul/16 ] |
|
Fixed by https://git.opendaylight.org/gerrit/#/c/35839/9 |