You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to edit the mtu parameter on a VLAN interface, nmcli always reports that nothing needs to be done, even though the specified mtu value is different than the current mtu for the VLAN Interface.
- name: Set VLAN 96 network interface MTU to 1500 after creationcommunity.general.nmcli:
conn_name: "enp1s0f0.96"type: "vlan"vlandev: "enp1s0f0"vlanid: 96ip4: "1.2.3.4"mtu: 9000state: "present"
Expected Results
$ nmcli conn show enp1s0f096
should report:
802-3-ethernet.mtu: 9000
but instead Ansible reports that nothing needs to be changed and the MTU remains at the default for the base interface, 1500.
Actual Results
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
When trying to edit the mtu parameter on a VLAN interface, nmcli always reports that nothing needs to be done, even though the specified mtu value is different than the current mtu for the VLAN Interface.
This appears to be caused by the function:
in
nmcli.py
which fails to recognize thevlan
interface as a valid layer 2 interface type on which you can set the MTU.Issue Type
Bug Report
Component Name
nmcli
Ansible Version
Community.general Version
Configuration
OS / Environment
Rocky Linux 8.5
Steps to Reproduce
Expected Results
$ nmcli conn show enp1s0f096
should report:
802-3-ethernet.mtu: 9000
but instead Ansible reports that nothing needs to be changed and the MTU remains at the default for the base interface, 1500.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: