summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Config.pm
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-12-10 14:18:54 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-12-10 14:18:54 -0800
commit095be92e4456d321a6883205b9328716efa30aab (patch)
treecccb4f3a4c24ebea81097992748aed75bc0c2e0a /lib/Vyatta/Config.pm
parent5c77a0d14941386c2991686c7dd5450bad7a8aef (diff)
downloadvyatta-cfg-095be92e4456d321a6883205b9328716efa30aab.tar.gz
vyatta-cfg-095be92e4456d321a6883205b9328716efa30aab.zip
Export inSession to the perl api.
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 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 {