Maybe "YANG Patch" is what you are looking for. You can operate multiple operations within one request. Althogh YANG Patch implementation is not fully following RFC, it is a better way to perform atomic operations. You may check RFC first. https://tools.ietf.org/html/rfc8072 Also need to apply some patches: https://git.opendaylight.org/gerrit/#/c/53313 https://git.opendaylight.org/gerrit/#/c/53701/ After applying these patches, YANG Patch with json payload works for almost scenarios.
2017-04-12 20:47 GMT+10:00 Vikram Darsi <vda...@advaoptical.com>: > Hi Team > > > > We have a requirement to batch write requests to NETCONF device to ensure > atomicity. > > > > So far we are discovering NETCONF devices data and mount it under topology > “topology-netconf” in ODL and the writes could be on different sub trees of > that node from RESTCONF. > > Now, we want to batch some specific set of write operations. So, how can > this be achieved? > > > > Here are the high-level steps that we follow for a single write request to > the device > > > > 1. Using RESTCONF, Modify the subtree under topology-netconf > > 2. DTCL will be notified for this change > > 3. Inside DTCL, Adapt to the NETCONF device model > > 4. Using NetconfDeviceDataBroker, write the adapted data object to the > NETCONF device > > 5. if the request is successfully committed to the device, write the > object in the Operational DataStore. > > > > > > Without using RPC's is there any provision to batch NETCONF request to the > device using RESTCONF and DTCL's? > > > > > > NOTE: We are not using yang-ext URL’s that are generated from the schemas > discovered from the device. > > Reason behind is that we adapted device models to application models > (device models are augmented to NetconfNode in ODL), > > hence the writes from RESTCONF are on the application models. > > > > Thanks > > Vikram > > > > > > _______________________________________________ > netconf-dev mailing list > netconf-...@lists.opendaylight.org > https://lists.opendaylight.org/mailman/listinfo/netconf-dev > > -- --------------------- Best Regards, Wenbo Hu,
_______________________________________________ controller-dev mailing list controller-dev@lists.opendaylight.org https://lists.opendaylight.org/mailman/listinfo/controller-dev