Sort hash keys to make sure we returna consistent mac in L3::Contivity

Add Layer3::Contivity test class
This commit is contained in:
Eric A. Miller
2018-04-11 20:42:35 -04:00
parent a38eafbf56
commit 87a287e0c9
2 changed files with 169 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ sub mac {
my $i_mac = $contivity->i_mac();
# Return Interface MAC
foreach my $entry ( keys %$i_mac ) {
foreach my $entry ( sort keys %$i_mac ) {
my $sn = $i_mac->{$entry};
next unless $sn;
return $sn;