Nmcli module static routes

15 views
Skip to first unread message

anil kumar

unread,
Mar 25, 2019, 1:43:23 PM3/25/19
to Ansible Project
Hi,

Dont see any documentation regarding adding static routes using nmcli modules. Is it feasible to add static routes, if yes please let me know and sample example would help.

anil kumar

unread,
Mar 27, 2019, 4:05:05 PM3/27/19
to Ansible Project
I mean using nmcli module, I was able do with nmcli command.

Jean-Yves LENHOF

unread,
Mar 28, 2019, 6:23:09 AM3/28/19
to ansible...@googlegroups.com


Le 25/03/2019 à 18:43, anil kumar a écrit :
Hi, 

Dont see any documentation regarding adding static routes using nmcli modules. Is it feasible to add static routes, if yes please let me know and sample example would help.

Hi,

What OS are you using ?

On RedHat/CentOS, why not using templates and fill /etc/sysconfig/network-scripts/ with files like route-ifname


Regards,

JYL

Sebastian Meyer

unread,
Mar 28, 2019, 6:33:00 AM3/28/19
to ansible...@googlegroups.com, visit...@gmail.com
On 27.03.19 21:05, anil kumar wrote:
> I mean using nmcli module, I was able do with nmcli command.
>

It's not possible yet. I opened a PR for that:
https://github.com/ansible/ansible/pull/54491

Sebastian

> On Monday, March 25, 2019 at 6:43:23 PM UTC+1, anil kumar wrote:
>>
>> Hi,
>>
>> Dont see any documentation regarding adding static routes using nmcli
>> modules. Is it feasible to add static routes, if yes please let me know and
>> sample example would help.
>>
>

--
Sebastian Meyer
Linux Consultant & Trainer
Mail: me...@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
Reply all
Reply to author
Forward
0 new messages