[OPNFLWPLUG-315] OutputActionBuilder.setOutputNodeConnector(new Uri("1")); needs to be replaced with ... setOutputNodeConnector(new NodeConnectorId(...)) Created: 13/Nov/14 Updated: 27/Sep/21 Resolved: 27/May/15 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Flavio Fernandes | Assignee: | Flavio Fernandes |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2382 |
| Description |
|
In a number of places of the controller code, I see code that looks like this: 1 private void prepareActionOutput(OutputActionCaseBuilder wrapper) { 2 OutputActionBuilder outputActionBuilder = new OutputActionBuilder(); 3 outputActionBuilder.setOutputNodeConnector(new Uri("1")); <==== ?!? 4 wrapper.setOutputAction(outputActionBuilder.build()); 5 }Line 3 is an issue because while it is legal, it is not a NodeConectorId type. As mentioned by Martin in core review: https://git.opendaylight.org/gerrit/#/c/12568/ there is quite a bit of confusion on the proper use of |
| Comments |
| Comment by Timotej Kubas [ 27/Feb/15 ] |
|
Hi Flavio, For now we don't consider changing of parameters in mentioned method for several reasons: Is there any good argument for encapsulation of NodeConnectorId parameter? |
| Comment by Flavio Fernandes [ 27/Feb/15 ] |
|
(In reply to Timotej Kubas from comment #1) Thanks Timotej. The only argument for encapsulation is to help callers |