Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
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-users digest..."


Today's Topics:

   1. Re: errors from updatedevices.pl (Vincent Magnin)
   2. Re: errors from updatedevices.pl (Vincent Magnin)


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

Message: 1
Date: Tue, 03 Jul 2012 10:53:21 +0200
From: Vincent Magnin <[email protected]>
Subject: Re: [Netdot-users] errors from updatedevices.pl
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
        format="flowed"

Hi Markus,

> Invalid IP address: ;X.Y.Z.194;X.Y.Z.182;X.Y.Z.195
>
> and there it stops.

I've the same behaviour over here. It seems there is another issue:

Ipblock->ip2int() crashes if its parameter is not an IP Address.


I was able to continue discovery by patching Topology.pm:

diff --git a/lib/Netdot/Topology.pm b/lib/Netdot/Topology.pm
index ec7d2bd..d54dbfa 100644
--- a/lib/Netdot/Topology.pm
+++ b/lib/Netdot/Topology.pm
@@ -387,7 +387,7 @@ sub get_dp_links {
      # Finds remote device given an IP
      sub _find_by_ip {
         my($ip, $allips) = @_;
-       my $decimal = Ipblock->ip2int($ip);
+       my $decimal = 0; # Ipblock->ip2int($ip);
         exists $allips->{$decimal} && return  
Device->retrieve($allips->{$decimal
      }



> I don't know where these addresses come from:

Theses adresses comes from discovery protocol (LLDP) on one interface.  
In your case, you have multiple addresses on one interface. This means  
there is a device between which LLDP is not enabled.

Regards,

Vincent


-- 
------------------------------------------------------------------------
Vincent Magnin                                    [email protected]
Ing?nieur R?seau & T?l?com                              +41 21 692 22 48
UNIL, Centre Informatique, 1015 Lausanne
Switzerland



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

Message: 2
Date: Tue, 03 Jul 2012 12:08:35 +0200
From: Vincent Magnin <[email protected]>
Subject: Re: [Netdot-users] errors from updatedevices.pl
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi Markus,

I've found the reason why _find_by_ip was handlind ip addresses with ';':
- There is a typo error in Topology.pm.

Look at attached patch

Regards,

Vincent


-- 
------------------------------------------------------------------------
Vincent Magnin                                    [email protected]
Ing?nieur R?seau & T?l?com                              +41 21 692 22 48
UNIL, Centre Informatique, 1015 Lausanne
Switzerland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: topology.fix.patch
Type: text/x-diff
Size: 1129 bytes
Desc: not available
Url : 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20120703/df06e895/attachment-0001.bin
 

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

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


End of Netdot-users Digest, Vol 44, Issue 2
*******************************************

Reply via email to