commit | b3e9998ac381d63e2035a0c3eab9dc269afebae2 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Mar 18 17:38:20 2022 +0100 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Tue Mar 22 10:35:25 2022 +0100 |
tree | e1a5a3e99fd23b417166da81263f9eb3be87bf5f | |
parent | f034f0cdddc39ff1c187c502e28bb9367cfc79f3 [diff] [blame] |
Port to libyang-cpp and sysrepo-cpp API change to std::string Change-Id: I2e922014ec0d280cccafc1fd5aa4ef6a575b1c9d Depends-on: https://gerrit.cesnet.cz/c/CzechLight/dependencies/+/5564 Depends-on: https://gerrit.cesnet.cz/c/CzechLight/netconf-cli/+/5570
diff --git a/src/system/LLDPCallback.cpp b/src/system/LLDPCallback.cpp index c25651e..5eb1f3d 100644 --- a/src/system/LLDPCallback.cpp +++ b/src/system/LLDPCallback.cpp
@@ -27,10 +27,10 @@ for (const auto& n : m_lldp->getNeighbors()) { auto ifc = output->newPath("neighbors"); - auto ifName = ifc->newPath("ifName", n.m_portId.c_str()); + auto ifName = ifc->newPath("ifName", n.m_portId); for (const auto& [key, val] : n.m_properties) { // garbage properties in, garbage out - ifc->newPath(key.c_str(), val.c_str()); + ifc->newPath(key, val); } }