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