]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: don't initialize ospf every time "router ospf" is used
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 13 Oct 2020 22:46:27 +0000 (01:46 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:49 +0000 (21:35 +0300)
commit4e5df67e9d3400bc0aa498d72eea7a10bd6d3cbb
treeac3cc7d98f6e0de855c4d2be839a1acd613d1682
parentf8e9147674fb816bc273c50aedc510da5a305b70
ospfd: don't initialize ospf every time "router ospf" is used

Move ospf initialization to the actual place where it is created.
We don't need to do that every time "router ospf" is entered.
Also remove a couple of useless checks that can never be true.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospfd/ospf_vty.c
ospfd/ospfd.c
ospfd/ospfd.h