mirror of
https://github.com/linux-system-roles/network.git
synced 2026-08-01 07:20:22 +00:00
bond: attach ports when creating the bonding connection
When ports are not attached, the bonding connection may risk not in fully connected state, e.g. connecting (getting IP configuration). Therefore, attach ports for the bonding connection. Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
parent
d311d60b73
commit
5c9456a8a3
1 changed files with 12 additions and 0 deletions
|
|
@ -126,6 +126,18 @@
|
|||
arp_ip_target: 192.0.2.128
|
||||
arp_validate: none
|
||||
primary: "{{ dhcp_interface1 }}"
|
||||
# add an ethernet to the bond
|
||||
- name: "{{ port1_profile }}"
|
||||
state: up
|
||||
type: ethernet
|
||||
interface_name: "{{ dhcp_interface1 }}"
|
||||
controller: "{{ controller_profile }}"
|
||||
# add a second ethernet to the bond
|
||||
- name: "{{ port2_profile }}"
|
||||
state: up
|
||||
type: ethernet
|
||||
interface_name: "{{ dhcp_interface2 }}"
|
||||
controller: "{{ controller_profile }}"
|
||||
- command: cat
|
||||
/sys/class/net/{{ controller_device }}/bonding/'{{ item.key }}'
|
||||
name: "** TEST check bond settings"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue