[MDSAL-177] BA comparison fails when comparing augmentation Created: 27/Jun/16 Updated: 09/Mar/18 Resolved: 18/Aug/16 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Claudio David Gasparini | Assignee: | Filip Gregor |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 6113 | ||||||||
| Description |
|
We are suffering some issues comparing BA. The corresponding model is grouping flowspec-l3vpn-ipv6-routes { } When FlowspecRouteBuilder#Equals if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { First object contains Route distinguisher as augmentation, meanwhile the other contains it as children, therefore it fails. Firs object creation ROUTE = new FlowspecRouteBuilder().setKey(ROUTE_KEY) Second one is readed from DS and converted using BindingToNormalizedNodeCodec->fromNormalizedNode |
| Comments |
| Comment by Claudio David Gasparini [ 27/Jun/16 ] |
|
Attachment BA.txt has been added with description: BA Containers |
| Comment by Claudio David Gasparini [ 11/Jul/16 ] |
|
we write to DS a flowspec-route Yii /(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)bgp-rib/rib/rib[ {(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)id=rib}]/loc-rib/tables/tables[ {(urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)afi=(urn:opendaylight:params:xml:ns:yang:bgp-types?revision=2013-09-19)ipv6-address-family, (urn:opendaylight:params:xml:ns:yang:bgp-rib?revision=2013-09-25)safi=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-l3vpn-subsequent-address-family}]/routes/(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-l3vpn-ipv6-routes/flowspec-route/flowspec-route[ {(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)path-id=1, (urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)route-key=[l3vpn with route-distinguisher 0:5:3] all packets to 2001:db8:1:2::/64}] MapEntry ImmutableMapEntryNode{nodeIdentifier=(urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)flowspec-route[ {( urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)path-id=1, (urn:opendaylight:params:xml:ns:yang:bgp-flowspec?revision=2015-08-07)route-key=[l3vpn with route-distinguisher 0:5:3] all packets to 2001:db8:1:2::/64}], value=[ then we use BindingToNormalizedNodeCodec#fromNormalizedNode to convert to BA and we obtain DataObject inside context, I see possibleAugmentation -> route-distinguisher. So I guess there is some missing step in adding the augmentation to dataCache or where is required, I'm not familiar |