oca.host

class oca.Host(xml, client)

Bases: oca.pool.PoolElement

static allocate(client, hostname, im, vmm, tm)

Adds a host to the host list

Arguments

hostname
Hostname machine to add
im
Information manager’
vmm
Virtual machine manager.
tm
Transfer manager
delete()

Deletes current object from the pool

disable()

Disable this host.

enable()

Enable this host

info(*args)
classmethod new_with_id(client, element_id)

Retrives object which id equals `id`.

Arguments

`client`
oca.Client object.
`element_id
object id.
short_state

Short string representation of host state. One of ‘on’, ‘off’, ‘err’

str_state

String representation of host state. One of ‘INIT’, ‘MONITORING’, ‘MONITORED’, ‘ERROR’, ‘DISABLED’

class oca.HostPool(client)

Bases: oca.pool.Pool

Previous topic

oca.Client

Next topic

oca.image

This Page