public function resetNetworkInterfaceAttribute($networkInterfaceId, NetworkInterfaceAttributeType $attr)
{
$result = false;
$options = array('NetworkInterfaceId' => (string) $networkInterfaceId, 'Attribute' => (string) $attr);
$action = ucfirst(__FUNCTION__);
$response = $this->client->call($action, $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
if ((string) $sxml->return != 'true') {
throw new Ec2Exception(sprintf('Amazon Ec2 could not %s NetworkInterfaceId:"%s" Attribute:"%s". It returned "%s"', $action, $options['NetworkInterfaceId'], $attr, $sxml->return));
}
$result = true;
}
return $result;
}