Class: Ansible::Ruby::Modules::Nmcli

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/network/nmcli.rb

Overview

Manage the network devices. Create, modify, and manage, ethernet, teams, bonds, vlans etc.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#ageingtimeInteger?

Returns This is only used with bridge - [ageing-time <0-1000000>] the Ethernet MAC address aging time, in seconds.

Returns:

  • (Integer, nil)

    This is only used with bridge - [ageing-time <0-1000000>] the Ethernet MAC address aging time, in seconds



98
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 98

attribute :ageingtime

#arp_intervalObject?

Returns This is only used with bond - ARP interval.

Returns:

  • (Object, nil)

    This is only used with bond - ARP interval



73
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 73

attribute :arp_interval

#arp_ip_targetObject?

Returns This is only used with bond - ARP IP target.

Returns:

  • (Object, nil)

    This is only used with bond - ARP IP target



76
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 76

attribute :arp_ip_target

#autoconnect:yes, ...

Returns Whether the connection should start on boot.,Whether the connection profile can be automatically activated.

Returns:

  • (:yes, :no, nil)

    Whether the connection should start on boot.,Whether the connection profile can be automatically activated



15
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 15

attribute :autoconnect

#conn_nameObject

Returns Where conn_name will be the name used to call the connection. when not provided a default name is generated: <type>[-<num>].

Returns:

  • (Object)

    Where conn_name will be the name used to call the connection. when not provided a default name is generated: <type>[-<num>]



19
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 19

attribute :conn_name

#dns4Object?

Returns A list of upto 3 dns servers, ipv4 format e.g. To add two IPv4 DNS server addresses: [“8.8.8.8 8.8.4.4”].

Returns:

  • (Object, nil)

    A list of upto 3 dns servers, ipv4 format e.g. To add two IPv4 DNS server addresses: [“8.8.8.8 8.8.4.4”]



44
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 44

attribute :dns4

#dns6Object?

Returns A list of upto 3 dns servers, ipv6 format e.g. To add two IPv6 DNS server addresses: [“2001:4860:4860::8888 2001:4860:4860::8844”].

Returns:

  • (Object, nil)

    A list of upto 3 dns servers, ipv6 format e.g. To add two IPv6 DNS server addresses: [“2001:4860:4860::8888 2001:4860:4860::8844”]



53
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 53

attribute :dns6

#downdelayObject?

Returns This is only used with bond - downdelay.

Returns:

  • (Object, nil)

    This is only used with bond - downdelay



67
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 67

attribute :downdelay

#egressObject?

Returns This is only used with VLAN - VLAN egress priority mapping.

Returns:

  • (Object, nil)

    This is only used with VLAN - VLAN egress priority mapping



129
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 129

attribute :egress

#flagsObject?

Returns This is only used with VLAN - flags.

Returns:

  • (Object, nil)

    This is only used with VLAN - flags



123
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 123

attribute :flags

#forwarddelayInteger?

Returns This is only used with bridge - [forward-delay <2-30>] STP forwarding delay, in seconds.

Returns:

  • (Integer, nil)

    This is only used with bridge - [forward-delay <2-30>] STP forwarding delay, in seconds



86
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 86

attribute :forwarddelay

#gw4Object?

Returns The IPv4 gateway for this interface using this format ie: “192.168.100.1”.

Returns:

  • (Object, nil)

    The IPv4 gateway for this interface using this format ie: “192.168.100.1”



41
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 41

attribute :gw4

#gw6Object?

Returns The IPv6 gateway for this interface using this format ie: “2001:db8::1”.

Returns:

  • (Object, nil)

    The IPv6 gateway for this interface using this format ie: “2001:db8::1”



50
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 50

attribute :gw6

#hairpinBoolean?

Returns This is only used with ‘bridge-slave’ - ‘hairpin mode’ for the slave, which allows frames to be sent back out through the slave the frame was received on.

Returns:

  • (Boolean, nil)

    This is only used with ‘bridge-slave’ - ‘hairpin mode’ for the slave, which allows frames to be sent back out through the slave the frame was received on.



113
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 113

attribute :hairpin

#hellotimeInteger?

Returns This is only used with bridge - [hello-time <1-10>] STP hello time, in seconds.

Returns:

  • (Integer, nil)

    This is only used with bridge - [hello-time <1-10>] STP hello time, in seconds



90
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 90

attribute :hellotime

#ifnameString?

Returns Where IFNAME will be the what we call the interface name.,interface to bind the connection to. The connection will only be applicable to this interface name.,A special value of “*” can be used for interface-independent connections.,The ifname argument is mandatory for all connection types except bond, team, bridge and vlan.

Returns:

  • (String, nil)

    Where IFNAME will be the what we call the interface name.,interface to bind the connection to. The connection will only be applicable to this interface name.,A special value of “*” can be used for interface-independent connections.,The ifname argument is mandatory for all connection types except bond, team, bridge and vlan.



23
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 23

attribute :ifname

#ingressObject?

Returns This is only used with VLAN - VLAN ingress priority mapping.

Returns:

  • (Object, nil)

    This is only used with VLAN - VLAN ingress priority mapping



126
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 126

attribute :ingress

#ip4Object?

Returns The IPv4 address to this interface using this format ie: “192.168.1.24/24”.

Returns:

  • (Object, nil)

    The IPv4 address to this interface using this format ie: “192.168.1.24/24”



38
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 38

attribute :ip4

#ip6Object?

Returns The IPv6 address to this interface using this format ie: “abbe::cafe”.

Returns:

  • (Object, nil)

    The IPv6 address to this interface using this format ie: “abbe::cafe”



47
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 47

attribute :ip6

#macObject?

Returns This is only used with bridge - MAC address of the bridge (note: this requires a recent kernel feature, originally introduced in 3.15 upstream kernel).

Returns:

  • (Object, nil)

    This is only used with bridge - MAC address of the bridge (note: this requires a recent kernel feature, originally introduced in 3.15 upstream kernel)



102
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 102

attribute :mac

#masterObject?

Returns master <master (ifname, or connection UUID or conn_name) of bridge, team, bond master connection profile.

Returns:

  • (Object, nil)

    master <master (ifname, or connection UUID or conn_name) of bridge, team, bond master connection profile.



35
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 35

attribute :master

#maxageInteger?

Returns This is only used with bridge - [max-age <6-42>] STP maximum message age, in seconds.

Returns:

  • (Integer, nil)

    This is only used with bridge - [max-age <6-42>] STP maximum message age, in seconds



94
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 94

attribute :maxage

#miimonInteger?

Returns This is only used with bond - miimon.

Returns:

  • (Integer, nil)

    This is only used with bond - miimon



63
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 63

attribute :miimon

#mode:"balance-rr", ...

Returns This is the type of device or network connection that you wish to create for a bond, team or bridge.

Returns:

  • (:"balance-rr", :"active-backup", :"balance-xor", :broadcast, :"802.3ad", :"balance-tlb", :"balance-alb", nil)

    This is the type of device or network connection that you wish to create for a bond, team or bridge.



31
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 31

attribute :mode

#mtuInteger?

Returns The connection MTU, e.g. 9000. This can’t be applied when creating the interface and is done once the interface has been created.,Can be used when modifying Team, VLAN, Ethernet (Future plans to implement wifi, pppoe, infiniband).

Returns:

  • (Integer, nil)

    The connection MTU, e.g. 9000. This can’t be applied when creating the interface and is done once the interface has been created.,Can be used when modifying Team, VLAN, Ethernet (Future plans to implement wifi, pppoe, infiniband)



56
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 56

attribute :mtu

#path_costInteger?

Returns This is only used with ‘bridge-slave’ - [<1-65535>] - STP port cost for destinations via this slave.

Returns:

  • (Integer, nil)

    This is only used with ‘bridge-slave’ - [<1-65535>] - STP port cost for destinations via this slave



109
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 109

attribute :path_cost

#primaryObject?

Returns This is only used with bond and is the primary interface name (for “active-backup” mode), this is the usually the ‘ifname’.

Returns:

  • (Object, nil)

    This is only used with bond and is the primary interface name (for “active-backup” mode), this is the usually the ‘ifname’



60
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 60

attribute :primary

#priorityInteger?

Returns This is only used with ‘bridge’ - sets STP priority.

Returns:

  • (Integer, nil)

    This is only used with ‘bridge’ - sets STP priority



82
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 82

attribute :priority

#slavepriorityInteger?

Returns This is only used with ‘bridge-slave’ - [<0-63>] - STP priority of this slave.

Returns:

  • (Integer, nil)

    This is only used with ‘bridge-slave’ - [<0-63>] - STP priority of this slave



105
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 105

attribute :slavepriority

#state:present, :absent

Returns Whether the device should exist or not, taking action if the state is different from what is stated.

Returns:

  • (:present, :absent)

    Whether the device should exist or not, taking action if the state is different from what is stated.



11
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 11

attribute :state

#stpObject?

Returns This is only used with bridge and controls whether Spanning Tree Protocol (STP) is enabled for this bridge.

Returns:

  • (Object, nil)

    This is only used with bridge and controls whether Spanning Tree Protocol (STP) is enabled for this bridge



79
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 79

attribute :stp

#type:ethernet, ...

Returns This is the type of device or network connection that you wish to create.

Returns:

  • (:ethernet, :team, :"team-slave", :bond, :"bond-slave", :bridge, :vlan, nil)

    This is the type of device or network connection that you wish to create.



27
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 27

attribute :type

#updelayObject?

Returns This is only used with bond - updelay.

Returns:

  • (Object, nil)

    This is only used with bond - updelay



70
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 70

attribute :updelay

#vlandevObject?

Returns This is only used with VLAN - parent device this VLAN is on, can use ifname.

Returns:

  • (Object, nil)

    This is only used with VLAN - parent device this VLAN is on, can use ifname



120
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 120

attribute :vlandev

#vlanidObject?

Returns This is only used with VLAN - VLAN ID in range <0-4095>.

Returns:

  • (Object, nil)

    This is only used with VLAN - VLAN ID in range <0-4095>



117
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 117

attribute :vlanid