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 #1655] (Resolved) First login after Apache
      restart fails ([email protected])
   2. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC2-22-ge2e5308 (Apache)
   3. [Netdot - Bug #1654] (Resolved) Cannot use "use lib"      in
      Apache configuration ([email protected])
   4. [SCM] Netdot Git repository branch netdot-1.0     updated.
      netdot-1.0.1-RC2-24-g00fd9c3 (Apache)
   5. [Netdot - Bug #1620] (Resolved) Juniper Link      Detection
      ([email protected])
   6. [SCM] Netdot Git repository annotated tag netdot-1.0.1-RC3
      created. netdot-1.0.1-RC3 (Apache)
   7. [Netdot] 'DownLoad' wiki page has been updated
      ([email protected])
   8. [Netdot] '101RC3 ChangeLog' wiki page has been added
      ([email protected])
   9. [Netdot] 'DownLoad' wiki page has been updated
      ([email protected])


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

Message: 1
Date: Fri, 13 Jul 2012 07:53:30 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1655] (Resolved) First login
        after   Apache restart fails
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1655 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.1-RC3
Resolution set to fixed

Thank you for the report. I have not seen the same behavior in my installs, but 
I see that AuthLocal.pm should be have a "use Netdot::Model" line. This has 
been added and will be available in the next candidate release. 

----------------------------------------
Bug #1655: First login after Apache restart fails
https://osl.uoregon.edu/redmine/issues/1655

Author: Matej Vadnjal
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: 
Target version: 1.0.1-RC3
Resolution: fixed


After restarting apache the first login attempt always fails. All subsequent 
logins succede (if correct credentials are provided of course).

This is written to Apache error_log on first login, and first login only:

<pre>
[Wed Jul 11 09:18:58 2012] [error] authentication error code: Can't locate 
object method "search" via 
package "Person" (perhaps you forgot to load "Person"?) at 
/usr/local/netdot/lib/Netdot/AuthLocal.pm line 
14.\n
</pre>

I'm using local authentication.

Apache/2.2.15
mod_perl/2.0.4
Perl/v5.10.1
CentOS 6.2
Netdot 1.0.1 RC2



-- 
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: Fri, 13 Jul 2012 08:08:38 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC2-22-ge2e5308
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  e2e530838140ae3353ac101504945693357bb56e (commit)
       via  742d7ed65c19923f63a97bf1b6015f301afe6e8c (commit)
       via  710375225f8a1c38e8c89fa5c6e329c5f8767c0d (commit)
      from  346446078be87630df6410d98d0d202bf35418e3 (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 e2e530838140ae3353ac101504945693357bb56e
Author: Carlos Vicente <[email protected]>
Date:   Fri Jul 13 11:08:26 2012 -0400

    Fix for #1654 (Cannot use 'use lib' in Apache configuration)

diff --git a/etc/netdot_apache2_ldap.conf b/etc/netdot_apache2_ldap.conf
index 37f3f83..ff5857c 100644
--- a/etc/netdot_apache2_ldap.conf
+++ b/etc/netdot_apache2_ldap.conf
@@ -24,9 +24,10 @@ PerlModule HTML::Mason::ApacheHandler
 # about an 'undefined symbol'
 LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so
 
-<Perl>
-use lib qw( <<Make:PREFIX>>/lib );
+# Add Netdot's libraries to @INC
+PerlSwitches -I<<Make:PREFIX>>/lib
 
+<Perl>
 # Set up the Mason handler and global variables and import modules.
 use Netdot::Mason;
 
diff --git a/etc/netdot_apache2_radius.conf b/etc/netdot_apache2_radius.conf
index 40baff6..37b18d4 100644
--- a/etc/netdot_apache2_radius.conf
+++ b/etc/netdot_apache2_radius.conf
@@ -24,9 +24,10 @@ PerlModule HTML::Mason::ApacheHandler
 # about an 'undefined symbol'
 LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so
 
-<Perl>
-use lib qw( <<Make:PREFIX>>/lib );
+# Add Netdot's libraries to @INC
+PerlSwitches -I<<Make:PREFIX>>/lib
 
+<Perl>
 # Set up the Mason handler and global variables and import modules.
 use Netdot::Mason;
 

commit 742d7ed65c19923f63a97bf1b6015f301afe6e8c
Author: Carlos Vicente <[email protected]>
Date:   Fri Jul 13 11:04:03 2012 -0400

    Fix for #1654 (Cannot use 'use lib' in Apache configuration)

diff --git a/etc/netdot_apache2_local.conf b/etc/netdot_apache2_local.conf
index 888f820..1205d51 100644
--- a/etc/netdot_apache2_local.conf
+++ b/etc/netdot_apache2_local.conf
@@ -24,9 +24,10 @@ PerlModule HTML::Mason::ApacheHandler
 # about an 'undefined symbol'
 LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so
 
-<Perl>
-use lib qw( <<Make:PREFIX>>/lib );
+# Add Netdot's libraries to @INC
+PerlSwitches -I<<Make:PREFIX>>/lib
 
+<Perl>
 # Set up the Mason handler and global variables and import modules.
 use Netdot::Mason;
 

commit 710375225f8a1c38e8c89fa5c6e329c5f8767c0d
Author: Carlos Vicente <[email protected]>
Date:   Fri Jul 13 10:47:04 2012 -0400

    Fix for #1655 (First login after Apache restart fails)

diff --git a/lib/Netdot/AuthLocal.pm b/lib/Netdot/AuthLocal.pm
index b1e4b1b..fdbed16 100644
--- a/lib/Netdot/AuthLocal.pm
+++ b/lib/Netdot/AuthLocal.pm
@@ -1,6 +1,8 @@
 package Netdot::AuthLocal;
+
 use strict;
 use warnings;
+use Netdot::Model;
 
 sub check_credentials {
     my ($r, $username, $password) = @_;
@@ -31,7 +33,7 @@ __END__
 
 =head1 NAME
 
-Netdot::AuthenLocal - Local authentication module for Netdot via 
Apache2::SiteControl
+Netdot::AuthLocal - Local authentication module for Netdot via 
Apache2::SiteControl
 
 
 =head1 SYNOPSIS

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

Summary of changes:
 etc/netdot_apache2_ldap.conf   |    5 +++--
 etc/netdot_apache2_local.conf  |    5 +++--
 etc/netdot_apache2_radius.conf |    5 +++--
 lib/Netdot/AuthLocal.pm        |    4 +++-
 4 files changed, 12 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 3
Date: Fri, 13 Jul 2012 08:08:43 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1654] (Resolved) Cannot use
        "use lib"       in Apache configuration
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1654 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version changed from 1.0.1-RC2 to 1.0.1-RC3
Resolution set to fixed

This problem comes from time to time from CentOS/RedHat users, and the proposed 
solution was to make sure that mod_perl was loaded by Apache before the Netdot 
config (See: https://osl.uoregon.edu/redmine/issues/640). However, since this 
approach seems to avoid that problem, and it works anyways, I have modified all 
the netdot_apache2_*.conf files to use it.

Thank you.
----------------------------------------
Bug #1654: Cannot use "use lib" in Apache configuration
https://osl.uoregon.edu/redmine/issues/1654

Author: Matej Vadnjal
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: 
Target version: 1.0.1-RC3
Resolution: fixed


netdot_apache2_*.conf files contain "use lib" to setup path to Netdot Perl 
modules, but this does not work for me. When visiting <server>/netdot/ in 
browser, Apache returns 403 code and writes this to error_log:

<pre>
[Mon Jul 09 13:22:33 2012] [error] [client ::1] failed to resolve handler 
`Netdot::Mason': Can't locate 
Netdot/Mason.pm in @INC (@INC contains: /usr/local/lib64/perl5 
/usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 
/usr/share/perl5 . /etc/httpd) 
at (eval 61) line 3.\n
</pre>

(Notice absence of any netdot dirs in @INC)

I'm using stock netdot_apache2_local.conf which contains:

<pre>
<Perl>
  use lib qw( /usr/local/netdot/lib );
  use Netdot::Mason;
...
</Perl>
</pre>


According to this post [http://stackoverflow.com/a/2664454] "use lib" does not 
work in Apache configuration and PerlSwitches should be used. Relevant mod_perl 
documentation:
http://perl.apache.org/docs/2.0/user/config/config.html#Adjusting_C__INC_

I added:

<pre>
PerlSwitches -I/usr/local/netdot/lib
</pre>

to the top of my configuration file and removed "use lib". After Apache 
restart, netdot web interface works!

Apache/2.2.15
mod_perl/2.0.4
Perl/v5.10.1
CentOS 6.2
Netdot 1.0.1 RC2



-- 
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: Fri, 13 Jul 2012 10:34:48 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository branch netdot-1.0
        updated. netdot-1.0.1-RC2-24-g00fd9c3
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  00fd9c3e7fa92032a7b903be2d83b6bc9c54d28f (commit)
       via  d29cd6be4d4c78367394b35a1c0d56d00b1e38e7 (commit)
      from  e2e530838140ae3353ac101504945693357bb56e (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 00fd9c3e7fa92032a7b903be2d83b6bc9c54d28f
Author: Carlos Vicente <[email protected]>
Date:   Fri Jul 13 13:34:36 2012 -0400

    Fix for #1620 (Juniper link detection)

diff --git a/lib/Netdot/Topology.pm b/lib/Netdot/Topology.pm
index 3baf951..1b7c1c9 100644
--- a/lib/Netdot/Topology.pm
+++ b/lib/Netdot/Topology.pm
@@ -372,7 +372,9 @@ sub get_dp_links {
            }else{
                my $iface = Interface->retrieve($ints[0]);
                $rem_dev = $iface->device;
-               if ( $iface->type eq 'propVirtual' || $iface->type eq 'l2vlan' 
){
+               my $iftype = $iface->type;
+               if ( $iftype eq 'propVirtual' || $iftype eq '53' ||
+                    $iftype eq 'l2vlan' || $iftype eq '135' ){
                    # Ignore virtual interfaces, but do set the remote device
                }else{
                    # This should be good then
@@ -819,7 +821,8 @@ sub get_fdb_links {
                        foreach my $int ( $physaddr->interfaces() ){
                            # The idea is that there could be multiple 
interfaces using the same
                            # MAC address.  Our goal is to ignore the vitual 
ones.
-                           next if ( $int->type && ($int->type eq 
'propVirtual' || $int->type eq 'l2vlan') );
+                           next if ( $int->type && ($int->type eq 
'propVirtual' || $int->type eq '53' ||
+                                                    $int->type eq 'l2vlan' || 
$int->type eq '135' ) );
                            push @other_links, ['single-entry', $interface, 
$int];
                            last;
                        }
@@ -1112,10 +1115,22 @@ sub get_p2p_links {
        my @ints;
        foreach my $ip ( @ips ){
            if ( $ip->interface ){
-               my $type = $ip->interface->type || 'unknown';
                # Ignore virtual interfaces, sice most likely these
                # are not where the actual physical connection happens
-               push @ints, $ip->interface if ( $type ne 'propVirtual' && $type 
ne 'l2vlan' );
+               my $type = $ip->interface->type || 'unknown';
+               next if ( $type eq 'l2vlan' || $type eq '135' );
+               if ( $type eq 'propVirtual' || $type eq '53' ){
+                   my $ifname = $ip->interface->name;
+                   if ( $ifname  =~ s/\.\d+$// ){
+                       # Looks like a sub-interface. Is there a matching 
physical interface?
+                       my $dev = $ip->interface->device;
+                       if ( my $physif = Interface->search(device=>$dev, 
name=>$ifname)->first ){
+                           push @ints, $physif;
+                       }
+                   }
+               }else{
+                   push @ints, $ip->interface;
+               }
            }
        }
        if ( scalar(@ints) == 2 ){

commit d29cd6be4d4c78367394b35a1c0d56d00b1e38e7
Author: Carlos Vicente <[email protected]>
Date:   Fri Jul 13 13:34:08 2012 -0400

    Fix incorrect handling of module numbers in Device class

diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index 359c477..5a31daf 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -705,8 +705,8 @@ sub get_snmp_info {
     }
 
     if ( $self->config->get('GET_DEVICE_MODULE_INFO') ){
-       push @SMETHODS, qw( e_type e_parent e_name e_class e_pos e_descr
-                            e_hwver e_fwver e_swver e_model e_serial e_fru );
+       push @SMETHODS, qw( e_index e_type e_parent e_name e_class e_pos e_descr
+                            e_hwver e_fwver e_swver e_model e_serial e_fru);
     }
 
     if ( $args{bgp_peers} || $self->config->get('ADD_BGP_PEERS')) {
@@ -751,7 +751,7 @@ sub get_snmp_info {
        if ( defined $dev{_sclass} && $dev{_sclass} =~ /Airespace/o ){
            $first_idx = 1;
        }else{
-           $first_idx = (sort { $a <=> $b } keys %{$hashes{'e_descr'}})[0];
+           $first_idx = (sort { $a <=> $b } values %{$hashes{'e_index'}})[0];
        }
        $dev{productname}  = $hashes{'e_descr'}->{$first_idx} ;
        $dev{part_number}  = $hashes{'e_model'}->{$first_idx};
@@ -944,7 +944,7 @@ sub get_snmp_info {
 
     if ( $self->config->get('GET_DEVICE_MODULE_INFO') ){
        foreach my $key ( keys %{ $hashes{e_class} } ){
-           $dev{module}{$key}{number} = $key;;
+           $dev{module}{$key}{number} = $hashes{e_index}->{$key};
            foreach my $field ( keys %MFIELDS ){
                my $method = $MFIELDS{$field};
                my $v = $hashes{$method}->{$key};

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

Summary of changes:
 lib/Netdot/Model/Device.pm |    8 ++++----
 lib/Netdot/Topology.pm     |   23 +++++++++++++++++++----
 2 files changed, 23 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Netdot Git repository


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

Message: 5
Date: Fri, 13 Jul 2012 10:36:00 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1620] (Resolved) Juniper Link
        Detection
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1620 has been updated by Carlos Vicente.

Category set to DeviceManagement
Status changed from New to Resolved
Assignee set to Carlos Vicente
Target version set to 1.0.1-RC3
Resolution set to fixed

Thank you for the report.
----------------------------------------
Bug #1620: Juniper Link Detection
https://osl.uoregon.edu/redmine/issues/1620

Author: Drew G
Status: Resolved
Priority: Normal
Assignee: Carlos Vicente
Category: DeviceManagement
Target version: 1.0.1-RC3
Resolution: fixed


We're in the process of testing out a new JunOS router. With it, when 
you configure an IP on an interface, even in routed mode it sets that IP 
on a sub/virtual interface:

ge-0/0/1 - physical link
ge-0/0/1.0 - Where the IP resides

Because of this, Netdot sees the interface with the IP as a propVirtual 
interface and doesn't automatically link them. Obviously I can't just 
patch my copy to allow it to accept virtuals as there are plenty more 
across the network. But is there some other way to determine this link 
is valid and have it be considered?

The IP subnet is a /30, it is the only one on the interface, but it's 
JunOS' configuration and it sets everything up as a virtual interface.


-- 
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: 6
Date: Fri, 13 Jul 2012 11:11:24 -0700
From: Apache <[email protected]>
Subject: [Netdot-devel] [SCM] Netdot Git repository annotated tag
        netdot-1.0.1-RC3 created. netdot-1.0.1-RC3
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 annotated tag, netdot-1.0.1-RC3 has been created
        at  254f8febb0b32c2b5a507620315092a959ef5a1e (tag)
   tagging  00fd9c3e7fa92032a7b903be2d83b6bc9c54d28f (commit)
  replaces  netdot-1.0.1-RC2
 tagged by  Carlos Vicente
        on  Fri Jul 13 14:11:01 2012 -0400

- Log -----------------------------------------------------------------
New release candidate of Netdot 1.0.1

Carlos Vicente (24):
      Ignore values with non-ascii characters when retrieving module info
      Ignore values with non-ascii characters when retrieving module info
      Added missing colons in host page
      Deal with CIDR addresses properly when calling Ipblock->insert
      Allow underscore also after a dot in RR label
      Disable RRMX validation when importing a zone
      Fixed typo in Topology.pm
      Deal with interfaces without a name when generating DNS records
      Added Mysql commands to speed up upgrade
      Correction in SQL query
      Correction in ARP/FWT collection logic
      Fix for #1647 (Database upgrade failure). Script needs to retrieve 
existing products before inserting new ones
      Avoid Perl warnings
      Avoid Perl warnings
      Fix for #1650 build_topo_graph.pl - missing default variable
      Remove unnecessary Mason section
      Fix for #1648 (Error when adding backbone cable strand)
      Fix for #1653 (unable to enable dhcp on ip block)
      Feature #1652 (Add support for LDAP over TLS)
      Fix for #1655 (First login after Apache restart fails)
      Fix for #1654 (Cannot use 'use lib' in Apache configuration)
      Fix for #1654 (Cannot use 'use lib' in Apache configuration)
      Fix incorrect handling of module numbers in Device class
      Fix for #1620 (Juniper link detection)

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


hooks/post-receive
-- 
Netdot Git repository


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

Message: 7
Date: Fri, 13 Jul 2012 11:42:52 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot] 'DownLoad' wiki page has been updated
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


The 'DownLoad' wiki page has been updated by Carlos Vicente.


DownLoad:
https://osl.uoregon.edu/redmine/projects/netdot/wiki/DownLoad
View differences:
https://osl.uoregon.edu/redmine/projects/netdot/wiki/DownLoad/diff/45

-- 
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: 8
Date: Fri, 13 Jul 2012 11:44:37 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot] '101RC3 ChangeLog' wiki page has been
        added
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


The '101RC3 ChangeLog' wiki page has been added by Carlos Vicente.


https://osl.uoregon.edu/redmine/projects/netdot/wiki/101RC3_ChangeLog

-- 
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: 9
Date: Fri, 13 Jul 2012 11:51:45 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot] 'DownLoad' wiki page has been updated
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


The 'DownLoad' wiki page has been updated by Carlos Vicente.


DownLoad:
https://osl.uoregon.edu/redmine/projects/netdot/wiki/DownLoad
View differences:
https://osl.uoregon.edu/redmine/projects/netdot/wiki/DownLoad/diff/46

-- 
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 64, Issue 10
********************************************

Reply via email to