Skip to content

Commit

Permalink
nmcli: fixed inability to change mtu on vlan connection (#6104)
Browse files Browse the repository at this point in the history
* tests updated

Co-authored-by: Sam Potekhin <heaveaxy@gmail.com>
  • Loading branch information
heaveaxy and heaveaxy authored Mar 4, 2023
1 parent 9a97bc7 commit 2dee346
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/nmcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,7 @@ def mtu_conn_type(self):
'dummy',
'ethernet',
'team-slave',
'vlan',
)

@property
Expand Down
1 change: 1 addition & 0 deletions tests/unit/plugins/modules/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 2dee346

Please sign in to comment.