]> git.puffer.fish Git - matthieu/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>
Tue, 13 Oct 2020 23:22:16 +0000 (02:22 +0300)
commit0549eeda3d642bb8135b068b897694aad5844dae
tree3382731867631451cc6dad48c2d9a13efbb96c53
parentcbf15681105302eaa18945bab458f60cf05ec8a1
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