summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-19 17:48:55 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-19 17:48:55 -0700
commit29273c0ba8399d0b135384aec33d71fe28a93169 (patch)
treebfc999cc3ea0d3a43022f020a188d20c60300e3d
parent3594ffa9f1c62d5f73d12b35f81a862c762b5d44 (diff)
downloadvyatta-cfg-29273c0ba8399d0b135384aec33d71fe28a93169.tar.gz
vyatta-cfg-29273c0ba8399d0b135384aec33d71fe28a93169.zip
add API function
-rw-r--r--src/cstore/cstore.cpp13
-rw-r--r--src/cstore/cstore.hpp3
2 files changed, 14 insertions, 2 deletions
diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp
index 3cd0649..33210dc 100644
--- a/src/cstore/cstore.cpp
+++ b/src/cstore/cstore.cpp
@@ -1096,10 +1096,19 @@ void
Cstore::cfgPathGetDeletedValues(const vector<string>& path_comps,
vector<string>& dvals)
{
+ cfgPathGetDeletedValuesDA(path_comps, dvals, false);
+}
+
+// same as above but DA
+void
+Cstore::cfgPathGetDeletedValuesDA(const vector<string>& path_comps,
+ vector<string>& dvals,
+ bool include_deactivated)
+{
vector<string> ovals;
vector<string> nvals;
- if (!cfgPathGetValues(path_comps, ovals, true)
- || !cfgPathGetValues(path_comps, nvals, false)) {
+ if (!cfgPathGetValuesDA(path_comps, ovals, true, include_deactivated)
+ || !cfgPathGetValuesDA(path_comps, nvals, false, include_deactivated)) {
return;
}
map<string, bool> dmap;
diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp
index 492462e..37a3e06 100644
--- a/src/cstore/cstore.hpp
+++ b/src/cstore/cstore.hpp
@@ -240,6 +240,9 @@ public:
void cfgPathGetDeletedChildNodesDA(const vector<string>& path_comps,
vector<string>& cnodes,
bool include_deactivated = true);
+ void cfgPathGetDeletedValuesDA(const vector<string>& path_comps,
+ vector<string>& dvals,
+ bool include_deactivated = true);
void cfgPathGetChildNodesStatusDA(const vector<string>& path_comps,
map<string, string>& cmap);