diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-06-22 16:23:24 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-06-22 16:23:24 +0300 |
| commit | b099a5c866a4387fca495b021548449e48f8db37 (patch) | |
| tree | 00a22af5c94c17908d4416ce15a8e2800b2c2e74 /python/clidef.py | |
| parent | 8803809f0b51319606b339db00684f1f0eddfc0f (diff) | |
bgpd: Do not treat the route as martian for static BGP routes
If we have something like:
```
ip route 1.1.1.0/24 Null0
!
router bgp 100
no bgp ebgp-requires-policy
neighbor 192.168.0.2 remote-as 200
!
address-family ipv4 unicast
network 1.1.1.0/24
redistribute connected
exit-address-family
!
line vty
!
```
1.1.1.0/24 is not advertised due to martian nexthop (0.0.0.0). It starts
working only when we use `redistribute static`.
By checking if it's a BGP static route we able to announce
1.1.1.0/24 with `network 1.1.1.0/24` without redistribute even when
`bgp import-check` is enabled.
Disabling `bgp import-check` works as well, but it's enabled by default
since 7.4.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'python/clidef.py')
0 files changed, 0 insertions, 0 deletions
