summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-05-24 15:38:46 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-05-24 15:38:46 -0700
commite72c4708669e0b837e5200af88f31271d389e944 (patch)
treedbdd813186bb12103fe58020b5b169f489dba37f
parent7c57f524f389d7aa481af168beb2de2467db5724 (diff)
downloadvyatta-cfg-e72c4708669e0b837e5200af88f31271d389e944.tar.gz
vyatta-cfg-e72c4708669e0b837e5200af88f31271d389e944.zip
make validate_ipv6net consistent with others. validateType decides whether
to print an error message if it's called with the quiet flag off
-rwxr-xr-xlib/Vyatta/TypeChecker.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Vyatta/TypeChecker.pm b/lib/Vyatta/TypeChecker.pm
index d6c470d..321e9f9 100755
--- a/lib/Vyatta/TypeChecker.pm
+++ b/lib/Vyatta/TypeChecker.pm
@@ -223,13 +223,11 @@ sub validate_ipv6net {
my $ipv6_addr = $1;
my $prefix_length = $2;
if ($prefix_length < 0 || $prefix_length > 128) {
- print "Invalid prefix length: $prefix_length\n";
return 0;
}
return validate_ipv6($ipv6_addr);
} else {
- print "\"$value\" is not a valid IPv6 prefix\n";
return 0;
}
}