Add support for setting NLSR prefix costs via configuration file and nlsrc
This change alters the nlsr.conf 'advertising' format, as the previous
setup used unnecessary keys which made dynamically adjusting the
stateful conf file difficult.
Incorporates code written by Yanbiao Li.
Change-Id: I3ed5d0a564099be8cc1389ee6acc6f2d04cef889
diff --git a/tests/update/test-save-delete-prefix.cpp b/tests/update/test-save-delete-prefix.cpp
index 5adec17..4f1d3a5 100644
--- a/tests/update/test-save-delete-prefix.cpp
+++ b/tests/update/test-save-delete-prefix.cpp
@@ -123,7 +123,7 @@
// counter helps to check if multiple prefix of same name exists on conf file
counter = 0;
for (const auto& section : m_savePrefix.get_child("advertising")) {
- auto b = section.second.get_value<std::string>();
+ auto b = section.first.data();
if (b == prefixName) {
counter++;
}