diff --git a/manifests/fastd.pp b/manifests/fastd.pp index 9910a0e..cdf957a 100644 --- a/manifests/fastd.pp +++ b/manifests/fastd.pp @@ -1,4 +1,5 @@ define ffnord::fastd( $mesh_code, + $batman_code, $mesh_interface, # may not be more than 10 characters $mesh_mac, $mesh_hop_penalty = 60, # hop penalty for batman advanced diff --git a/manifests/init.pp b/manifests/init.pp index 59d250c..f853083 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -74,6 +74,7 @@ } -> ffnord::fastd { "fastd_${mesh_code}": mesh_code => $mesh_code, + batman_code => $mesh_code, mesh_interface => $mesh_code, mesh_mac => $mesh_mac, mesh_hop_penalty=> $mesh_hop_penalty, @@ -86,6 +87,7 @@ } -> ffnord::fastd { "fastd_igw_${mesh_code}": mesh_code => "igw-${mesh_code}", + batman_code => $mesh_code, mesh_interface => "igw-${mesh_code}", mesh_mac => $mesh_mac, mesh_hop_penalty=> $igw_hop_penalty,