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

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

Overview

Manage the network devices. Create, modify and manage various connection and device type e.g., ethernet, teams, bonds, vlans etc. On CentOS and Fedora like systems, install dependencies as ‘yum/dnf install -y python-gobject NetworkManager-glib’ On Ubuntu and Debian like systems, install dependencies as ‘apt-get install -y libnm-glib-dev’

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

#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



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

attribute :ageingtime

#arp_intervalObject?

Returns This is only used with bond - ARP interval.

Returns:

  • (Object, nil)

    This is only used with bond - ARP interval



87
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 87

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



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

attribute :arp_ip_target

#autoconnectBoolean?

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

Returns:

  • (Boolean, nil)

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



18
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 18

attribute :autoconnect

#conn_nameString

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

Returns:

  • (String)

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



22
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 22

attribute :conn_name

#dhcp_client_idObject?

Returns DHCP Client Identifier sent to the DHCP server.

Returns:

  • (Object, nil)

    DHCP Client Identifier sent to the DHCP server.



71
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 71

attribute :dhcp_client_id

#dns4Object?

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

Returns:

  • (Object, nil)

    A list of upto 3 dns servers, ipv4 format e.g. To add two IPv4 DNS server addresses: “192.0.2.53 198.51.100.53”



49
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 49

attribute :dns4

#dns4_searchObject?

Returns A list of DNS search domains.

Returns:

  • (Object, nil)

    A list of DNS search domains.



52
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 52

attribute :dns4_search

#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”



61
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 61

attribute :dns6

#dns6_searchObject?

Returns A list of DNS search domains.

Returns:

  • (Object, nil)

    A list of DNS search domains.



64
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 64

attribute :dns6_search

#downdelayObject?

Returns This is only used with bond - downdelay.

Returns:

  • (Object, nil)

    This is only used with bond - downdelay



81
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 81

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



144
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 144

attribute :egress

#flagsObject?

Returns This is only used with VLAN - flags.

Returns:

  • (Object, nil)

    This is only used with VLAN - flags



138
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 138

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



101
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 101

attribute :forwarddelay

#gw4String?

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

Returns:

  • (String, nil)

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



45
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 45

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”



58
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 58

attribute :gw6

#hairpin:yes, ...

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:

  • (:yes, :no, 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.



128
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 128

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



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

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.



26
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 26

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



141
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 141

attribute :ingress

#ip4String?

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

Returns:

  • (String, nil)

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



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

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”



55
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 55

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)rn.

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)rn



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

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.



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

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



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

attribute :maxage

#miimonInteger?

Returns This is only used with bond - miimon.

Returns:

  • (Integer, nil)

    This is only used with bond - miimon



77
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 77

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.



34
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 34

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)



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

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



124
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 124

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’



74
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 74

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



97
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 97

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



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

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.



14
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 14

attribute :state

#stpSymbol?

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

Returns:

  • (Symbol, nil)

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



93
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 93

attribute :stp

#type:ethernet, ...

Returns This is the type of device or network connection that you wish to create or modify.,type C(generic) is added in version 2.5.

Returns:

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

    This is the type of device or network connection that you wish to create or modify.,type C(generic) is added in version 2.5.



30
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 30

attribute :type

#updelayObject?

Returns This is only used with bond - updelay.

Returns:

  • (Object, nil)

    This is only used with bond - updelay



84
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 84

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



135
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 135

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>



132
# File 'lib/ansible/ruby/modules/generated/net_tools/nmcli.rb', line 132

attribute :vlanid