wanting north bount netconf working example

asked 2016-05-30 22:57:12 -0800

murrayhughes gravatar image

Hi there,

I'm wanting to write a component that includes north bound netconf. Looking for an example I found and followed this: https://github.com/opendaylight/coret... I Updated it to berylium-sr2, built and deployed it, and started the karaf distro OK. I can access the toaster config via restconf OK via put & get. Trouble is in ch3 the DataChangeListener is not getting called.
What could be causing that?

Karaf came up with just the following two errors. maybe that's the cause?

2016-05-31 17:44:34,520 | ERROR | config-pusher | TransactionProvider | 107 - org.opendaylight.controller.config-manager-facade-xml - 0.4.2.Beryllium-SR2 | Exception while commit of org.opendaylight.controller:Transact ion-46-47,type=ConfigTransaction, aborting transaction org.opendaylight.controller.config.api.ConflictingVersionException: Optimistic lock failed. Expected parent version 49, was 46 at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.commitConfig(ConfigRegistryImpl.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_60]

2016-05-31 17:44:34,884 | ERROR | config-pusher | TransactionProvider | 107 - org.opendaylight.controller.config-manager-facade-xml - 0.4.2.Beryllium-SR2 | Exception while commit of org.opendaylight.controller:TransactionName=ConfigTransact ion-56-57,type=ConfigTransaction, aborting transaction org.opendaylight.controller.config.api.ConflictingVersionException: Optimistic lock failed. Expected parent version 58, was 56 at org.opendaylight.controller.config.manager.impl.ConfigRegistryImpl.commitConfig(ConfigRegistryImpl.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_60]

I'm unsure if they could be the cause, nor how to correct them. I have the maven parent set to 1.6.2-Beryllium-SR2

Alternatively is there another karaf distribution example with a working north bound netconf?

edit retag flag offensive close merge delete