From 1ba22ca92360f037ece9457e7353132fac18a14b Mon Sep 17 00:00:00 2001 From: Tobias Schramm Date: Tue, 2 May 2017 23:05:12 +0200 Subject: [PATCH] Add seperate variable for batman interface code --- manifests/fastd.pp | 1 + manifests/init.pp | 2 ++ 2 files changed, 3 insertions(+) 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,