Skip to content

Commit

Permalink
corerouter/bird: fix ifname retrieval for local adhoc interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
spolack committed Oct 31, 2024
1 parent 98a50f7 commit 978b7ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions roles/cfg_openwrt/templates/corerouter/bird.conf.j2
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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) }};
};
Expand Down

0 comments on commit 978b7ff

Please sign in to comment.