Commit 0a41049
committed
A router with localas_ibgp session MUST change NH on all IBGP routes
The routes received over localas_ibgp session have to be reflected to
other IBGP neighbors. The next hop on those reflected routes MUST be
changed because we're not advertising the inter-AS subnet into IGP.
That makes the router with localas_ibgp session unsuitable to be a RR.
This change adds an extra step after the IBGP and EBGP sessions have
been built. It checks for the presence of localas_ibgp session and
sets neighbor.next_hop_self to 'all' on all IBGP sessions if needed.1 parent a9c7d71 commit 0a41049
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
401 | 428 | | |
402 | 429 | | |
403 | 430 | | |
| |||
468 | 495 | | |
469 | 496 | | |
470 | 497 | | |
| 498 | + | |
471 | 499 | | |
472 | 500 | | |
473 | 501 | | |
| |||
0 commit comments