diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-12 10:10:10 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-12 10:15:12 +0100 |
commit | aca9d98c818407b8009bb861ec0f5a817a9a5637 (patch) | |
tree | 0faa33b0b62e718a120df400b56b0e35331b6ff6 /data/templates/frr/bgpd.frr.tmpl | |
parent | bddabbf696ec8ff638b93c5260aa4823dcc43df3 (diff) | |
download | vyos-1x-aca9d98c818407b8009bb861ec0f5a817a9a5637.tar.gz vyos-1x-aca9d98c818407b8009bb861ec0f5a817a9a5637.zip |
bgp: T4069: add "parameters shutdown" CLI option
Administrative shutdown of all peers of a bgp instance. Drop all BGP peers,
but preserve their configurations. The peers are notified in accordance with
RFC 8203 by sending a NOTIFICATION message with error code Cease and subcode
Administrative Shutdown prior to terminating connections.
This global shutdown is independent of the neighbor shutdown, meaning that
individually shut down peers will not be affected by lifting it.
Diffstat (limited to 'data/templates/frr/bgpd.frr.tmpl')
-rw-r--r-- | data/templates/frr/bgpd.frr.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl index e49aaf12c..01e62a94b 100644 --- a/data/templates/frr/bgpd.frr.tmpl +++ b/data/templates/frr/bgpd.frr.tmpl @@ -540,6 +540,9 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none {% if parameters.router_id is defined and parameters.router_id is not none %} bgp router-id {{ parameters.router_id }} {% endif %} +{% if parameters.shutdown is defined %} + bgp shutdown +{% endif %} {% endif %} {% if timers is defined and timers.keepalive is defined and timers.holdtime is defined %} timers bgp {{ timers.keepalive }} {{ timers.holdtime }} |