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 branch netdot-1.0 updated.
      netdot-1.0.6-49-g0e914f8 ([email protected])
   2. [SCM] Netdot branch master updated.       netdot-1.0.6-49-g0e914f8
      ([email protected])
   3. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.6-50-g7bdfac8 ([email protected])
   4. [SCM] Netdot branch netdot-1.0 updated.
      netdot-1.0.6-51-g73acf42 ([email protected])


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

Message: 1
Date: Wed, 27 Aug 2014 07:18:21 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.6-49-g0e914f8
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  0e914f8c16a63a1cba587e9e79c815a93bc1cb76 (commit)
      from  a5a8d2f51404353766a527c2664b13c2649ddb4c (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 0e914f8c16a63a1cba587e9e79c815a93bc1cb76
Author: Carlos Vicente <[email protected]>
Date:   Wed Aug 27 10:17:44 2014 -0400

    Try to create the SubnetVlan relationship in L3 devices that use 
sub-interfaces

diff --git a/lib/Netdot/Model/Interface.pm b/lib/Netdot/Model/Interface.pm
index fc08b38..e53045d 100644
--- a/lib/Netdot/Model/Interface.pm
+++ b/lib/Netdot/Model/Interface.pm
@@ -580,8 +580,19 @@ sub snmp_update {
        my $name = $self->name;
 
        # For layer3 switches with virtual VLAN interfaces
-       if ( !$vlan && $name && $name =~ /Vlan(\d+)/o ){
-           my $vid = $1;
+       if ( !$vlan && $self->device->ipforwarding ){
+           my $vid;
+
+           if ( $name && $name =~ /Vlan(\d+)/o ){
+               # This works mostly for Cisco Catalyst stuff
+               $vid = $1;
+           }elsif ( $self->type eq '135' # See IF-MIB
+                    && $name && $name =~ /\.(\d+)$/o ){
+               # This works for Juniper stuff or anything
+               # with sub-interfaces. It assumes that
+               # the sub-interface number matches the VLAN id
+               $vid = $1;
+           }
            $vlan = Vlan->search(vid=>$vid)->first;
        }
 

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

Summary of changes:
 lib/Netdot/Model/Interface.pm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 2
Date: Wed, 27 Aug 2014 07:18:46 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch master updated.
        netdot-1.0.6-49-g0e914f8
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  0e914f8c16a63a1cba587e9e79c815a93bc1cb76 (commit)
      from  a5a8d2f51404353766a527c2664b13c2649ddb4c (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:
 lib/Netdot/Model/Interface.pm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 3
Date: Wed, 27 Aug 2014 07:25:39 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.6-50-g7bdfac8
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  7bdfac87c87d2b130771929d770efd569d57971a (commit)
      from  0e914f8c16a63a1cba587e9e79c815a93bc1cb76 (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 7bdfac87c87d2b130771929d770efd569d57971a
Author: Carlos Vicente <[email protected]>
Date:   Wed Aug 27 10:25:30 2014 -0400

    Do not throw exception for invalid VID in Vlan::search

diff --git a/lib/Netdot/Model/Vlan.pm b/lib/Netdot/Model/Vlan.pm
index a70e467..f77ed37 100644
--- a/lib/Netdot/Model/Vlan.pm
+++ b/lib/Netdot/Model/Vlan.pm
@@ -75,9 +75,6 @@ sub search {
     my $opts = @nargs % 2 ? pop @nargs : {};
     my %args = @nargs;
 
-    if (defined $args{vid}) {
-        $class->_validate_vid($args{vid});
-    }
     return $class->SUPER::search(@args);
 }
 

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

Summary of changes:
 lib/Netdot/Model/Vlan.pm | 3 ---
 1 file changed, 3 deletions(-)


hooks/post-receive
-- 
Netdot


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

Message: 4
Date: Wed, 27 Aug 2014 07:40:07 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.6-51-g73acf42
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  73acf42b64bb9112b347c92c2cf2035243d33ed0 (commit)
      from  7bdfac87c87d2b130771929d770efd569d57971a (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 73acf42b64bb9112b347c92c2cf2035243d33ed0
Author: Carlos Vicente <[email protected]>
Date:   Wed Aug 27 10:39:58 2014 -0400

    Show BGP peers even if local AS is not set

diff --git a/htdocs/management/device.html b/htdocs/management/device.html
index a788998..2bbfac4 100644
--- a/htdocs/management/device.html
+++ b/htdocs/management/device.html
@@ -1248,6 +1248,11 @@ if ( $editips || $add_ip ) {
 <%perl>
     my $ipeers = $o->get_bgp_peers(type=>"internal", sort=>$peersort);
     my $epeers = $o->get_bgp_peers(type=>"external", sort=>$peersort);
+    if ( !$ipeers && !$epeers ) {
+       # We may get nothing if for some reason the device's local AS
+       # is not set. This shows any peers as external.
+        $epeers = $o->get_bgp_peers(type=>"all", sort=>$peersort);
+    }
     my $whois_url = Netdot->config->get('BGP_AS_WHOIS_URL');
 </%perl>
 

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

Summary of changes:
 htdocs/management/device.html | 5 +++++
 1 file changed, 5 insertions(+)


hooks/post-receive
-- 
Netdot


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

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


End of Netdot-devel Digest, Vol 89, Issue 8
*******************************************

Reply via email to