community.general icon indicating copy to clipboard operation
community.general copied to clipboard

fix(nmcli): remove bond from ip_conn_type

Open joey-grant opened this issue 6 months ago • 4 comments

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]

joey-grant avatar Aug 07 '24 14:08 joey-grant