Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. [Netdot - Bug #1722] (New) Illegal division by zero with /31
IPv4 subnets ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Fri, 11 Jan 2013 06:50:05 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1722] (New) Illegal division by
zero with /31 IPv4 subnets
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1722 has been reported by Matej Vadnjal.
----------------------------------------
Bug #1722: Illegal division by zero with /31 IPv4 subnets
https://osl.uoregon.edu/redmine/issues/1722
Author: Matej Vadnjal
Status: New
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
If I try to define a /31 IPv4 prefix of type Subnet in Management -> Address
Space I get the following error:
@
error: Illegal division by zero at
/usr/local/netdot/htdocs/management/subnet.mhtml line 161.
context:
...
157: $cols = 16;
158: }
159:
160: my $num = ($mask == 31)? $net->num() : $net->num()+1;
161: for( my $i=0; $i<($num/$cols); $i++ ) {
162: my @row = ();
163:
164: for( my $j=0; $j<$cols; $j++ ) {
165: my $ip_addr = $net->addr;
...
code stack: /usr/local/netdot/htdocs/management/subnet.mhtml:161
/usr/local/netdot/htdocs/management/ip.html:1732
/usr/local/netdot/htdocs/management/autohandler:81
/usr/share/perl5/HTML/Mason/Request.pm:936
/usr/local/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21
/usr/local/netdot/htdocs/autohandler:76
@
The subnet is created in the database, but cannot be displayed. The exact same
error appears if I select a /31 subnet already defined in netdot.
/31 Subnets discovered by SNMP on routers are added to netdot fine. But again
cannot be "clicked on".
/31 Containers and Reserved work fine.
This is in version 1.0.4. I have a feeling this problem was not present in
1.0.1, but I'm not a 100% sure.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://osl.uoregon.edu/redmine/my/account
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 70, Issue 6
*******************************************