[MDSAL-105] Binding-aware code: adding two augmentations to a node does not work Created: 01/Oct/15 Updated: 09/Mar/18 Resolved: 12/Jan/16 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jan Medved | Assignee: | Igor Foltin |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 4389 |
| Description |
|
When adding two augmentations to a node, data from the first augmentation does not get written to the data store. Consider the attached models and the following code: LOG.info("*** Writing a host node with TP"); List<TerminationPoint> tpList7 = new ArrayList<TerminationPoint>(); Node1 node1_7 = new Node1Builder() RemotePrefixKey ipPfxKey = new RemotePrefixKey(new IpPrefix("10.20.30.40/24".toCharArray())); List<RemotePrefix> pfxList = new ArrayList<RemotePrefix>(); NodeAttributes attr7 = new TypeHostBuilder() Ofl3Node ofl3Node7 = new Ofl3NodeBuilder() NodeKey key7 = new NodeKey(new NodeId("hostNode7")); WriteTransaction tx7 = dataBroker.newWriteOnlyTransaction(); try { tx7.submit().checkedGet(); } catch (TransactionCommitFailedException ex) { when looking at the data store through rest, i see the following data: { ] This problem appears in lithium |
| Comments |
| Comment by Jan Medved [ 01/Oct/15 ] |
|
Attachment yang.zip has been added with description: yang models for the broken code |
| Comment by Igor Foltin [ 07/Jan/16 ] |
|
This bug could not be replicated using the code in the comment above. After reading the node from the datastore, both augmentations were there. I also could not replicate the bug using the following code - http://pastebin.com/V1gLDY2h. |