summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Config.pm
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-12-02 19:21:24 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-12-02 19:21:24 -0800
commit983fdb9f5ec3319b1b7695cc5dffe585f708e501 (patch)
tree83045d4af933c30efc28a076f015d63ee64ed2a3 /lib/Vyatta/Config.pm
parent11b0a437451fcd39c6ab9a45ccd5bd35eb5f3cac (diff)
downloadvyatta-cfg-983fdb9f5ec3319b1b7695cc5dffe585f708e501.tar.gz
vyatta-cfg-983fdb9f5ec3319b1b7695cc5dffe585f708e501.zip
change "load" to use new backend loadFile implementation.
* export loadFile through perl API. * "load" operation is now handled by the backend library.
Diffstat (limited to 'lib/Vyatta/Config.pm')
-rwxr-xr-xlib/Vyatta/Config.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index ed3095b..914230a 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -186,6 +186,13 @@ sub sessionChanged {
return $self->{_cstore}->sessionChanged();
}
+## loadFile()
+# "load" the specified file
+sub loadFile {
+ my ($self, $file) = @_;
+ return $self->{_cstore}->loadFile($file);
+}
+
######
# observers of the "effective" config.
# they can be used