puppet-network icon indicating copy to clipboard operation
puppet-network copied to clipboard

added support for rhel route6 files to mroute.pp

Open benibr opened this issue 6 years ago • 5 comments

This PR is a fixup for the issue https://github.com/example42/puppet-network/issues/261 I opened 2 months ago. Eventually it creates a route6-$name file under RHEL Systems when mroute is used so that IPv6 routes can be used. Therefor the $routes hash first is splitted with $hash.reduce and Stdlib::IP::Address Regex matches into a hash containing only v4 and one only containing v6 routes. Each file has its own default tempalte which uses the the associated variable and the files are only created if a route exists. Additionally a parameter $route6_tempalte is introduced to overwrite the template file in the same way as it is possilbe for $route_down_template

The change should not interfere with Debian/SUSE Support since it's not touching their templates/variables.

puppet-lint --no-autoloader_layout-check mroute.pp returns no error.

benibr avatar Feb 19 '19 12:02 benibr

Thanks for the PR, the module is supposed to be Puppet 3 compatible, so the reduce function fails on old Puppet versions (see Travis checks). As now I've to keep this MR on hold, until we upgrade the major release of the module and make it Puppet >= 4 only compatible.

alvagante avatar Feb 20 '19 07:02 alvagante

As now I've to keep this MR on hold, until we upgrade the major release of the module and make it Puppet >= 4 only compatible.

Can you say when you'll drop Puppet 3 support?

chrisongthb avatar Nov 27 '19 13:11 chrisongthb

@chrisongthb I've version 4 ready for some time in https://github.com/example42/puppet-network/tree/version4, but have to do more tests and resync it with latest version of legacy defines, which will be maininted for backwards compatibility. Release due maybe during xmas break, maybe later.

alvagante avatar Dec 09 '19 09:12 alvagante

Is there anything new here?

benibr avatar Jul 09 '20 17:07 benibr

@benibr actually not yet, sorry

alvagante avatar Jul 20 '20 13:07 alvagante