'nmcli: Static routes (CIDR format vs key value format)

When adding a persistent static route for bond3 via nmcli it creates /etc/sysconfig/network-scripts/route-bond3 with the key based format:

nmcli connection modify bond3 +ipv4.routes "11.20.30.0/24 198.57.100.1"
nmcli connection up bond3

cat /etc/sysconfig/network-scripts/route-bond3
ADDRESS0=11.20.30.0
NETMASK0=255.255.255.0
GATEWAY0=198.57.100.1

For example the same manually configured route-bond3 file using a CIDR notation would be in the format of:

11.20.30.0/24 via 198.57.100.1 dev bond3

Why isn't nmcli creating route-bond3 with the CIDR format?

Is the key based format deemed the older format when compared to the CIDR format for route-bond3?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source