src/Ovh/Dedicated/Server/Server.php
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 "";
	}
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 "";
	}
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 "" ; }
/*
function to lookup a vMac based on an IP address - why dont they include this in the API?

@param $ipv4 - IPv4 to lookup

@returns vmac or null string if not found
/ * function to lookup a vMac based on an IP address - why dont they include this in the API?