From e72c4708669e0b837e5200af88f31271d389e944 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Mon, 24 May 2010 15:38:46 -0700 Subject: make validate_ipv6net consistent with others. validateType decides whether to print an error message if it's called with the quiet flag off --- lib/Vyatta/TypeChecker.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/Vyatta') 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; } } -- cgit v1.2.3