Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graceful Shutdown: Add a VyOS example #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions guides/graceful_shutdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,23 @@ router bgp <own_ASN>
```
This will enable sending of the graceful shutdown community on all prefixes to all peers.

## VyOS
Older Versions:
```
set policy community-list GSHUT description 'RFC 8326 -- Graceful Shutdown'
set policy community-list GSHUT rule 10 action 'permit'
set policy community-list GSHUT rule 10 regex '65535:0'

set policy route-map TRANSIT-IN rule 10 action 'permit'
set policy route-map TRANSIT-IN rule 10 match community community-list 'GSHUT'
set policy route-map TRANSIT-IN rule 10 set local-preference '0'
```

Modern Versions:
```
set protocols bgp parameters graceful-shutdown
```

## Junos

Junos supports graceful shutdown by default [as of version 19.1](https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/graceful-shutdown-edit-protocols-bgp.html). Local preference can be set to any value. For previous versions, or if one does not want to use the provided feature, it still possible to configure it with a policy.
Expand Down