def _modify_eni_properties(eni_id, properties=None, vm_=None):
 if (not isinstance(properties, dict)):
  raise SaltCloudException('ENI properties must be a dictionary')
 params = {'Action': 'ModifyNetworkInterfaceAttribute', 'NetworkInterfaceId': eni_id}
 for (k, v) in six.iteritems(properties):
  params[k] = v
 retries = 5
 while (retries > 0):
  retries = (retries - 1)
  result = aws.query(params, return_root=True, location=get_location(vm_), provider=get_provider(), opts=__opts__, sigver='4')
  if (isinstance(result, dict) and result.get('error')):
   time.sleep(1)
   continue
  return result
 raise SaltCloudException("Could not change interface <{0}> attributes <'{1}'> after 5 retries".format(eni_id, properties))

def _modify_eni_properties ( eni_id , properties = None , vm_ = None ) : if ( not isinstance ( properties , dict ) ) : raise SaltCloudException ( 'ENI properties must be a dictionary' ) params = { 'Action' : 'ModifyNetworkInterfaceAttribute' , 'NetworkInterfaceId' : eni_id } for ( k , v ) in six . iteritems ( properties ) : params [ k ] = v retries = 5 while ( retries > 0 ) : retries = ( retries - 1 ) result = aws . query ( params , return_root = True , location = get_location ( vm_ ) , provider = get_provider ( ) , opts = __opts__ , sigver = '4' ) if ( isinstance ( result , dict ) and result . get ( 'error' ) ) : time . sleep ( 1 ) continue return result raise SaltCloudException ( "Could not change interface <{0}> attributes <'{1}'> after 5 retries" . format ( eni_id , properties ) )
change properties of the interface with id eni_id to the values in properties dict .