diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-07-06 17:52:12 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-06 17:52:12 -0700 |
commit | bc07edebe8b8310ce9cf3596303851411ef12357 (patch) | |
tree | 470212ecb0dee71654a4c246a8cd538cf0ab1607 | |
parent | 5d32890ef178e54ebbc48f11a353d79085ee28a5 (diff) | |
parent | 8396a1837e3e8821094cf7da1b8d659ca60acdc9 (diff) | |
download | vyatta-cfg-bc07edebe8b8310ce9cf3596303851411ef12357.tar.gz vyatta-cfg-bc07edebe8b8310ce9cf3596303851411ef12357.zip |
Merge branch 'jenner' of http://git.vyatta.com/vyatta-cfg into jenner
-rw-r--r-- | debian/changelog | 6 | ||||
-rwxr-xr-x | lib/Vyatta/Zone.pm | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index e3361a5..216ea17 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +vyatta-cfg (0.14.91+jenner24) unstable; urgency=low + + * add function to check if a firewall ruleset isActive + + -- Mohit Mehta <mohit.mehta@vyatta.com> Thu, 02 Jul 2009 12:19:37 -0700 + vyatta-cfg (0.14.91+jenner23) unstable; urgency=low * fixed isActive() api to now support mixed level and passed in 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; |