summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-16 09:53:57 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-16 09:53:57 -0700
commitac7832987028d915b92abd718d2bc5212d301e8b (patch)
tree95b1ce445c3d346da3c59453531d55a6c5250945 /scripts
parenta4e3b533d7919e34b8b5e7fd42d423b3caec7500 (diff)
downloadvyatta-cfg-quagga-ac7832987028d915b92abd718d2bc5212d301e8b.tar.gz
vyatta-cfg-quagga-ac7832987028d915b92abd718d2bc5212d301e8b.zip
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta_quagga_utils.pl2
1 files changed, 1 insertions, 1 deletions
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. ",