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 #1828] Topology ([email protected])
   2. [Netdot - Bug #1828] Topology ([email protected])
   3. [Netdot - Bug #1830] (New) UI interface Backbone  cable
      ([email protected])
   4. [Netdot - Bug #1830] UI interface Backbone cable
      ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Tue, 1 Jul 2014 14:44:01 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1828] Topology
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1828 has been updated by Brian Candler.


What type of devices? Are they using CDP or LLDP?

Try "updatedevices.pl -T -d" to get debugging information about the processing 
of the topology information.

It could also be a problem with SNMP::Info collecting the data from the 
devices. e.g. I recently found a problem which prevents SNMP::Info working with 
Netgear and Dell switches (message linked from issue #1816). Try running the 
following Perl script to show the raw LLDP information collected and see if it 
makes sense:

<pre>
use SNMP::Info;
#use Data::Dumper;

 my $lldp = new SNMP::Info (
                             AutoSpecify => 1,
                             Debug       => 1,
                             DestHost    => $ARGV[0] || '127.0.0.1',
                             Community   => $ARGV[1] || 'public',
                             Version     => 2
                           );

 my $class = $lldp->class();
 print " Using device sub class : $class\n";

 $haslldp   = $lldp->hasLLDP() ? 'yes' : 'no';

 # Print out a map of device ports with LLDP neighbors:
 my $interfaces    = $lldp->interfaces();
 my $lldp_if       = $lldp->lldp_if();
 my $lldp_ip       = $lldp->lldp_ip();
 my $lldp_port     = $lldp->lldp_port();
#print Dumper($interfaces,$lldp_if,$lldp_ip,$lldp_port);

 foreach my $lldp_key (keys %$lldp_ip){
    my $iid           = $lldp_if->{$lldp_key};
    my $port          = $interfaces->{$iid};
    my $neighbor      = $lldp_ip->{$lldp_key};
    my $neighbor_port = $lldp_port->{$lldp_key};
    print "Port : $port connected to $neighbor / $neighbor_port\n";
 }
</pre>

Furthermore, Netdot also has problems tying up the "remote interface" with the 
ifName, because by default it only stores ifDescr not ifName as the "name" 
field. This is also described in issue #1816. The workaround is to set 
IFNAME_SHORT=>1 in Site.conf (so it stores ifName instead of ifDescr).
----------------------------------------
Bug #1828: Topology
https://osl.uoregon.edu/redmine/issues/1828#change-3222

Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


Hello,
When i am discovering the topology using bin/updatedevices.pl -T or during cron 
job the topology change every time the command is done, sometime with the good 
topology sometimes not.
In my network I have snmpv2 and v3, could it be the problem?
I don't know how to help you to find what is the problem, and for that I'm 
sorry.
Do you have any idea of what could it be and can you help me?


-- 
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: Wed, 2 Jul 2014 01:36:56 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1828] Topology
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1828 has been updated by Marc CYPRIEN.


My device are CIsco and Dell, they are using lldp.
updatedevices.pl -T -d gets the following error :
<pre>
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) NOSUCHOBJECT at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::_global(description) NOSUCHOBJECT at /usr/local/netdot/lib/Netdot/Mo
del/Device.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) (noSuchName) There is no such variable name in this
MIB. at /usr/local/netdot/lib/Netdot/Model/Device.pm line 3920
SNMP::Info::_global(description) (noSuchName) There is no such variable name in
this MIB. at /usr/local/netdot/lib/Netdot/Model/Device.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
SNMP::Info::_global(layers) Timeout at /usr/local/netdot/lib/Netdot/Model/Device
.pm line 3920
SNMP::Info::_global(description) Timeout at /usr/local/netdot/lib/Netdot/Model/D
evice.pm line 3920
SNMP::Info::specify() - Could not get info from device at /usr/local/netdot/lib/
Netdot/Model/Device.pm line 3920
</pre>

I don't really know what is the meaning of this... and the output is:
<pre>
DEBUG - Device::get_base_macs_from_all: Retrieving all Device MACs...
DEBUG - Device::get_if_macs_from_all: Retrieving all Interface MACs...
DEBUG - Topology::get_tree_stp_links: Determining topology for STP tree with roo
t at 00502A8EAC00
DEBUG - Topology::get_tree_stp_links: Determining topology for STP tree with roo
t at D067E5950A4F
DEBUG - Topology::get_tree_stp_links: Found link: 9076 -> 9288
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Found link: 10178 -> 8437
DEBUG - Topology::get_tree_stp_links: Found link: 8589 -> 9288
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Found link: 2625 -> 3870
DEBUG - Topology::get_tree_stp_links: Found link: 8591 -> 8437
DEBUG - Topology::get_tree_stp_links: Designated bridge D067E5950B17 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Found link: 5119 -> 3274
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge D067E5950A4F not found
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Found link: 8494 -> 9235
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge D067E5950B17 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge D067E5950B17 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Found link: 5785 -> 3848
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge D067E5950A4F not found
DEBUG - Topology::get_tree_stp_links: Found link: 2046 -> 3881
DEBUG - Topology::get_tree_stp_links: Found link: 1456 -> 3859
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_tree_stp_links: Designated bridge 000ED6EE2000 not found
DEBUG - Topology::get_stp_links: 10 Links determined in 0 sec
DEBUG - PhysAddr::from_interfaces: Retrieving all Interface MACs...
DEBUG - Physaddr::from_interfaces: ...done
DEBUG - PhysAddr::from_devices: Retrieving all Device MACs...
DEBUG - Physaddr::from_devices: ...done
DEBUG - PhysAddr::from_interfaces: Retrieving all Interface MACs...
DEBUG - Physaddr::from_interfaces: ...done
DEBUG - FDB_COMPLETENESS_RATIO > 0.25
DEBUG - Discovering how vlan 1 was connected at 2014-07-02 09:00:02
DEBUG - vlan 1 has 31 devices at time 2014-07-02 09:00:02
DEBUG - Creating a hash of addresses keyed by device
DEBUG -   Breaking devices up into separate layer2 networks
DEBUG -  31 devices
DEBUG -     615 addresses on device dell
DEBUG -     498 addresses on device dell
DEBUG -     300 addresses on device cisco1
DEBUG -     285 addresses on device cisco2
DEBUG -     245 addresses on device cisco
DEBUG -     244 addresses on device dell
DEBUG -     238 addresses on device cisco
DEBUG -     235 addresses on device cisco
DEBUG -     234 addresses on device dell
DEBUG -     223 addresses on device cisco
DEBUG -     210 addresses on device cisco
DEBUG -     209 addresses on device cisco
DEBUG -     168 addresses on device cisco
DEBUG -     160 addresses on device dell
DEBUG -     146 addresses on device dell
DEBUG -     143 addresses on device cisco
DEBUG -     127 addresses on device cisco
DEBUG -     125 addresses on device dell
DEBUG -     119 addresses on device dell
DEBUG -     106 addresses on device dell
DEBUG -     102 addresses on device dell
DEBUG -     79 addresses on device dell
DEBUG -     71 addresses on device dell
DEBUG -     42 addresses on device cisco
DEBUG -     28 addresses on device cisco
DEBUG -     27 addresses on device cisco
DEBUG -     9 addresses on device cisco
DEBUG -     9 addresses on device cisco
DEBUG -     5 addresses on device cisco
DEBUG -     3 addresses on device cisco
DEBUG -     2 addresses on device cisco
DEBUG -   This group has: <devices>
DEBUG -   This group has: cisco1, cisco2
DEBUG -   We now have 2 groups
DEBUG -   Universal contains: D067E5ACB26B, D067E5B1692B, 000F8F3D6300, 000D285F
5F40, 000F8F07ECC0, 000E838E8640, F8B1562FB3B8, 000E838EA540, 0007EB681DC0, 000E
D6EE2000, D067E5A98270, D067E5A98264, D067E59CABC3, 00A09821EEF1, F8B1560564B3,
00A09821BC14, 001AE2BFE900, D067E5A98449, D067E5A98276, 000F8F243F80, 00131A8D28
C0, 000F8F080480, 000F8F3D6200, 000F8F3D87C0, 000F8F07EDC0, D067E595101E, 
000F8F3
D6B00, D067E59CABAE, D067E5950B17
DEBUG -   Starting interface checks
DEBUG -    0 possible links
DEBUG -   Universal contains: 00A09821F7BB, 00A0982211BB
DEBUG -   Starting interface checks
DEBUG -    0 possible links
DEBUG - Topology::get_fdb_links: Found link (single-entry): cisco [G
igabitEthernet0/1] -> cisco [GigabitEthernet0/2]
DEBUG - Topology::get_fdb_links: Found link (single-entry): cisco [G
igabitEthernet0/2] -> cisco [GigabitEthernet0/49]
DEBUG - Topology::get_fdb_links: Found link (single-entry): cisco [ Link 
Aggregate 1] -> cisco [Slot: 0 Port: 1 Gigabit - Level]
DEBUG - Topology::get_fdb_links: Found link (single-entry): cisco [sho
rt wave fiber gigabit ethernet] -> c001-3.admin.local [GigabitEthernet0/1]
DEBUG - Topology::get_fdb_links: Found link (single-entry): cisco [vla
n ] -> r001.admin.local [vlan ]
...
etc
...
</pre>

and I also get this warning during execution :
<pre>
WARN - Topology::get_dp_links: cisco [GigabitEthernet0/1]: Port 3/1 not found 
in Device: cisco
WARN - Topology::get_dp_links: cisco [GigabitEthernet0/50]: Port 3/18 not found 
in Device: cisco
WARN - Topology::get_dp_links: cisco [GigabitEthernet0/1]: Port 3/7 not found 
in Device: cisco
WARN - Topology::get_dp_links: cisco [GigabitEthernet0/1]: Port 3/2 not found 
in Device: cisco
WARN - Topology::get_dp_links: cisco [GigabitEthernet0/1]: Port 3/12 not found 
in Device: cisco
WARN - Topology::get_dp_links: cisco [GigabitEthernet0/1]: Port 3/5 not found 
in Device: cisco
</pre>

I tried to execute the script you gave me but I get this error :
<pre>
[root@netdot netdot]# perl LLDP.pl xxx.xxx.xxx.xxx community
SNMP::Info::_global layers : SNMPv2-MIB::sysServices.0 : .1.3.6.1.2.1.1.7.0
SNMP::Info::_global description : SNMPv2-MIB::sysDescr.0 : .1.3.6.1.2.1.1.1.0
SNMP::Info::_global id : SNMPv2-MIB::sysObjectID.0 : .1.3.6.1.2.1.1.2.0
SNMP::Info 3.15
SNMP::Info::device_type() layers:00000010 id:9 sysDescr:"Cisco Systems WS-C6509 
Cisco Catalyst Operating System Software, Version 8.7(3) Copyright (c) 
1995-2009 by Cisco Systems "
Cannot find module (ENTITY-MIB): At line 0 in (none)
The ENTITY-MIB did not load. See README for SNMP::Info::Layer2::Catalyst
 at LLDP.pl line 4
</pre>

And how can I change the script to work with snmpv3?

I hope that something here help you to find my problem. I wait for your answer.



----------------------------------------
Bug #1828: Topology
https://osl.uoregon.edu/redmine/issues/1828#change-3223

Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


Hello,
When i am discovering the topology using bin/updatedevices.pl -T or during cron 
job the topology change every time the command is done, sometime with the good 
topology sometimes not.
In my network I have snmpv2 and v3, could it be the problem?
I don't know how to help you to find what is the problem, and for that I'm 
sorry.
Do you have any idea of what could it be and can you help me?


-- 
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: 3
Date: Wed, 2 Jul 2014 02:08:59 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1830] (New) UI interface
        Backbone        cable
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1830 has been reported by Marc CYPRIEN.

----------------------------------------
Bug #1830: UI interface Backbone cable
https://osl.uoregon.edu/redmine/issues/1830

Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


Hello again,
I have two sites S1 and S2
I created two cable from S1 to S1 in different floor. One is fiber and the 
other Cat6.
Now I try to see the backbone I have and Iselect S1 as beginning site and S1 as 
ending site and i obtained the following error:
<pre>
System error
error:          Can't call method "start_closet" on an undefined value at 
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.
context:        
...     
143:    . '&backbone_srch=' . $backbone_srch . '&cable_sort=owner&page_type=' . 
$page_type . '">Owner</a>' );
144:    
145:    foreach my $cable (@sorted_cables) {
146:    
147:    my $start_site = $cable->start_closet->room->floor->site if 
($cable->start_closet->room->floor);
148:    my $end_site = $cable->end_closet->room->floor->site if 
($cable->end_closet->room->floor);
149:    my $start_site_id = $start_site->id if ($start_site);
150:    my $end_site_id = $end_site->id if ($end_site);
151:    
...     
code stack:     
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml:147
/usr/local/netdot/htdocs/cable_plant/cable_plant.html:115
/usr/local/netdot/htdocs/cable_plant/autohandler:353
/usr/share/perl5/HTML/Mason/Request.pm:936
/usr/local/netdot/htdocs/masondata/obj/991023240/cable_plant/autohandler.obj:21
/usr/local/netdot/htdocs/autohandler:76
raw error




Can't call method "start_closet" on an undefined value at 
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "start_closet" 
on an undefined value at 
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.^J') 
called at /usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 
147
HTML::Mason::Commands::__ANON__('o', undef, 'MAX_SELECTION', 500, 'start_id', 
1, 'end_id', 3, 'page_type', 'BACKBONE', 'submit_site', 'Go!', 'backbone_srch', 
undef, 'backbone_id_srch', undef, 'edit', undef, 'site_srch', undef, 
'cable_sort', undef) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d95ff178)',
 'o', undef, 'MAX_SELECTION', 500, 'start_id', 1, 'end_id', 3, 'page_type', 
'BACKBONE', 'submit_site', 'Go!', 'backbone_srch', undef, 'backbone_id_srch', 
undef, 'edit', undef, 'site_srch', undef, 'cable_sort', undef) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'o', undef, 'MAX_SELECTION', 500, 
'start_id', 1, 'end_id', 3, 'page_type', 'BACKBONE', 'submit_site', 'Go!', 
'backbone_srch', undef, 'backbone_id_srch', undef, 'edit', undef, 'site_srch', 
undef, 'cable_sort', undef) called at 
/usr/local/netdot/htdocs/cable_plant/cable_plant.html line 115
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d6b8a158)',
 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!', 
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
 called at /usr/local/netdot/htdocs/cable_plant/autohandler line 353
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7fa3d9a32bc8)',
 'main', 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 
'end_id', 3, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm 
line 936
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)',
 'main', 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 
'end_id', 3, 'showheader', 1) called at 
/usr/local/netdot/htdocs/masondata/obj/991023240/cable_plant/autohandler.obj 
line 21
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d9a32bc8)',
 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!', 
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)',
 'showheader', 1) called at /usr/local/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d9961848)',
 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3) 
called at /usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!', 
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fa3d9861030)',
 'Apache2::RequestRec=SCALAR(0x7fa3da39be28)') called at 
/usr/local/netdot/lib/Netdot/Mason.pm line 59
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7fa3da39be28)') called at 
-e line 0
eval {...} at -e line 0

</pre>

And I get the same error when I select S2 as ending Site but there is no 
backbone cable in S2.
I only have the two backbone cable I mentionned previously.


-- 
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: 4
Date: Wed, 2 Jul 2014 02:22:57 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1830] UI interface Backbone
        cable
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1830 has been updated by Marc CYPRIEN.


I deleted both of them and created 2 other fiber cable between two floors of S1.
When I select from S1 to S1, there is no cable display but they appear on the 
graph.
----------------------------------------
Bug #1830: UI interface Backbone cable
https://osl.uoregon.edu/redmine/issues/1830#change-3224

Author: Marc CYPRIEN
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 
Resolution: 


Hello again,
I have two sites S1 and S2
I created two cable from S1 to S1 in different floor. One is fiber and the 
other Cat6.
Now I try to see the backbone I have and Iselect S1 as beginning site and S1 as 
ending site and i obtained the following error:
<pre>
System error
error:          Can't call method "start_closet" on an undefined value at 
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.
context:        
...     
143:    . '&backbone_srch=' . $backbone_srch . '&cable_sort=owner&page_type=' . 
$page_type . '">Owner</a>' );
144:    
145:    foreach my $cable (@sorted_cables) {
146:    
147:    my $start_site = $cable->start_closet->room->floor->site if 
($cable->start_closet->room->floor);
148:    my $end_site = $cable->end_closet->room->floor->site if 
($cable->end_closet->room->floor);
149:    my $start_site_id = $start_site->id if ($start_site);
150:    my $end_site_id = $end_site->id if ($end_site);
151:    
...     
code stack:     
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml:147
/usr/local/netdot/htdocs/cable_plant/cable_plant.html:115
/usr/local/netdot/htdocs/cable_plant/autohandler:353
/usr/share/perl5/HTML/Mason/Request.pm:936
/usr/local/netdot/htdocs/masondata/obj/991023240/cable_plant/autohandler.obj:21
/usr/local/netdot/htdocs/autohandler:76
raw error




Can't call method "start_closet" on an undefined value at 
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "start_closet" 
on an undefined value at 
/usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 147.^J') 
called at /usr/local/netdot/htdocs/cable_plant/cable_plant_backbone.mhtml line 
147
HTML::Mason::Commands::__ANON__('o', undef, 'MAX_SELECTION', 500, 'start_id', 
1, 'end_id', 3, 'page_type', 'BACKBONE', 'submit_site', 'Go!', 'backbone_srch', 
undef, 'backbone_id_srch', undef, 'edit', undef, 'site_srch', undef, 
'cable_sort', undef) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d95ff178)',
 'o', undef, 'MAX_SELECTION', 500, 'start_id', 1, 'end_id', 3, 'page_type', 
'BACKBONE', 'submit_site', 'Go!', 'backbone_srch', undef, 'backbone_id_srch', 
undef, 'edit', undef, 'site_srch', undef, 'cable_sort', undef) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'o', undef, 'MAX_SELECTION', 500, 
'start_id', 1, 'end_id', 3, 'page_type', 'BACKBONE', 'submit_site', 'Go!', 
'backbone_srch', undef, 'backbone_id_srch', undef, 'edit', undef, 'site_srch', 
undef, 'cable_sort', undef) called at 
/usr/local/netdot/htdocs/cable_plant/cable_plant.html line 115
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d6b8a158)',
 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!', 
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
 called at /usr/local/netdot/htdocs/cable_plant/autohandler line 353
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7fa3d9a32bc8)',
 'main', 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 
'end_id', 3, 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm 
line 936
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)',
 'main', 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 
'end_id', 3, 'showheader', 1) called at 
/usr/local/netdot/htdocs/masondata/obj/991023240/cable_plant/autohandler.obj 
line 21
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d9a32bc8)',
 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!', 
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 943
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)',
 'showheader', 1) called at /usr/local/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__('submit_site', 'Go!', 'start_id', 1, 
'page_type', 'BACKBONE', 'end_id', 3) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa3d9961848)',
 'submit_site', 'Go!', 'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3) 
called at /usr/share/perl5/HTML/Mason/Request.pm line 1279
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'submit_site', 'Go!', 
'start_id', 1, 'page_type', 'BACKBONE', 'end_id', 3) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 473
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 168
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa3d6b864e0)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 825
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fa3d9861030)',
 'Apache2::RequestRec=SCALAR(0x7fa3da39be28)') called at 
/usr/local/netdot/lib/Netdot/Mason.pm line 59
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7fa3da39be28)') called at 
-e line 0
eval {...} at -e line 0

</pre>

And I get the same error when I select S2 as ending Site but there is no 
backbone cable in S2.
I only have the two backbone cable I mentionned previously.


-- 
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 88, Issue 2
*******************************************

Reply via email to