Class: Ansible::Ruby::Modules::Ovirt_host_network
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ovirt_host_network
- 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
-
#bond ⇒ Hash?
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.
-
#check ⇒ Symbol?
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.
-
#interface ⇒ String?
Name of the network interface where logical network should be attached.
-
#labels ⇒ Object?
List of names of the network label to be assigned to bond or interface.
-
#name ⇒ String
Name of the host to manage networks for.
-
#networks ⇒ Array<Hash>, ...
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.
-
#save ⇒ Symbol?
If I(true) network configuration will be persistent, by default they are temporary.
-
#state ⇒ :present, ...
Should the host be present/absent.
Methods inherited from Base
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
#bond ⇒ Hash?
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.
20 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 20 attribute :bond |
#check ⇒ Symbol?
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.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 35 attribute :check |
#interface ⇒ String?
Returns 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 |
#labels ⇒ Object?
Returns 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 |
#name ⇒ String
Returns 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 |
#networks ⇒ Array<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.
28 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 28 attribute :networks |
#save ⇒ Symbol?
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_host_network.rb', line 16 attribute :state |