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 #1766] Error with Ipblocks with more than one
Ipblock attribute ([email protected])
2. [Netdot - Feature #1767] (New) Include Entity name (from
WHOIS query) in BGP Peer Nagios check service definition
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Thu, 11 Jul 2013 02:47:03 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1766] Error with Ipblocks with
more than one Ipblock attribute
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1766 has been updated by Matej Vadnjal.
Well, the patch fixed the problem with Ipblock attributes. But now other things
are broken. For example:
netdot/management/?page=VLANS
<pre>
System error
error: Can't call method "address_numeric" without a package or object
reference at /opt/netdot/htdocs/generic/sortresults.mhtml line 158.
context:
...
153: $n_ips++ if NetAddr::IP->new($lbl);
154: $n_numbers++ if $lbl =~ /^[-+]?\d+$/;
155: push @lbls, [$obj , $lbl];
156: }
157: if ( $n_ips == @lbls ){
158: @lbls = sort {
159: $a->[0]->$sort_field->address_numeric <=>
160: $b->[0]->$sort_field->address_numeric
161: } @lbls;
...
code stack: /opt/netdot/htdocs/generic/sortresults.mhtml:157
/opt/netdot/htdocs/management/vlan.html:110
/opt/netdot/htdocs/management/index.html:14
/opt/netdot/htdocs/management/autohandler:81
/usr/share/perl5/HTML/Mason/Request.pm:936
/opt/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21
/opt/netdot/htdocs/autohandler:76
</pre>
The problem is this is true if $lbl is an integer as is the case with VLANs:
<pre>
if NetAddr::IP->new($lbl);
</pre>
NetAddr::IP can accept a lot of things and interpret them as IP addresses
though there might be a way to force it to accept only certain formats.
----------------------------------------
Bug #1766: Error with Ipblocks with more than one Ipblock attribute
https://osl.uoregon.edu/redmine/issues/1766#change-3092
Author: Matej Vadnjal
Status: Resolved
Priority: Normal
Assignee:
Category:
Target version:
Resolution:
If you have an Ipblock with two or more custom attributes assigned, you get the
following error when you click on Attributes tab
(http://<host>/netdot/management/ip.html?id=1549&view=Attributes):
<pre>
System error
error: Can't locate object method "address_numeric" via package
"Netdot::Model::IpblockAttrName" at
/opt/netdot/htdocs/generic/sortresults.mhtml line 163.
context:
...
158: $alpha = 1;
159: }
160: push @lbls, [$obj , $lbl];
161: }
162: if ( $ip ){
163: @lbls = sort {
164: $a->[0]->$sort_field->address_numeric <=>
165: $b->[0]->$sort_field->address_numeric
166: } @lbls;
...
code stack: /opt/netdot/htdocs/generic/sortresults.mhtml:162
/opt/netdot/htdocs/management/ip.html:1711
/opt/netdot/htdocs/management/autohandler:81
/usr/share/perl5/HTML/Mason/Request.pm:936
/opt/netdot/htdocs/masondata/obj/991023240/management/autohandler.obj:21
/opt/netdot/htdocs/autohandler:76
</pre>
I belive the problem is in the regex in line 150 of sortresults.mhtml:
<pre>
if ( $ref =~ /Ipblock/o ){
$ip = 1;
}
</pre>
--
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
------------------------------
Message: 2
Date: Thu, 11 Jul 2013 10:12:36 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Feature #1767] (New) Include Entity
name (from WHOIS query) in BGP Peer Nagios check service definition
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1767 has been reported by Carlos Vicente.
----------------------------------------
Feature #1767: Include Entity name (from WHOIS query) in BGP Peer Nagios check
service definition
https://osl.uoregon.edu/redmine/issues/1767
Author: Carlos Vicente
Status: New
Priority: High
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.5
Resolution:
The information is already in the DB. Right now, the provided plugin queries
WHOIS when the state becomes critical, which wouldn't be necessary after this
change.
--
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 76, Issue 6
*******************************************