From 4860c201080416c421e2523a968b8676f4eb176a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 4 Mar 2023 10:21:59 +0100 Subject: [PATCH] [PR #6104/2dee3464 backport][stable-6] nmcli: fixed inability to change mtu on vlan connection (#6140) nmcli: fixed inability to change mtu on vlan connection (#6104) * tests updated Co-authored-by: Sam Potekhin (cherry picked from commit 2dee3464dda014cbd3a5db4a924131c0b3663aaa) Co-authored-by: Sam Potekhin <24751685+heaveaxy@users.noreply.github.com> --- changelogs/fragments/4387-nmcli-mtu-for-vlan-connection-fix.yml | 2 ++ plugins/modules/nmcli.py | 1 + tests/unit/plugins/modules/test_nmcli.py | 1 + 3 files changed, 4 insertions(+) create mode 100644 changelogs/fragments/4387-nmcli-mtu-for-vlan-connection-fix.yml diff --git a/changelogs/fragments/4387-nmcli-mtu-for-vlan-connection-fix.yml b/changelogs/fragments/4387-nmcli-mtu-for-vlan-connection-fix.yml new file mode 100644 index 0000000000..e867135b2a --- /dev/null +++ b/changelogs/fragments/4387-nmcli-mtu-for-vlan-connection-fix.yml @@ -0,0 +1,2 @@ +bugfixes: + - nmcli - implemented changing mtu value on vlan interfaces (https://github.com/ansible-collections/community.general/issues/4387). diff --git a/plugins/modules/nmcli.py b/plugins/modules/nmcli.py index 61b0325fe9..383e51a2c2 100644 --- a/plugins/modules/nmcli.py +++ b/plugins/modules/nmcli.py @@ -1772,6 +1772,7 @@ class Nmcli(object): 'dummy', 'ethernet', 'team-slave', + 'vlan', ) @property diff --git a/tests/unit/plugins/modules/test_nmcli.py b/tests/unit/plugins/modules/test_nmcli.py index c7e0baf7e5..86c34df443 100644 --- a/tests/unit/plugins/modules/test_nmcli.py +++ b/tests/unit/plugins/modules/test_nmcli.py @@ -663,6 +663,7 @@ ipv6.method: auto ipv6.ignore-auto-dns: no ipv6.ignore-auto-routes: no vlan.id: 10 +802-3-ethernet.mtu: auto """ TESTCASE_VXLAN = [