blob: 579c19dad86a70d088a6e921a0ebd296b40ceb98 [file] [log] [blame]
Tomáš Peckaba2dc312021-01-23 22:29:11 +01001/*
2 * Copyright (C) 2020 CESNET, https://photonics.cesnet.cz/
3 *
4 * Written by Tomáš Pecka <tomas.pecka@fit.cvut.cz>
5 *
6 */
7
8#pragma once
9
10#include <sysrepo-cpp/Session.hpp>
11#include <string>
12
13namespace velia::utils {
14
Tomáš Pecka498e91c2021-03-02 17:46:47 +010015void valuesToYang(const std::map<std::string, std::string>& values, const std::vector<std::string>& removePaths, std::shared_ptr<::sysrepo::Session> session, std::shared_ptr<libyang::Data_Node>& parent);
16void valuesPush(const std::map<std::string, std::string>& values, const std::vector<std::string>& removePaths, std::shared_ptr<::sysrepo::Session> session);
17void valuesPush(const std::map<std::string, std::string>& values, const std::vector<std::string>& removePaths, std::shared_ptr<::sysrepo::Session> session, sr_datastore_t datastore);
Tomáš Peckaba2dc312021-01-23 22:29:11 +010018void initLogsSysrepo();
Václav Kubernát6fa7f342021-01-26 17:00:01 +010019void ensureModuleImplemented(std::shared_ptr<::sysrepo::Session> session, const std::string& module, const std::string& revision);
Tomáš Peckaba2dc312021-01-23 22:29:11 +010020
21}