ARP Discovery use MacHelper (#15479)

* Update arp-table.inc.php

* Import class

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Justin Lentz 2023-10-18 13:14:33 -05:00 committed by GitHub
parent b263772d23
commit 66af1a54e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ foreach (DeviceCache::getPrimary()->getVrfContexts() as $context_name) {
continue;
}
$mac = implode(array_map('zeropad', explode(':', $raw_mac)));
$mac = Mac::parse($raw_mac)->hex();
$arp_table[$port_id][$ip] = $mac;
$index = false;