diff --git a/README.md b/README.md index f2d2493..fbe61d2 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ Use with network role for loopback/dummy interface configuraton BIRD config example: - bird_interface: "dummy0" + # Set routing interface + bird_interface: "eth1" bird: bgp: common: diff --git a/templates/bird.conf.j2 b/templates/bird.conf.j2 index 1e18da2..67a5cfc 100644 --- a/templates/bird.conf.j2 +++ b/templates/bird.conf.j2 @@ -34,6 +34,9 @@ protocol bgp {{ protocol_bgp.name }} { {% if protocol_bgp.confederation is defined %} confederation {{ protocol_bgp.confederation }}; confederation member yes; +{% endif %} +{% if protocol_bgp.source is defined %} + source {{ protocol_bgp.source }}; {% endif %} local as {{ protocol_bgp.local_asnum }}; neighbor {{ protocol_bgp.remote_addr }} as {{ protocol_bgp.remote_asnum }};