Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for interfaces of type MACVLAN using nmcli module. #5316

Closed
1 task done
ganniterix opened this issue Sep 28, 2022 · 3 comments · Fixed by #6312
Closed
1 task done

Support for interfaces of type MACVLAN using nmcli module. #5316

ganniterix opened this issue Sep 28, 2022 · 3 comments · Fixed by #6312
Labels
feature This issue/PR relates to a feature request module module net_tools plugins plugin (any type)

Comments

@ganniterix
Copy link

ganniterix commented Sep 28, 2022

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

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

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
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request module module net_tools plugins plugin (any type) labels Sep 28, 2022
@ansibullbot
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module net_tools plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants