Static route management write wrong route-eth0 file

Hello all,
I was writing a cookbook to manage some static routes on a RHEL host.
I realized that the resource “route” write a wrong /etc/sysconfig/network-script/route-eth0 file because it writes routes using syntax like:

x.x.x.x/m.m.m.m via gw.gw.gw.gw

but RHEL supports only file written as:

x.x.x.x/nn via gw.gw.gw.gw

Do you have any idea about this issue?

Thank You

Regards