Skip to content

Commit

Permalink
[PR #6104/2dee3464 backport][stable-5] nmcli: fixed inability to chan…
Browse files Browse the repository at this point in the history
…ge mtu on vlan connection (#6139)

nmcli: fixed inability to change mtu on vlan connection (#6104)

* tests updated

Co-authored-by: Sam Potekhin <heaveaxy@gmail.com>
(cherry picked from commit 2dee346)

Co-authored-by: Sam Potekhin <24751685+heaveaxy@users.noreply.github.com>
  • Loading branch information
patchback[bot] and heaveaxy authored Mar 4, 2023
1 parent f2d980f commit 6d03887
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- nmcli - implemented changing mtu value on vlan interfaces (https://github.com/ansible-collections/community.general/issues/4387).
1 change: 1 addition & 0 deletions plugins/modules/net_tools/nmcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,7 @@ def mtu_conn_type(self):
'dummy',
'ethernet',
'team-slave',
'vlan',
)

@property
Expand Down
1 change: 1 addition & 0 deletions tests/unit/plugins/modules/net_tools/test_nmcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@
ipv6.ignore-auto-dns: no
ipv6.ignore-auto-routes: no
vlan.id: 10
802-3-ethernet.mtu: auto
"""

TESTCASE_VXLAN = [
Expand Down

0 comments on commit 6d03887

Please sign in to comment.