summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-07-06 13:38:35 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-07-06 13:38:35 -0700
commit6fa334b752e8d5999a403897ce3c1981b54bec52 (patch)
tree6e6df291fd4d3eb87b3c7c941e73e73bab7ba3c9 /lib
parent492372480adb0b24808c893b090d12f5703fa3fb (diff)
parent8c09c7e069305babd85057e7bad0ba7ab6627031 (diff)
downloadvyatta-cfg-6fa334b752e8d5999a403897ce3c1981b54bec52.tar.gz
vyatta-cfg-6fa334b752e8d5999a403897ce3c1981b54bec52.zip
Merge branch 'kenwood' of http://git.vyatta.com/vyatta-cfg into kenwood
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Zone.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Vyatta/Zone.pm b/lib/Vyatta/Zone.pm
index fd224b0..4b169b5 100755
--- a/lib/Vyatta/Zone.pm
+++ b/lib/Vyatta/Zone.pm
@@ -49,6 +49,12 @@ sub run_cmd {
return $error;
}
+sub is_fwruleset_active {
+ my ($value_func, $ruleset_type, $fw_ruleset) = @_;
+ my $config = new Vyatta::Config;
+ return $config->$value_func("firewall $ruleset_type $fw_ruleset");
+}
+
sub get_all_zones {
my $value_func = shift;
my $config = new Vyatta::Config;