Example #1
0
  def create_host(self, host_id, name, ipaddr, rack_id = None):
    """
    Create a host.

    @param host_id  The host id.
    @param name     Host name
    @param ipaddr   IP address
    @param rack_id  Rack id. Default None.
    @return: An ApiHost object
    """
    return hosts.create_host(self, host_id, name, ipaddr, rack_id)
Example #2
0
    def create_host(self, host_id, name, ipaddr, rack_id=None):
        """
    Create a host.

    @param host_id:  The host id.
    @param name:     Host name
    @param ipaddr:   IP address
    @param rack_id:  Rack id. Default None.
    @return: An ApiHost object
    """
        return hosts.create_host(self, host_id, name, ipaddr, rack_id)