[OPNFLWPLUG-657] NodeId+DatapathId in Services (remove dependency on DeviceContext) Created: 23/Mar/16 Updated: 27/Sep/21 Resolved: 16/May/16 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jozef Slezák | Assignee: | Tomas Slusny |
| 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: | 5592 |
| Description |
|
Subclasses of org.opendaylight.openflowplugin.impl.services.AbstractService should have their own field for accessing NodeId+DatapathId+version. For example these classes use NodeId/DatapathId just for logging: Lets used DeviceState for accessing at least:
This deviceContext is propagated also to this transform utility functions but it is not necessary (propagate there only DeviceState): |
| Comments |
| Comment by Tomas Slusny [ 31/Mar/16 ] |
|
I am bit confused about the first half of the description. Should I add DeviceState to AbstractService constructor and then modify AbstractService.getVersion() and AbstractService.getDatapathId() to get these values from DeviceState and not DeviceContext.Features? And then add another method, AbstractService.getNodeId() what will return NodeId of DeviceState and update subclasses according to these changes? Because, even with these changes, I cannot replace usage of the DeviceContext, because subclasses are using MessageSpy from DeviceContext. |
| Comment by Tomas Slusny [ 04/Apr/16 ] |
|
GERRIT: |
| Comment by Jozef Bacigal [ 18/Apr/16 ] |
|
Transformers merged. |