Unify item creation/deletion in datastore access
All of our implementations are using the same implementation; all of the
smartness is actually in sysrepo or in libyang. As a bonus, this should
make it possible to remove regular leafs as well (backend-wise at
least).
Change-Id: I177cd233b4b699f66475eae735a659b7c8577534
diff --git a/src/python_netconf.cpp b/src/python_netconf.cpp
index 76dc559..19c096f 100644
--- a/src/python_netconf.cpp
+++ b/src/python_netconf.cpp
@@ -68,10 +68,8 @@
"server"_a, "port"_a=830, "username"_a, "interactive_auth"_a)
.def("getItems", &NetconfAccess::getItems, "xpath"_a)
.def("setLeaf", &NetconfAccess::setLeaf, "xpath"_a, "value"_a)
- .def("createPresenceContainer", &NetconfAccess::createPresenceContainer, "xpath"_a)
- .def("deletePresenceContainer", &NetconfAccess::deletePresenceContainer, "xpath"_a)
- .def("createListInstance", &NetconfAccess::createListInstance, "xpath"_a)
- .def("deleteListInstance", &NetconfAccess::deleteListInstance, "xpath"_a)
+ .def("createItem", &NetconfAccess::createItem, "xpath"_a)
+ .def("deleteItem", &NetconfAccess::deleteItem, "xpath"_a)
.def("executeRpc", &NetconfAccess::executeRpc, "rpc"_a, "input"_a=DatastoreAccess::Tree{})
.def("commitChanges", &NetconfAccess::commitChanges)
;