add source ip address support

This commit is contained in:
ace 2021-10-27 14:35:53 +03:00
parent 90a78bf9b9
commit 7075530eff
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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 }};