summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-02 15:44:26 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-02 15:44:26 -0700
commitc352393e283904647821ce2369ffbed5c38dfb05 (patch)
treee70837c4f44af3d8e0cb2779a138720e742e160b /scripts
parente6eec8caede1f38158fc971cb7bf5047ef5f5503 (diff)
downloadvyatta-cfg-quagga-c352393e283904647821ce2369ffbed5c38dfb05.tar.gz
vyatta-cfg-quagga-c352393e283904647821ce2369ffbed5c38dfb05.zip
new API change
* return of isActive() was inverted in original API.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/zone-mgmt/vyatta-zone.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/zone-mgmt/vyatta-zone.pl b/scripts/zone-mgmt/vyatta-zone.pl
index b0d7286f..c6771e25 100755
--- a/scripts/zone-mgmt/vyatta-zone.pl
+++ b/scripts/zone-mgmt/vyatta-zone.pl
@@ -720,9 +720,9 @@ sub check_zones_validity {
sub check_fwruleset_isActive {
my ($ruleset_type, $ruleset_name) = @_;
- my $error = Vyatta::Zone::is_fwruleset_active('isActive',
- $ruleset_type, $ruleset_name);
- return "Invalid firewall ruleset $ruleset_type $ruleset_name" if $error;
+ my $ret = Vyatta::Zone::is_fwruleset_active('isActive', $ruleset_type,
+ $ruleset_name);
+ return "Invalid firewall ruleset $ruleset_type $ruleset_name" if (!$ret);
return;
}