diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-19 17:48:55 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-19 17:48:55 -0700 |
commit | 29273c0ba8399d0b135384aec33d71fe28a93169 (patch) | |
tree | bfc999cc3ea0d3a43022f020a188d20c60300e3d /src/cstore/cstore.cpp | |
parent | 3594ffa9f1c62d5f73d12b35f81a862c762b5d44 (diff) | |
download | vyatta-cfg-29273c0ba8399d0b135384aec33d71fe28a93169.tar.gz vyatta-cfg-29273c0ba8399d0b135384aec33d71fe28a93169.zip |
add API function
Diffstat (limited to 'src/cstore/cstore.cpp')
-rw-r--r-- | src/cstore/cstore.cpp | 13 |
1 files changed, 11 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; |