def get_network_interface(name=None, network_interface_id=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 r = {}
 result = _get_network_interface(conn, name, network_interface_id)
 if ('error' in result):
  if (result['error']['message'] == 'No ENIs found.'):
   r['result'] = None
   return r
  return result
 eni = result['result']
 r['result'] = _describe_network_interface(eni)
 return r

def get_network_interface ( name = None , network_interface_id = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) r = { } result = _get_network_interface ( conn , name , network_interface_id ) if ( 'error' in result ) : if ( result [ 'error' ] [ 'message' ] == 'No ENIs found.' ) : r [ 'result' ] = None return r return result eni = result [ 'result' ] r [ 'result' ] = _describe_network_interface ( eni ) return r
get an elastic network interface .