Project: netvirt stable/carbon
11831b35941d9a254f8065fb8e995a8349121ccb
Remove sfc-translator MdsalUtils::put()
Replace MdsalUtils::put() with
SingleTransactionDataBroker::syncWrite(). MdsalUtils is no longer used
at all and can be removed.
Change-Id: I7237b60fe63534591991bf4c2e559ab796f30aac
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Remove sfc-translator MdsalUtils::merge()
Replace MdsalUtils::merge() with
SingleTransactionDataBroker::syncUpdate().
Change-Id: Ic3fab14043525bb105a59515319a85e2d3a1a146
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Remove sfc-translator MdsalUtils::delete()
Replace MdsalUtils::delete() with
SingleTransactionDataBroker::syncDelete().
Change-Id: I502129e932c263b6210aa3c699250582b7ef8d84
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Remove sfc-translator MdsalUtils::read()
Replace MdsalUtils::read() with
SingleTransactionDataBroker::syncReadOptionalAndTreatReadFailedExceptionAsAbsentOptional()
(which is itself deprecated, but I didn’t want to redo the
error-handling in this patch).
Change-Id: I8233ce003f416a6d9575884b5592d0d5728e3f05
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Remove NatUtil::read()
As a step in the MD-SAL utilities clean-up, remove NatUtil::read(),
simply replacing it with
SingleTransactionDataBroker::syncReadOptionalAndTreatReadFailedExceptionAsAbsentOptional()
(which is itself deprecated, but I didn’t want to redo the
error-handling in this patch).
Change-Id: I6798e460d7fb61653a5e3f754d5c083fe1084c80
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Use documenting constants for put()
WriteTransaction provides constants for put()’s createMissingParents
parameter, this patches uses them throughout.
A few transaction-related collection constructions are replaced with
singletonList().
Change-Id: I5e77870eb2b898eb4a4e364ba0013496c884aa1e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>