community.general
community.general copied to clipboard
fix(nmcli): remove bond from ip_conn_type
SUMMARY
Removes bond
connection types from the ip_conn_type
list. Currently, with bond
connections being included in the ip_conn_type
list, the resulting nmcli
commands include references to ipv4
and ipv6
settings. These options are not available to bond
connection types as stated by the error output in issue #8558.
Fixes #8558
ISSUE TYPE
Bugfix Pull Request
COMPONENT NAME
nmcli
ADDITIONAL INFORMATION
# before change
TASK [Setup bond interface for - internal] ***********************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error: invalid or not allowed setting 'ipv4': 'ipv4' not among [connection, bond, 802-3-ethernet (ethernet), ethtool, bridge-port, link, match].\n", "name": "bond-internal", "rc": 2}
# after change
TASK [Setup bond interface for - internal] ***********************************************************************************
ok: [localhost]