From ac7832987028d915b92abd718d2bc5212d301e8b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 16 Mar 2009 09:53:57 -0700 Subject: Fix confusion between net object and string Bug 4221 The function net->network() returns a new network object, rather than the string. Need to use cidr() to get the string representation. --- scripts/vyatta_quagga_utils.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta_quagga_utils.pl b/scripts/vyatta_quagga_utils.pl index b6fe5ce2..c59bc87e 100755 --- a/scripts/vyatta_quagga_utils.pl +++ b/scripts/vyatta_quagga_utils.pl @@ -19,7 +19,7 @@ sub check_prefix_boundry { my ($net, $network, $cidr); $net = new NetAddr::IP $prefix; - $network = $net->network(); + $network = $net->network()->cidr(); $cidr = $net->cidr(); die "Your prefix must fall on a natural network boundry. ", -- cgit v1.2.3