diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-12-02 19:21:24 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-12-02 19:21:24 -0800 |
commit | 983fdb9f5ec3319b1b7695cc5dffe585f708e501 (patch) | |
tree | 83045d4af933c30efc28a076f015d63ee64ed2a3 /lib | |
parent | 11b0a437451fcd39c6ab9a45ccd5bd35eb5f3cac (diff) | |
download | vyatta-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')
-rwxr-xr-x | lib/Vyatta/Config.pm | 7 |
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 |