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-7-gc226111 ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Fri, 4 Jan 2013 08:56:54 -0800
From: [email protected]
Subject: [Netdot-devel] [SCM] Netdot branch netdot-1.0 updated.
netdot-1.0.4-7-gc226111
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 c2261112eeb35670eea32bd4c4671bfe69cfdd91 (commit)
from b33c83a3a16b10bd3ee72ed5b6996e4abf7f7d4f (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 c2261112eeb35670eea32bd4c4671bfe69cfdd91
Author: Carlos Vicente <[email protected]>
Date: Fri Jan 4 11:56:45 2013 -0500
Sort ifIndex numerically when looking for first available mac address
diff --git a/lib/Netdot/Model/Device.pm b/lib/Netdot/Model/Device.pm
index d8e2738..3c558b3 100644
--- a/lib/Netdot/Model/Device.pm
+++ b/lib/Netdot/Model/Device.pm
@@ -5289,7 +5289,7 @@ sub _assign_base_mac {
# OK
}else{
$logger->debug(sub{"$host did not return base MAC. Using first
available interface MAC."});
- foreach my $iid ( sort keys %{$info->{interface}} ){
+ foreach my $iid ( sort { $a <=> $b} keys %{$info->{interface}} ){
if ( my $addr = $info->{interface}->{$iid}->{physaddr} ){
next unless ($address = PhysAddr->validate($addr));
last;
-----------------------------------------------------------------------
Summary of changes:
lib/Netdot/Model/Device.pm | 2 +-
1 files changed, 1 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 70, Issue 4
*******************************************