Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions manifests/mroute.pp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
# Deploys the file /etc/sysconfig/network/ifroute-$name.
#
define network::mroute (
$routes,
Hash $routes,
$interface = $name,
$config_file_notify = 'class_default',
$restart_all_nic = false,
Expand All @@ -82,9 +82,6 @@
$route_down_template = undef,
$table = undef,
) {
# Validate our arrays
validate_hash($routes)

include network
$real_reload_command = $reload_command ? {
undef => $facts['os']['name'] ? {
Expand Down
3 changes: 1 addition & 2 deletions manifests/mroute/validate_gw.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# GWs validator. We need it to have compatibility with puppet 3.x, 'cause it doesn't support each.
#
define network::mroute::validate_gw ($routes) {
$route = $routes[$name]
validate_string($route)
String $route = $routes[$name]
}