blob: 8a470c709159b57b027151b2cad31c65996542d1 [file] [log] [blame]
Václav Kubernát02a71152020-01-21 14:52:51 +01001/*
2 * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Václav Kubernát <kubernat@cesnet.cz>
5 *
6*/
7
Václav Kubernátcfdb9222021-07-07 22:36:24 +02008#include <libyang-cpp/DataNode.hpp>
Václav Kubernát02a71152020-01-21 14:52:51 +01009#include "ast_values.hpp"
Václav Kubernát3c8fe022020-06-04 01:35:03 +020010#include "datastore_access.hpp"
Václav Kubernát02a71152020-01-21 14:52:51 +010011
Václav Kubernátcfdb9222021-07-07 22:36:24 +020012leaf_data_ leafValueFromNode(libyang::DataNodeTerm node);
13template <typename CollectionType>
14void lyNodesToTree(DatastoreAccess::Tree& res, CollectionType items, std::optional<std::string> ignoredXPathPrefix = std::nullopt);
15libyang::DataNode treeToRpcInput(libyang::Context ctx, const std::string& path, DatastoreAccess::Tree in);
16DatastoreAccess::Tree rpcOutputToTree(libyang::DataNode output);