From cd01197f40e4533636090ffd9a9dd3e6b5484f16 Mon Sep 17 00:00:00 2001 From: Simon Polack Date: Thu, 31 Oct 2024 00:31:06 +0100 Subject: [PATCH] corerouter/bird: fix ifname retrieval for local adhoc interfaces --- roles/cfg_openwrt/templates/corerouter/bird.conf.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/cfg_openwrt/templates/corerouter/bird.conf.j2 b/roles/cfg_openwrt/templates/corerouter/bird.conf.j2 index 5a962f3e..6ca6db09 100644 --- a/roles/cfg_openwrt/templates/corerouter/bird.conf.j2 +++ b/roles/cfg_openwrt/templates/corerouter/bird.conf.j2 @@ -1,7 +1,6 @@ #jinja2: trim_blocks: "true", lstrip_blocks: "true" {% import 'libraries/network.j2' as libnetwork with context %} - log syslog all; debug protocols all; @@ -40,7 +39,7 @@ protocol babel { # Mesh interfaces {% for nw in networks | selectattr('role', 'equalto', 'mesh') %} {% set default_mesh_metric = mesh_metric_adhoc_in if 'mesh_ap' else mesh_metric_default_in %} - interface "{{ libnetwork.getPortIfname(nw) }}" { + interface "{{ libnetwork.getIfname(nw) }}" { type wireless; rxcost {{ nw.get('mesh_metric', default_mesh_metric) }}; };