]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Use router_id what Zebra has if we remove a static router_id
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 31 Oct 2024 09:38:40 +0000 (11:38 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 31 Oct 2024 09:38:40 +0000 (11:38 +0200)
commit1073e0f9b39b2810a114dea03f2d1e0b14e414d4
treebef17b50da529f1acd787a7d0b6937c05d05bd3e
parent80bfe6784fa945640251ae5c907899eb9d77cc0a
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>
ospfd/ospfd.c