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

community.general.nmcli routesX parameter can only manage all routes of a connection name #8082

Open
1 task done
hseuss opened this issue Mar 11, 2024 · 2 comments
Open
1 task done
Labels
feature This issue/PR relates to a feature request module module plugins plugin (any type)

Comments

@hseuss
Copy link

hseuss commented Mar 11, 2024

Summary

I am trying to add or delete single routes from my connection "eth0" on my server with the nmcli module.
Unfortunately currently this module only is capable of managing all routes for a particular connection.
It would be very benefitial to be able to manage single routes which will be added / deleted to the connection too without touching the already exsiting routes.
From a user point of view this requirement makes sense, as sometimes you want only to control routes partially instead of full.

Issue Type

Feature Idea

Component Name

nmcli

Additional Information

With that command I can add a route to the existing routes:

nmcli connection modify <connection name> -ipv4.routes "<network>/<network mask> <gateway>"

I can imagine that a parameter could trigger this behaviour: routes_append
default: false

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 plugins plugin (any type) labels Mar 11, 2024
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 plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

2 participants