community.general icon indicating copy to clipboard operation
community.general copied to clipboard

Support for interfaces of type MACVLAN using nmcli module.

Open ganniterix opened this issue 2 years ago • 2 comments

Summary

Currently there is no support for interfaces of type macvlan using the nmcli module.

Currently running a similar script will configure a macvlan that persists across reboots.

nmcli connection add \
   type macvlan \
   con-name macvlan0
   dev eth0 \
   mode bridge \
   mac aa:bb:cc:00:11:22 \
   802-3-ethernet.cloned-mac-address aa:bb:cc:00:11:22 \
   ifname macvlan0 \
   ip4 192.168.1.1/24 \
   ipv6.method ignore \
   connection.autoconnect yes

Issue Type

Feature Idea

Component Name

nmcli

Additional Information

name: Configure connection
  community.general.nmcli:
    type: "macvlan"
    conn_name: "macvlan0"
    ifname: "macvlan0"
    autoconnect: True
    ip4: "192.168.1.1/24"
    macvlanhwaddress: "aa:bb:cc:00:11:22"
    macvlandev: "eth0" 
    mode: "bridge"
    state: present

Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

ganniterix avatar Sep 28 '22 08:09 ganniterix

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Sep 28 '22 08:09 ansibullbot

cc @alcamie101 click here for bot help

ansibullbot avatar Sep 28 '22 08:09 ansibullbot

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Nov 07 '22 09:11 ansibullbot