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

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

Open hseuss opened this issue 5 months ago • 2 comments

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

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

hseuss avatar Mar 11 '24 13:03 hseuss

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 Mar 11 '24 13:03 ansibullbot

cc @alcamie101 click here for bot help

ansibullbot avatar Mar 11 '24 13:03 ansibullbot