From 095be92e4456d321a6883205b9328716efa30aab Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 10 Dec 2010 14:18:54 -0800 Subject: Export inSession to the perl api. --- lib/Vyatta/Config.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 69ed34b..187efa0 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -186,6 +186,13 @@ sub sessionChanged { return $self->{_cstore}->sessionChanged(); } +## inSession() +# returns whether in a config session +sub inSession { + my ($self) = @_; + return $self->{_cstore}->inSession(); +} + ## loadFile() # "load" the specified file sub loadFile { -- cgit v1.2.3