From a2ceb8cc3a693cb2dc7490fa970401d9821c2b20 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 9 Sep 2023 16:10:33 +0200 Subject: [PATCH] bundles/bird: announce subnets via all ips --- bundles/bird/files/bird.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/bird/files/bird.conf b/bundles/bird/files/bird.conf index 0e6e876..b3ebbc9 100644 --- a/bundles/bird/files/bird.conf +++ b/bundles/bird/files/bird.conf @@ -19,7 +19,9 @@ protocol static { ipv4; % for route in sorted(node.metadata.get('bird/static_routes', set())): - route ${route} via ${node.metadata.get('bird/my_ip')}; +% for name, config in sorted(node.metadata.get('bird/bgp_neighbors', {}).items()): + route ${route} via ${config['local_ip']}; +% endfor % endfor } % endif