Details
-
Bug
-
Status: Resolved
-
Resolution: Cannot Reproduce
-
unspecified
-
None
-
None
-
Operating System: All
Platform: All
-
6094
Description
Cannot put vlan type topology into WriteTransaction.
The problem occurs when node-vbridge-vlan-augmentation is filled out
https://github.com/opendaylight/honeycomb-vbd/blob/master/api/src/main/yang/vlan-tunnel.yang
If it's not specified, put is executed successfully.
I tried this other way round by putting the data via Restconf - they were stored in datastore successfully.
How to replicate this:
build latest groupbasedpolicy distribution
https://github.com/opendaylight/groupbasedpolicy/tree/master/distribution-karaf
feature:install odl-vbd-ui odl-groupbasedpolicy-vpp odl-restconf
PUT the following data from these collection in order
https://www.getpostman.com/collections/d91d74158795bd60d8d5
(there is one PUT which only shows what data should be written to DS. Note, that it's possible to write them via Restconf as I mentioned above)
You should see NPE in log, notice the following piece in stacktrace
at org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec.toNormalizedNode(BindingToNormalizedNodeCodec.java:132)[183:org.opendaylight.controller.sal-binding-broker-impl:1.4.0.SNAPSHOT]
at org.opendaylight.controller.md.sal.binding.impl.AbstractWriteTransaction.put(AbstractWriteTransaction.java:39)[183:org.opendaylight.controller.sal-binding-broker-impl:1.4.0.SNAPSHOT]
at org.opendaylight.groupbasedpolicy.renderer.vpp.policy.BridgeDomainManagerImpl$2.apply(BridgeDomainManagerImpl.java:210)
That line 210 where put is called fires the error.