[NEUTRON-31] On a router_interface_add, the Northbound code assumed (incorrectly) the port has null device_id and device_owner Created: 17/Apr/15 Updated: 11/Jun/15 Resolved: 11/Jun/15 |
|
| Status: | Resolved |
| Project: | neutron |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Kyle Mestery | Assignee: | Rajesh Jaiswal |
| 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: | 3014 |
| Description |
|
This was found while integrating with the router_interface_add/remove calls from OpenStack. |
| Comments |
| Comment by Rajesh Jaiswal [ 07/May/15 ] |
|
As per northbound code the device_Id and device_Owner on router_interface_add does not looks that it assumes (incorrectly) the port has null device_id and device_owner .Please look at the following code .. if (targetPort.getDeviceID() != null && !targetPort.getDeviceID().equals(routerUUID)) ///////////////////////// //mark the port device id and device owner fields |
| Comment by Ryan Moats [ 09/Jun/15 ] |
|
https://git.opendaylight.org/gerrit/#/c/22220 adds tests to address this defect in master branch https://git.opendaylight.org/gerrit/#/c/22222 does the same for the stable/lithium branch |
| Comment by Flavio Fernandes [ 09/Jun/15 ] |
|
Merge to Helium via this gerrit: |