Class: Ansible::Ruby::Modules::Nmcli
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Nmcli
- Defined in:
- lib/ansible/ruby/modules/generated/extras/network/nmcli.rb
Instance Method Summary collapse
-
#ageingtime ⇒ Integer?
This is only used with bridge - [ageing-time <0-1000000>] the Ethernet MAC address aging time, in seconds.
-
#arp_interval ⇒ Object?
This is only used with bond - ARP interval.
-
#arp_ip_target ⇒ Object?
This is only used with bond - ARP IP target.
-
#autoconnect ⇒ :yes, ...
Whether the connection should start on boot.,Whether the connection profile can be automatically activated.
-
#conn_name ⇒ Object
Where conn_name will be the name used to call the connection.
-
#dns4 ⇒ Object?
A list of upto 3 dns servers, ipv4 format e.g.
-
#dns6 ⇒ Object?
A list of upto 3 dns servers, ipv6 format e.g.
-
#downdelay ⇒ Object?
This is only used with bond - downdelay.
-
#egress ⇒ Object?
This is only used with VLAN - VLAN egress priority mapping.
-
#flags ⇒ Object?
This is only used with VLAN - flags.
-
#forwarddelay ⇒ Integer?
This is only used with bridge - [forward-delay <2-30>] STP forwarding delay, in seconds.
-
#gw4 ⇒ Object?
The IPv4 gateway for this interface using this format ie: “192.168.100.1”.
-
#gw6 ⇒ Object?
The IPv6 gateway for this interface using this format ie: “2001:db8::1”.
-
#hairpin ⇒ Boolean?
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.
-
#hellotime ⇒ Integer?
This is only used with bridge - [hello-time <1-10>] STP hello time, in seconds.
-
#ifname ⇒ String?
Where IFNAME will be the what we call the interface name.,interface to bind the connection to.
-
#ingress ⇒ Object?
This is only used with VLAN - VLAN ingress priority mapping.
-
#ip4 ⇒ Object?
The IPv4 address to this interface using this format ie: “192.168.1.24/24”.
-
#ip6 ⇒ Object?
The IPv6 address to this interface using this format ie: “abbe::cafe”.
-
#mac ⇒ Object?
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).
-
#master ⇒ Object?
Master <master (ifname, or connection UUID or conn_name) of bridge, team, bond master connection profile.
-
#maxage ⇒ Integer?
This is only used with bridge - [max-age <6-42>] STP maximum message age, in seconds.
-
#miimon ⇒ Integer?
This is only used with bond - miimon.
-
#mode ⇒ :"balance-rr", ...
This is the type of device or network connection that you wish to create for a bond, team or bridge.
-
#mtu ⇒ Integer?
The connection MTU, e.g.
-
#path_cost ⇒ Integer?
This is only used with ‘bridge-slave’ - [<1-65535>] - STP port cost for destinations via this slave.
-
#primary ⇒ Object?
This is only used with bond and is the primary interface name (for “active-backup” mode), this is the usually the ‘ifname’.
-
#priority ⇒ Integer?
This is only used with ‘bridge’ - sets STP priority.
-
#slavepriority ⇒ Integer?
This is only used with ‘bridge-slave’ - [<0-63>] - STP priority of this slave.
-
#state ⇒ :present, :absent
Whether the device should exist or not, taking action if the state is different from what is stated.
-
#stp ⇒ Object?
This is only used with bridge and controls whether Spanning Tree Protocol (STP) is enabled for this bridge.
-
#type ⇒ :ethernet, ...
This is the type of device or network connection that you wish to create.
-
#updelay ⇒ Object?
This is only used with bond - updelay.
-
#vlandev ⇒ Object?
This is only used with VLAN - parent device this VLAN is on, can use ifname.
-
#vlanid ⇒ Object?
This is only used with VLAN - VLAN ID in range <0-4095>.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#ageingtime ⇒ Integer?
Returns This is only used with bridge - [ageing-time <0-1000000>] the Ethernet MAC address aging time, in seconds.
97 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 97 attribute :ageingtime |
#arp_interval ⇒ Object?
Returns This is only used with bond - ARP interval.
72 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 72 attribute :arp_interval |
#arp_ip_target ⇒ Object?
Returns This is only used with bond - ARP IP target.
75 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 75 attribute :arp_ip_target |
#autoconnect ⇒ :yes, ...
Returns Whether the connection should start on boot.,Whether the connection profile can be automatically activated.
14 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 14 attribute :autoconnect |
#conn_name ⇒ Object
Returns Where conn_name will be the name used to call the connection. when not provided a default name is generated: <type>[-<num>].
18 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 18 attribute :conn_name |
#dns4 ⇒ Object?
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”].
43 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 43 attribute :dns4 |
#dns6 ⇒ Object?
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”].
52 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 52 attribute :dns6 |
#downdelay ⇒ Object?
Returns This is only used with bond - downdelay.
66 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 66 attribute :downdelay |
#egress ⇒ Object?
Returns This is only used with VLAN - VLAN egress priority mapping.
128 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 128 attribute :egress |
#flags ⇒ Object?
Returns This is only used with VLAN - flags.
122 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 122 attribute :flags |
#forwarddelay ⇒ Integer?
Returns This is only used with bridge - [forward-delay <2-30>] STP forwarding delay, in seconds.
85 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 85 attribute :forwarddelay |
#gw4 ⇒ Object?
Returns The IPv4 gateway for this interface using this format ie: “192.168.100.1”.
40 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 40 attribute :gw4 |
#gw6 ⇒ Object?
Returns The IPv6 gateway for this interface using this format ie: “2001:db8::1”.
49 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 49 attribute :gw6 |
#hairpin ⇒ Boolean?
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.
112 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 112 attribute :hairpin |
#hellotime ⇒ Integer?
Returns This is only used with bridge - [hello-time <1-10>] STP hello time, in seconds.
89 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 89 attribute :hellotime |
#ifname ⇒ String?
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.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 22 attribute :ifname |
#ingress ⇒ Object?
Returns This is only used with VLAN - VLAN ingress priority mapping.
125 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 125 attribute :ingress |
#ip4 ⇒ Object?
Returns The IPv4 address to this interface using this format ie: “192.168.1.24/24”.
37 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 37 attribute :ip4 |
#ip6 ⇒ Object?
Returns The IPv6 address to this interface using this format ie: “abbe::cafe”.
46 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 46 attribute :ip6 |
#mac ⇒ Object?
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).
101 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 101 attribute :mac |
#master ⇒ Object?
Returns master <master (ifname, or connection UUID or conn_name) of bridge, team, bond master connection profile.
34 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 34 attribute :master |
#maxage ⇒ Integer?
Returns This is only used with bridge - [max-age <6-42>] STP maximum message age, in seconds.
93 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 93 attribute :maxage |
#miimon ⇒ Integer?
Returns This is only used with bond - miimon.
62 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 62 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.
30 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 30 attribute :mode |
#mtu ⇒ Integer?
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).
55 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 55 attribute :mtu |
#path_cost ⇒ Integer?
Returns This is only used with ‘bridge-slave’ - [<1-65535>] - STP port cost for destinations via this slave.
108 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 108 attribute :path_cost |
#primary ⇒ Object?
Returns This is only used with bond and is the primary interface name (for “active-backup” mode), this is the usually the ‘ifname’.
59 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 59 attribute :primary |
#priority ⇒ Integer?
Returns This is only used with ‘bridge’ - sets STP priority.
81 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 81 attribute :priority |
#slavepriority ⇒ Integer?
Returns This is only used with ‘bridge-slave’ - [<0-63>] - STP priority of this slave.
104 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 104 attribute :slavepriority |
#state ⇒ :present, :absent
Returns Whether the device should exist or not, taking action if the state is different from what is stated.
10 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 10 attribute :state |
#stp ⇒ Object?
Returns This is only used with bridge and controls whether Spanning Tree Protocol (STP) is enabled for this bridge.
78 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 78 attribute :stp |
#type ⇒ :ethernet, ...
Returns This is the type of device or network connection that you wish to create.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 26 attribute :type |
#updelay ⇒ Object?
Returns This is only used with bond - updelay.
69 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 69 attribute :updelay |
#vlandev ⇒ Object?
Returns This is only used with VLAN - parent device this VLAN is on, can use ifname.
119 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 119 attribute :vlandev |
#vlanid ⇒ Object?
Returns This is only used with VLAN - VLAN ID in range <0-4095>.
116 |
# File 'lib/ansible/ruby/modules/generated/extras/network/nmcli.rb', line 116 attribute :vlanid |