kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.org
GNU General Public License v2.0
52 stars 12 forks source link

OSPF: Router id sometimes is not selected correctly #807

Open mattiaswal opened 1 week ago

mattiaswal commented 1 week ago

Current Behavior

When apply a whole configuration, the router id (sometimes) gets selected before all interfaces/address is created. Have not seen it on reboot only running tests.

admin@R1:/> show ospf neighbor 

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
192.168.4.1       1 Full/-          22m17s             3.866s 10.0.41.1       e5:10.0.41.2                         0     0     0
192.168.3.1       1 Full/DR         22m14s             3.479s 10.0.13.2       e6:10.0.13.1                         0     0     0
1.1.1.1           1 Full/Backup     22m10s             3.200s 10.0.12.2       e7:10.0.12.1                         0     0     0

Expected Behavior

admin@R1:/> show ospf neighbor 

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
10.0.0.4         1 Full/-          22m17s             3.866s 10.0.41.1       e5:10.0.41.2                         0     0     0
10.0.0.3         1 Full/DR         22m14s             3.479s 10.0.13.2       e6:10.0.13.1                         0     0     0
1.1.1.1          1 Full/Backup     22m10s             3.200s 10.0.12.2       e7:10.0.12.1                         0     0     0

Steps To Reproduce

Run ietf_routing/ospf_multiarea@50796912, it sets a lot of IP addresses, and use automatic router id selection on R3, but it selects the wrong IP. Restarting ospfd changes the router id to the correct one.

troglobit commented 3 days ago

CCB (core team meeting): should be more stable from a reboot since interfaces are created and set up at boot, in runlevel S, and ospfd is started in runlevel 2. Decision, target: future.