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. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-76-g6dc17e3 (Apache)
   2. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC3-77-gcfab8af (Apache)


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

Message: 1
Date: Mon, 30 Jul 2012 12:14:23 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-76-g6dc17e3
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 Git repository".

The branch, netdot-1.0 has been updated
       via  6dc17e3308d5963494b212eaabd12d751206424f (commit)
      from  6d6bcbabc666e1596db44c6a3123d93cdeabaf25 (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 6dc17e3308d5963494b212eaabd12d751206424f
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 30 15:14:15 2012 -0400

    Added report for devices in snmp_down state

diff --git a/htdocs/reports/device_inventory.html 
b/htdocs/reports/device_inventory.html
index 039c91c..8697cf5 100644
--- a/htdocs/reports/device_inventory.html
+++ b/htdocs/reports/device_inventory.html
@@ -27,7 +27,8 @@ my (@headers, @rows) = ();
          <option value="product_monitored" <% ($report_type eq 
"product_monitored")?"SELECTED":"" %>>Type/Model (monitored)</option>
          <option value="site" <% ($report_type eq "site")?"SELECTED":"" 
%>>Site/Type/Model</option>
          <option value="os" <% ($report_type eq "os")?"SELECTED":"" 
%>>Model/OS</option>
-         <option value="downtime" <% ($report_type eq 
"downtime")?"SELECTED":"" %>>Downtime</option>
+         <option value="downtime" <% ($report_type eq 
"downtime")?"SELECTED":"" %>>In Scheduled Downtime</option>
+         <option value="snmp_down" <% ($report_type eq 
"snmp_down")?"SELECTED":"" %>>SNMP Down</option>
          <option value="duplex" <% ($report_type eq "duplex")?"SELECTED":"" 
%>>Duplex Mismatches</option>
          <option value="os_mismatches" <% ($report_type eq 
"os_mismatches")?"SELECTED":"" %>>OS Mismatches</option>
          </select>
@@ -235,6 +236,9 @@ if ( $report_type eq 'product' || $report_type eq 
'product_monitored' ){
 }elsif ( $report_type eq 'downtime' ){
     $m->comp('downtime.html');
 
+}elsif ( $report_type eq 'snmp_down' ){
+    $m->comp('snmp_down.html');
+
 
#######################################################################################
 }elsif ( $report_type eq 'duplex' ){
     $m->comp('duplex.html');
diff --git a/htdocs/reports/snmp_down.html b/htdocs/reports/snmp_down.html
new file mode 100644
index 0000000..bfd07df
--- /dev/null
+++ b/htdocs/reports/snmp_down.html
@@ -0,0 +1,33 @@
+<%doc>
+Devices in 'SNMP_Down' state
+</%doc>
+
+<%attr>
+title   => 'Devices in SNMP Down State' 
+section => 'Reports'
+</%attr>
+
+<%args>
+
+</%args>
+
+<%init>
+my $DEBUG = 0;
+if ( $DEBUG ){
+    print '%ARGS is  <pre>', Dumper(%ARGS), '</pre><br>';
+}
+my @devices = Device->search(snmp_down=>1);
+</%init>
+
+
+<div class="container">
+    <div class="containerhead">Devices in 'SNMP Down' State</div>
+    <div class="containerbody">
+%   if( @devices ){
+    <& ../generic/sortresults.mhtml, table => 'Device', object=>\@devices, 
view => "row", withdelete => 1, withedit => 1 &>
+%   }else{
+    None
+%   }
+    </div>
+</div>
+

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

Summary of changes:
 htdocs/reports/device_inventory.html             |    6 +++++-
 htdocs/reports/{downtime.html => snmp_down.html} |    8 ++++----
 2 files changed, 9 insertions(+), 5 deletions(-)
 copy htdocs/reports/{downtime.html => snmp_down.html} (70%)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 2
Date: Mon, 30 Jul 2012 15:36:34 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC3-77-gcfab8af
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 Git repository".

The branch, netdot-1.0 has been updated
       via  cfab8afc47723aaa997b6833f0b570c4012610d6 (commit)
      from  6dc17e3308d5963494b212eaabd12d751206424f (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 cfab8afc47723aaa997b6833f0b570c4012610d6
Author: Carlos Vicente <[email protected]>
Date:   Mon Jul 30 18:36:25 2012 -0400

    Fixed problem when adding IPv6 address in unpriv user interface

diff --git a/htdocs/user_management/add_host.html 
b/htdocs/user_management/add_host.html
index c625964..de19d41 100644
--- a/htdocs/user_management/add_host.html
+++ b/htdocs/user_management/add_host.html
@@ -36,6 +36,7 @@ $submit        => undef
 $contact_name  => undef
 $contact_email => undef
 $contact_phone => undef
+$v6_assign     => undef
 </%args>
 %
 %
@@ -86,7 +87,7 @@ if ( $submit ){
     if ( $address ){
        $args{address} = $address;
     }else{
-       if ( $block->version == 6 ){
+       if ( $block->version == 6 && $v6_assign eq 'manual' ){
            if ( $ui->config->get('IPV6_ADDRESS_USER_ENTRY_HOST_ONLY') ){
                # We need to construct the address
                my %parts;

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

Summary of changes:
 htdocs/user_management/add_host.html |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

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


End of Netdot-devel Digest, Vol 64, Issue 31
********************************************

Reply via email to