Commit 75a9757
Expose policy backup address in fboss2
Summary:
# Context
The BGP FRR stack associates protected routes with a locally configured backup address, but operators need to verify both the BGP association and the backup nexthop received by FBOSS Agent. Design: https://docs.google.com/document/d/1wRTKEsbN4NAxEmF4PRrj-6UabvE4X_hTnrgdChgWh34/edit
# This Diff
Add optional `backup_addr` fields to the legacy and canonical BGP route API models, populate them from `BgpPath`, and preserve the field in both Python canonical-RIB decoders when they reconstruct `TBgpPath`. `fboss2 show bgp` renders the configured address as `Backup`; `fboss2 show route` marks backup nexthops as `(BACKUP)` while leaving ordinary primary output unchanged. This is observability only and does not affect path selection, FIB programming, or switchover enablement.
# This Stack
1. **D114950612** applies and caches the ingress policy action.
2. **D114950610** carries the backup address from Adj-RIB-In into Loc-RIB.
3. **D114950611** programs the backup address to FBOSS.
4. **This diff** exposes the resulting state in BGP and FBOSS CLI output.
Reviewed By: jaiharil
Differential Revision: D115002980
fbshipit-source-id: abe1ab4bb526cdda9ead8224223b73a00e7c5f611 parent 14ec47e commit 75a9757
5 files changed
Lines changed: 27 additions & 2 deletions
File tree
- fboss/cli/fboss2
- commands/show/bgp
- oss
- test
- neteng/fboss/bgp/if
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
422 | 433 | | |
423 | | - | |
| 434 | + | |
424 | 435 | | |
425 | 436 | | |
426 | 437 | | |
427 | 438 | | |
428 | 439 | | |
| 440 | + | |
429 | 441 | | |
430 | 442 | | |
431 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
117 | | - | |
| 122 | + | |
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
386 | 388 | | |
387 | 389 | | |
388 | 390 | | |
| 391 | + | |
| 392 | + | |
389 | 393 | | |
390 | 394 | | |
391 | 395 | | |
| |||
0 commit comments