added support for rhel route6 files to mroute.pp#262
added support for rhel route6 files to mroute.pp#262benibr wants to merge 1 commit intoexample42:masterfrom
Conversation
|
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). |
Can you say when you'll drop Puppet 3 support? |
|
@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. |
|
Is there anything new here? |
|
@benibr actually not yet, sorry |
This PR is a fixup for the issue #261 I opened 2 months ago.
Eventually it creates a
route6-$namefile under RHEL Systems whenmrouteis used so that IPv6 routes can be used.Therefor the
$routeshash 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_tempalteis introduced to overwrite the template file in the same way as it is possilbe for$route_down_templateThe change should not interfere with Debian/SUSE Support since it's not touching their templates/variables.
puppet-lint --no-autoloader_layout-check mroute.ppreturns no error.