From a4b32d7b9c42cf79a8f273b89c2bfdb73c657457 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Sun, 24 Mar 2024 18:05:04 +0100 Subject: [PATCH] Fix bond-slave honoring MTU (#8118) The bond-slave type should honor the request MTU value. --- 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',