From 983fdb9f5ec3319b1b7695cc5dffe585f708e501 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 2 Dec 2010 19:21:24 -0800 Subject: change "load" to use new backend loadFile implementation. * export loadFile through perl API. * "load" operation is now handled by the backend library. --- lib/Vyatta/Config.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/Vyatta/Config.pm') 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 -- cgit v1.2.3