[OPNFLWPLUG-311] MatchConvertorImpl bugs found during test creation Created: 30/Oct/14 Updated: 27/Sep/21 Resolved: 28/May/15 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Michal Polkorab | Assignee: | Martin Bobak |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 2280 | ||||||||
| Description |
|
While creating tests for MatchConvertorImpl I discovered few bugs. Bugs can bee seen here https://git.opendaylight.org/gerrit/#/c/11668/ as TODO and FIXME and commented lines. 1. mask computation of PbbIsid match entry (both ways) - wrong mask lengths
2. add mask computation for ArpSpa and ArpTpa match entries
3. finish implementation of vlan vid match entry
|
| Comments |
| Comment by Martin Bobak [ 09/Dec/14 ] |
|
1st part is solved by this commit : https://git.opendaylight.org/gerrit/#/c/13450/ |
| Comment by Jozef Gloncak [ 26/Jan/15 ] |
|
patch set for poing 3 is proposed: |
| Comment by Jozef Gloncak [ 26/Jan/15 ] |
|
remark to point 3. it seems that in MatchConvertorImpl.OfMatchToSALMatchConvertor() is in section with VlanVid.class set also _vlanIdPresent attribute. |
| Comment by Michal Polkorab [ 26/Jan/15 ] |
|
I agree. Point 3. seems like it has been fixed. |
| Comment by Jozef Gloncak [ 26/Jan/15 ] |
|
I passed throu Michal's commit and searched for commented codes, FIXMEs, TODOs. It was possible to uncomment almost all of them. See patch set: |
| Comment by Jozef Gloncak [ 27/Jan/15 ] |
|
In MatchConvertorImplV13Test.testWithMatchEntriesWithMasks() it is necessary remove commented assertsEquals for checking equality masks of ethernet source and destination addresses. |
| Comment by Jozef Gloncak [ 27/Jan/15 ] |
|
Problem from comment 6 (MatchConvertorImplV13Test.testWithMatchEntriesWithMasks() commented test) was fixed with patch: |