summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rwxr-xr-xlib/Vyatta/Zone.pm6
2 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 8076e41..27de412 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+vyatta-cfg (0.14.101) unstable; urgency=low
+
+ * add function to check if a firewall ruleset isActive
+
+ -- Mohit Mehta <mohit.mehta@vyatta.com> Thu, 02 Jul 2009 12:23:19 -0700
+
vyatta-cfg (0.14.100) unstable; urgency=low
* Fix 4664: 'set failed' is returned when duplicated interface IP
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;