public function findVmac($ipv4)
{
$vmacs = json_decode(self::getClient()->getVmacs($this->getDomain()));
foreach ($vmacs as $vmac) {
$test_ip = json_decode(self::getClient()->getVmacIPAddresses($this->getDomain(), $vmac));
foreach ($test_ip as $ip) {
if ($ip == $ipv4) {
return $vmac;
}
}
}
return "";
}