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 #1809] (New) UI bug when viewing BGP        peers
      ([email protected])
   2. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.6-7-gc8ea633 ([email protected])
   3. [SCM] Netdot branch master updated.       netdot-1.0.6-7-gc8ea633
      ([email protected])
   4. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.6-8-g9b8b7fa ([email protected])


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

Message: 1
Date: Wed, 28 May 2014 12:46:46 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1809] (New) UI bug when viewing
        BGP     peers
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1809 has been reported by Carlos Vicente.

----------------------------------------
Bug #1809: UI bug when viewing BGP peers
https://osl.uoregon.edu/redmine/issues/1809

Author: Carlos Vicente
Status: New
Priority: High
Assignee: Carlos Vicente
Category: UserInterface
Target version: 1.0.7
Resolution: 


You need to pass a valid object or a table name Trace begun at 
/usr/local/netdot/lib/Netdot.pm line 105 
Netdot::throw_fatal('Netdot::UI=HASH(0x7f48caee29c0)', 'You need to pass a 
valid object or a table name') called at /usr/local/netdot/lib/Netdot/UI.pm 
line 330 Netdot::UI::form_field('Netdot::UI=HASH(0x7f48caee29c0)', 'object', 
undef, 'column', 'number', 'edit', undef, 'linkPage', 'view.html', 
'returnValOnly', 1) called at /usr/local/netdot/htdocs/management/device.html 
line 1216 HTML::Mason::Commands::__ANON__('view', 'BGP', 'id', 14, 
'showheader', 1, 'page', 'DEVICE') called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135 
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f489c555e50)',
 'view', 'BGP', 'id', 14, 'showheader', 1, 'page', 'DEVICE') called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1302 eval {...} at 
/usr/share/perl5/HTML/Mason/Request.pm line 1292 
HTML::Mason::Request::comp(undef, undef, undef, 'view', 'BGP', 'id', 14, 
'showhead!
 er', 1, 'page', 'DEVICE') called at /usr/share/perl5/HTML/Mason/Request.pm 
line 955 
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f489c5da9d8)',
 'page', 'DEVICE') called at /usr/local/netdot/htdocs/management/autohandler 
line 81 HTML::Mason::Commands::__ANON__('view', 'BGP', 'id', 14, 'showheader', 
1) called at /usr/share/perl5/HTML/Mason/Component.pm line 157 
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7f489c0cbe88)',
 'main', 'view', 'BGP', 'id', 14, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 948 
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7f489c5da9d8)',
 'main', 'view', 'BGP', 'id', 14, 'showheader', 1) called at 
/usr/local/netdot/htdocs/masondata/obj/1249759374/management/autohandler.obj 
line 21 HTML::Mason::Commands::__ANON__('view', 'BGP', 'id', 14, 'showheader', 
1) called at /usr/share/perl5/HTML/Mason/Component.pm line 135 HTML::Mason::C!
 omponent::run('HTML::Mason::Component::FileBased=HASH(0x7f489c0cbe88)'

, 'view', 'BGP', 'id', 14, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 1302 eval {...} at 
/usr/share/perl5/HTML/Mason/Request.pm line 1292 
HTML::Mason::Request::comp(undef, undef, undef, 'view', 'BGP', 'id', 14, 
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 955 
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f489c5da9d8)',
 'showheader', 1) called at /usr/local/netdot/htdocs/autohandler line 76 
HTML::Mason::Commands::__ANON__('view', 'BGP', 'id', 14) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 135 
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f489c0ec3f8)',
 'view', 'BGP', 'id', 14) called at /usr/share/perl5/HTML/Mason/Request.pm line 
1297 eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292 
HTML::Mason::Request::comp(undef, undef, undef, 'view', 'BGP', 'id', 14) called 
at /usr/share/perl5/HTML/Mason/Request.pm line 481 eval {...} at 
/usr/share/perl5!
 /HTML/Mason/Request.pm line 481 eval {...} at 
/usr/share/perl5/HTML/Mason/Request.pm line 433 
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f489c5da9d8)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165 
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f489c5da9d8)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831 
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f48cb052ca0)',
 'Apache2::RequestRec=SCALAR(0x7f489c564050)') called at 
/usr/local/netdot/lib/Netdot/Mason.pm line 59 
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7f489c564050)') called at 
-e line 0 eval {...} at -e line 0


-- 
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, 29 May 2014 06:47:09 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.6-7-gc8ea633
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".

The branch, netdot-1.0 has been updated
       via  c8ea633ab1240ef89a6228a22975092e35482262 (commit)
      from  3924b6950aec6b67196d1180ce739f2c2ec28cd6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c8ea633ab1240ef89a6228a22975092e35482262
Author: Carlos Vicente <[email protected]>
Date:   Thu May 29 09:46:57 2014 -0400

    Avoid error when inserting device if snmp_target is not set for whatever 
reason

diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index 7a1a918..787eaa7 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -3029,24 +3029,26 @@ sub info_update {
        $asset_args{product_id} = $dev_product->id;
        $asset = Asset->insert(\%asset_args);
     }else{
-       $dev_product = $self->_assign_product($info);   
+       $dev_product = $self->_assign_product($info);
     }
     $devtmp{asset_id} = $asset->id if $asset;
-    
+
 
     ##############################################################
     # Things to do only when creating the device
     if ( $argv{device_is_new} ){
-       
+
        $devtmp{snmp_version} = $info->{snmp_version} if exists 
$info->{snmp_version};
-       
+
        if ( $asset && $asset->product_id  ){
            my $val = $self->_assign_device_monitored($asset->product_id);
            $devtmp{monitored}    = $val;
            $devtmp{snmp_polling} = $val;
-           $devtmp{snmp_target}->update({monitored => $val});
+           if ( my $st = $devtmp{snmp_target} ){
+               $st->update({monitored => $val});
+           }
        }
-       
+
        if ( my $g = $self->_assign_monitor_config_group($info) ){
            $devtmp{monitor_config}       = 1;
            $devtmp{monitor_config_group} = $g;
@@ -3056,7 +3058,7 @@ sub info_update {
     ##############################################################
     # Spanning Tree
     $self->_update_stp_info($info, \%devtmp);
-    
+
     ##############################################################
     # Modules
     $self->_update_modules(

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

Summary of changes:
 lib/Netdot/Model/Device.pm | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 3
Date: Thu, 29 May 2014 06:47:39 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
        netdot-1.0.6-7-gc8ea633
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".

The branch, master has been updated
       via  c8ea633ab1240ef89a6228a22975092e35482262 (commit)
       via  3924b6950aec6b67196d1180ce739f2c2ec28cd6 (commit)
       via  a016937ebb9515c037e44940b0e0cc172b96f786 (commit)
       via  967066fd14ad12720bd96116e067e39eca1df09d (commit)
      from  591213b6a5bfc4ac59ff85756d969a9b27288c66 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 htdocs/generic/view.html   |  2 ++
 htdocs/header.mhtml        |  2 ++
 lib/Netdot/Model/Device.pm | 18 ++++++++++--------
 3 files changed, 14 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 4
Date: Thu, 29 May 2014 07:08:14 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.6-8-g9b8b7fa
To: [email protected]
Message-ID: <[email protected]>

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Netdot".

The branch, netdot-1.0 has been updated
       via  9b8b7fa16f375499340e7f6b34a4a811fd9cbc3a (commit)
      from  c8ea633ab1240ef89a6228a22975092e35482262 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9b8b7fa16f375499340e7f6b34a4a811fd9cbc3a
Author: Carlos Vicente <[email protected]>
Date:   Thu May 29 10:07:41 2014 -0400

    Sort report by site name

diff --git a/htdocs/reports/device_inventory.html 
b/htdocs/reports/device_inventory.html
index 217e73b..bdef45e 100644
--- a/htdocs/reports/device_inventory.html
+++ b/htdocs/reports/device_inventory.html
@@ -146,7 +146,7 @@ if ( $report_type eq 'product' || $report_type eq 
'product_monitored' ){
        $t{$site}{types}{$type}{prods}{$product}{count}++;
        $t{$site}{total}++;
     }
-    foreach my $site ( keys %t ){
+    foreach my $site ( sort { $t{$a}{name} cmp $t{$b}{name} } keys %t ){
        my $site_name = $t{$site}{name};
        my @hdr = ();
        push( @hdr, "<strong><a href=\"../generic/search_obj.html?".

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

Summary of changes:
 htdocs/reports/device_inventory.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Netdot


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

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 86, Issue 14
********************************************

Reply via email to