From 6e0fa9042c2c6f71a86ef978b0f561aed95d3b3b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 18:26:34 +0100 Subject: [PATCH] [PR #8118/a4b32d7b backport][stable-8] Fix bond-slave honoring MTU (#8141) Fix bond-slave honoring MTU (#8118) The bond-slave type should honor the request MTU value. (cherry picked from commit a4b32d7b9c42cf79a8f273b89c2bfdb73c657457) Co-authored-by: Tobias Urdin --- changelogs/fragments/8118-fix-bond-slave-honoring-mtu.yml | 2 ++ plugins/modules/nmcli.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/8118-fix-bond-slave-honoring-mtu.yml diff --git a/changelogs/fragments/8118-fix-bond-slave-honoring-mtu.yml b/changelogs/fragments/8118-fix-bond-slave-honoring-mtu.yml new file mode 100644 index 0000000000..47f8af9ac3 --- /dev/null +++ b/changelogs/fragments/8118-fix-bond-slave-honoring-mtu.yml @@ -0,0 +1,2 @@ +minor_changes: + - nmcli - allow setting ``MTU`` for ``bond-slave`` interface types (https://github.com/ansible-collections/community.general/pull/8118). diff --git a/plugins/modules/nmcli.py b/plugins/modules/nmcli.py index 4ca4198e35..9360ce37d3 100644 --- a/plugins/modules/nmcli.py +++ b/plugins/modules/nmcli.py @@ -1952,6 +1952,7 @@ class Nmcli(object): def mtu_conn_type(self): return self.type in ( 'bond', + 'bond-slave', 'dummy', 'ethernet', 'infiniband',