This repository has been archived by the owner on Nov 11, 2021. It is now read-only.
added support for rhel route6 files to mroute.pp #262
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is a fixup for the issue #261 I opened 2 months ago.
Eventually it creates a
route6-$name
file under RHEL Systems whenmroute
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.