example42/puppet-network

Enable IPv6 mroute creation on RedHat based

Opened this issue · 1 comments

Expected Behavior

When creating IPv6 routes with mroute.pp the routes should be in a route6-${name} file under RedHat like Systems

Actual Behavior

The Class writes all kind of routes together in the /etc/sysconfig/network-scripts/route-${name} file, no matter which protocol version cause in https://github.com/example42/puppet-network/blob/master/manifests/mroute.pp only the route-${name} template is used.

Steps to Reproduce the Problem

Code like this will reproduce the behaviour:

network::mroute { 'eth0':
  routes => {
   '0.0.0.0/0' => '192.168.1.1',
   '::/0'      => '2a00:1450:4001:81c::2003',
  }
}

and will result in the following route-eth0 file:

### File managed by Puppet
###
0.0.0.0/0 via 192.168.1.1
::/0 via 2a00:1450:4001:81c::2003

On CentOS 7 the IPv4 route will work the IPv6 route won't be applied. There is an implementation in the route Class which was merged a few months ago #214

Hopefully I find the time in january to fix it myself :-)

Created a PR #262 to fix the issue