diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-05-24 15:38:46 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2010-05-24 15:38:46 -0700 |
commit | e72c4708669e0b837e5200af88f31271d389e944 (patch) | |
tree | dbdd813186bb12103fe58020b5b169f489dba37f | |
parent | 7c57f524f389d7aa481af168beb2de2467db5724 (diff) | |
download | vyatta-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-x | lib/Vyatta/TypeChecker.pm | 2 |
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; } } |