summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-13 11:18:33 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-13 11:18:33 -0700
commit31f5a0c0245604b891aac418b3b787556b9f6b5b (patch)
tree0013c49be169e35003a90a43670e16ca5c75a72d /lib/Vyatta
parent8e98a22b3b62bab16bcf8dffd6df5ff00c540f59 (diff)
downloadvyatta-cfg-31f5a0c0245604b891aac418b3b787556b9f6b5b.tar.gz
vyatta-cfg-31f5a0c0245604b891aac418b3b787556b9f6b5b.zip
add API function for retrieving deleted values of a multi node.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Config.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index 371fe32..a02ee18 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -356,6 +356,15 @@ sub listDeleted {
return @{$ref};
}
+## returnDeletedValues("level")
+# return array of deleted values of specified "multi node"
+sub returnDeletedValues {
+ my ($self, $path) = @_;
+ my $ref = $self->{_cstore}->cfgPathGetDeletedValues(
+ $self->get_path_comps($path));
+ return @{$ref};
+}
+
## isAdded("node")
# whether specified node has been added in working config
sub isAdded {