Fix #8937: Show hwaddr for LAGG members

This commit is contained in:
Renato Botelho 2018-11-21 10:53:13 -02:00
parent 8bffe226d5
commit ede4faa74c

View File

@ -202,7 +202,10 @@ function build_member_list() {
continue;
}
$memberlist['list'][$ifn] = $ifn . ' (' . $ifinfo['mac'] . ')';
$hwaddr = get_interface_vendor_mac($ifn);
$memberlist['list'][$ifn] = $ifn . ' (' . $ifinfo['mac'] .
($hwaddr != $ifinfo['mac'] ? " | hw: {$hwaddr}" : '') . ')';
if (in_array($ifn, explode(",", $pconfig['members']))) {
array_push($memberlist['selected'], $ifn);