You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nmcli module does not support vrf creation. Two commands are required to create a vrf and then place an interface in one.
The command to create the vrf fails due to table and type vrf not being supported.
CLI command example ansible task example and errors below
- name: create mgmt vrf
community.general.nmcli:
type: vrf
ifname: mgmt
table: 10
state: present
conn_name: mgmt
Unsupported parameters for (community.general.nmcli) module: table
FAILED! => {"changed": false, "msg": "value of type must be one of: bond, bond-slave, bridge, bridge-slave, dummy, ethernet, generic, gre, infiniband, ipip, sit, team, team-slave, vlan, vxlan, wifi, gsm, macvlan, wireguard, vpn, loopback, got: vrf"}
The second command to configure the interface and place it in the vrf fails due to the slave_type vrf not being supported.
CLI command example ansible task example and errors below
Summary
The nmcli module does not support vrf creation. Two commands are required to create a vrf and then place an interface in one.
The command to create the vrf fails due to table and type vrf not being supported.
CLI command example ansible task example and errors below
nmcli connection add con-name mgmt type vrf ifname mgmt table 10 ipv4.method disabled ipv6.method disabled
The second command to configure the interface and place it in the vrf fails due to the slave_type vrf not being supported.
CLI command example ansible task example and errors below
nmcli connection add con-name eth0 ifname eth0 type ethernet ip4 192.168.1.2/24 gw4 192.168.1.1
Issue Type
Feature Idea
Component Name
nmcli
Additional Information
Code of Conduct
The text was updated successfully, but these errors were encountered: