]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Use router_id what Zebra has if we remove a static router_id 17353/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 31 Oct 2024 09:38:40 +0000 (11:38 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 5 Nov 2024 15:21:02 +0000 (15:21 +0000)
commitd12ea7dd8d48ffc4dc8d0a1b65db4328260b0c8a
tree715cf62b88704450096a8ad3a6ab160b211c53d2
parente283627fe0f57b7dad54caba950714c6ee3f9fd3
ospfd: Use router_id what Zebra has if we remove a static router_id

If we set router-id, e.g. `router-id x.x.x.x`, then we have:

```
pc.donatas.net# show ip ospf | include Router ID
 OSPF Routing Process, Router ID: x.x.x.x
```

But once we remove it (`no router-id x.x.x.x`), the old router-id remains.

This is kinda OK, but to be consistent with OSPFv3 we should use what Zebra
already has, instead of retaining the old one.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 1073e0f9b39b2810a114dea03f2d1e0b14e414d4)
ospfd/ospfd.c