Commit b4b2799
committed
Fix: Mark phantom links used to create multihop EBGP sessions
The ebgp.multihop plugin creates bogus ('phantom' sounds so much better)
links to persuade the BGP module to establish BGP sessions between
endpoints of multihop EBGP sessions.
Unfortunately, other modules (in particular 'routing.static') find
those links and want to use them.
With this change, ebgp.multihop plugin marks the interfaces attached to
those links with the '_phantom_link' flag, and the nexthop resolution
for static routes avoids those interfaces.
At the moment, the bogus static route next hops seem to be the only
undesired side effect of those phantom links, but of course something
else is bound to pop up eventually :(
Fixes #24141 parent b239d6c commit b4b2799
File tree
3 files changed
+5
-0
lines changed- netsim
- extra/ebgp.multihop
- modules
- tests/topology/expected
3 files changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
| 833 | + | |
832 | 834 | | |
833 | 835 | | |
834 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments