Skip to content

Commit

Permalink
prefer aggr links as the default global-nic
Browse files Browse the repository at this point in the history
  • Loading branch information
hadfl committed Apr 13, 2024
1 parent 074e969 commit 3a6cb91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Zadm/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,11 @@ sub loadTemplate($self, $file, $name = '') {
sub getOverLink($self) {
my $dladm = $self->readProc('dladm', [ qw(show-link -p -o), 'link,class' ]);
return [ map { /^([^:]+):(?:phys|etherstub|aggr|overlay)/ } @$dladm ];
return [
(map { /^([^:]+):aggr/ } @$dladm),
map { /^([^:]+):(?:phys|etherstub|overlay)/ } @$dladm
];
}

sub isVirtual($self) {
Expand Down

0 comments on commit 3a6cb91

Please sign in to comment.