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.4-45-g915bb9c ([email protected])


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

Message: 1
Date: Wed, 17 Apr 2013 21:43:41 -0700
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
        netdot-1.0.4-45-g915bb9c
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  915bb9ca50a28025859ca8e531b52219cd138af0 (commit)
      from  d4e3d3ea90055994ab103eed19e1602b9d758420 (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 915bb9ca50a28025859ca8e531b52219cd138af0
Author: Carlos Vicente <[email protected]>
Date:   Thu Apr 18 04:43:29 2013 +0000

    Fix issue with adding BGP peering when AS info is incomplete

diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index fea044f..d755baa 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -2655,7 +2655,10 @@ sub update_bgp_peering {
            $pstate{monitored} = 0;
        }
        $p = BGPPeering->insert(\%pstate);
-       my $peer_label = $entity ? $entity->name : $peer->address;
+       my $peer_label;
+       $peer_label = $entity->name  if ($entity && ref($entity)) ;
+       $peer_label = $peer->{address} if ($peer && ref($peer));
+       $peer_label ||= "n\a";
        $logger->info(sprintf("%s: Inserted new Peering with: %s. ", $host, 
$peer_label));
     }
     return $p;

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

Summary of changes:
 lib/Netdot/Model/Device.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Netdot


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

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


End of Netdot-devel Digest, Vol 73, Issue 6
*******************************************

Reply via email to