parameters: (self, interface="eth0")
return_statement: return [ipaddress.ip_interface("%s/%d" % (the_interface.addr[0],
                                                    self._get_net_size(the_interface.netmask[1])))
                  for the_interface in interfaces if the_interface.name == interface]
docstring: :param interface: The interface to get an ip address for.
          :return: A list containing all of the available ip addresses.
docstring_summary: :param interface: The interface to get an ip address for.
          :return: A list containing all of the available ip addresses.
docstring_tokens: : param interface : The interface to get an ip address for . : return : A list containing all of the available ip addresses .
function: def ip(self, interface="eth0"):
          """
          :param interface: The interface to get an ip address for.
          :return: A list containing all of the available ip addresses.
          """
  
          interfaces = infinisqlmgr.getifaddrs.getifaddrs()
          return [ipaddress.ip_interface("%s/%d" % (the_interface.addr[0],
                                                    self._get_net_size(the_interface.netmask[1])))
                  for the_interface in interfaces if the_interface.name == interface]
function_tokens: def ip ( self , interface = "eth0" ) : interfaces = infinisqlmgr . getifaddrs . getifaddrs ( ) return [ ipaddress . ip_interface ( "%s/%d" % ( the_interface . addr [ 0 ] , self . _get_net_size ( the_interface . netmask [ 1 ] ) ) ) for the_interface in interfaces if the_interface . name == interface ]