diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-12 19:49:18 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-03-14 11:09:57 +0100 |
commit | f3ed5e7c57c123661b1b550823a467a34c161024 (patch) | |
tree | afb9faf3bd9e3b134657d018137f987c3a4d1cd7 /data | |
parent | 576f1cb41c4d531bd16628e9b772f5ff766e3fad (diff) | |
download | vyos-1x-f3ed5e7c57c123661b1b550823a467a34c161024.tar.gz vyos-1x-f3ed5e7c57c123661b1b550823a467a34c161024.zip |
vrf: bgp: T2271: create individual BGP process for specified VRF name
The following VyOS CLI config
vrf red {
bgp 100 {
neighbor 1.1.1.1 {
peer-group foo
}
peer-group foo {
passive
password bar
remote-as 200
}
}
}
Will generaste the FRR configuration:
!
router bgp 100 vrf red
no bgp ebgp-requires-policy
no bgp network import-check
neighbor foo peer-group
neighbor foo remote-as 200
neighbor foo password bar
neighbor foo passive
neighbor 1.1.1.1 peer-group foo
!
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr/bgp.frr.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index f7aeaeb9d..30e1ec082 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -185,7 +185,7 @@ {% endif %} {% endmacro %} ! -router bgp {{ asn }} +router bgp {{ asn }} {{ 'vrf ' + vrf if vrf is defined and vrf is not none }} {% if parameters is defined and parameters.ebgp_requires_policy is defined %} bgp ebgp-requires-policy {% else %} |