Class: Ansible::Ruby::Modules::Ovirt_host_network

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb,
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_networks.rb

Overview

Module to manage host networks in oVirt/RHV.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#bondHash?

Returns Dictionary describing network bond:,C(name) - Bond name.,C(mode) - Bonding mode.,C(options) - Bonding options.,C(interfaces) - List of interfaces to create a bond.

Returns:

  • (Hash, nil)

    Dictionary describing network bond:,C(name) - Bond name.,C(mode) - Bonding mode.,C(options) - Bonding options.,C(interfaces) - List of interfaces to create a bond.



20
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 20

attribute :bond

#checkSymbol?

Returns If I(true) verify connectivity between host and engine.,Network configuration changes will be rolled back if connectivity between engine and the host is lost after changing network configuration.

Returns:

  • (Symbol, nil)

    If I(true) verify connectivity between host and engine.,Network configuration changes will be rolled back if connectivity between engine and the host is lost after changing network configuration.



35
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 35

attribute :check

#interfaceString?

Returns Name of the network interface where logical network should be attached.

Returns:

  • (String, nil)

    Name of the network interface where logical network should be attached.



24
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 24

attribute :interface

#labelsObject?

Returns List of names of the network label to be assigned to bond or interface.

Returns:

  • (Object, nil)

    List of names of the network label to be assigned to bond or interface.



32
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 32

attribute :labels

#nameString

Returns Name of the host to manage networks for.

Returns:

  • (String)

    Name of the host to manage networks for.



12
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 12

attribute :name

#networksArray<Hash>, ...

Returns List of dictionary describing networks to be attached to interface or bond:,C(name) - Name of the logical network to be assigned to bond or interface.,C(boot_protocol) - Boot protocol one of the I(none), I(static) or I(dhcp).,C(address) - IP address in case of I(static) boot protocol is used.,C(netmask) - Subnet mask in case of I(static) boot protocol is used.,C(gateway) - Gateway in case of I(static) boot protocol is used.,C(version) - IP version. Either v4 or v6. Default is v4.

Returns:

  • (Array<Hash>, Hash, nil)

    List of dictionary describing networks to be attached to interface or bond:,C(name) - Name of the logical network to be assigned to bond or interface.,C(boot_protocol) - Boot protocol one of the I(none), I(static) or I(dhcp).,C(address) - IP address in case of I(static) boot protocol is used.,C(netmask) - Subnet mask in case of I(static) boot protocol is used.,C(gateway) - Gateway in case of I(static) boot protocol is used.,C(version) - IP version. Either v4 or v6. Default is v4.



28
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 28

attribute :networks

#saveSymbol?

Returns If I(true) network configuration will be persistent, by default they are temporary.

Returns:

  • (Symbol, nil)

    If I(true) network configuration will be persistent, by default they are temporary.



39
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 39

attribute :save

#state:present, ...

Returns Should the host be present/absent.

Returns:

  • (:present, :absent, nil)

    Should the host be present/absent.



16
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 16

attribute :state