diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-16 09:53:57 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-16 09:53:57 -0700 |
commit | ac7832987028d915b92abd718d2bc5212d301e8b (patch) | |
tree | 95b1ce445c3d346da3c59453531d55a6c5250945 /scripts | |
parent | a4e3b533d7919e34b8b5e7fd42d423b3caec7500 (diff) | |
download | vyatta-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-x | scripts/vyatta_quagga_utils.pl | 2 |
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. ", |