diff --git a/net/isc-dhcp/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php b/net/isc-dhcp/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php new file mode 100644 index 000000000..7b80084c1 --- /dev/null +++ b/net/isc-dhcp/src/opnsense/mvc/app/models/OPNsense/Interfaces/Neighbor/dhcpd.php @@ -0,0 +1,58 @@ +object(); + if ($config->dhcpd->count() > 0) { + foreach ($config->dhcpd->children() as $intf => $node) { + foreach ($node->children() as $key => $data) { + if ($key == 'staticmap') { + if (!empty($data->arp_table_static_entry) || !empty($node->staticarp)) { + $result[] = [ + 'etheraddr' => (string)$data->mac, + 'ipaddress' => (string)$data->ipaddr, + 'descr' => (string)$data->descr, + 'source' => sprintf('dhcpd-%s', $intf) + ]; + } + } + } + } + } + return $result; + } +}