Skip to content

BGP Graceful Restart Support #302

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions models/enterprise_sonic/bgp/deleted_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#!
#router bgp 4
# router-id 10.2.2.4
# graceful-restart enable
# graceful-restart restart-time 1
# graceful-restart stalepath-time 500
# bestpath as-path ignore
# bestpath as-path confed
# bestpath med missing-as-worst confed
Expand All @@ -28,6 +31,9 @@
# - bgp_as: 4
# router_id: 10.2.2.4
# log_neighbor_changes: False
# graceful_restart:
# stale_routes_time: 500
# restart_time: 1
# bestpath:
# as_path:
# confed: True
Expand Down Expand Up @@ -67,6 +73,7 @@
# bestpath compare-routerid
#!
#router bgp 4
# graceful-restart enable
# log-neighbor-changes
# bestpath compare-routerid
#!
1 change: 1 addition & 0 deletions models/enterprise_sonic/bgp/deleted_example_02.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# log-neighbor-changes
#!
#router bgp 11 vrf VrfCheck2
# graceful-restart enable
# log-neighbor-changes
# bestpath as-path ignore
# bestpath med missing-as-worst confed
Expand Down
5 changes: 5 additions & 0 deletions models/enterprise_sonic/bgp/merged_example_01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# - bgp_as: 4
# router_id: 10.2.2.4
# log_neighbor_changes: False
# graceful_restart:
# enabled: True
# preserve_fw_state: True
# bestpath:
# as_path:
# confed: True
Expand Down Expand Up @@ -58,6 +61,8 @@
#!
#router bgp 4
# router-id 10.2.2.4
# graceful-restart enable
# graceful-restart preserve-fw-state
# bestpath as-path ignore
# bestpath as-path confed
# bestpath med missing-as-worst confed
Expand Down
23 changes: 23 additions & 0 deletions models/enterprise_sonic/bgp/sonic_bgp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,29 @@ DOCUMENTATION: |
description:
- Enable/disable logging neighbor up/down and reset reason.
type: bool
graceful_restart:
description:
- Configure graceful restart
type: dict
suboptions:
enabled:
description:
- Enable graceful restart
type: bool
restart_time:
description:
- Configures restart-time.
- The range is from 1 to 3600.
type: int
stale_routes_time:
description:
- Configures stale-routes-time
- The range is from 1 to 3600.
type: int
preserve_fw_state:
description:
- Configures preserve-fw-state
type: bool
bestpath:
description:
- Configures the BGP bestpath.
Expand Down