]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix "no ip ospf passive" command 9239/head
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 30 Jul 2021 11:11:33 +0000 (14:11 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 30 Jul 2021 12:08:08 +0000 (15:08 +0300)
commit82f0277b357410da849bcdceab048317f92077ed
treeb25f0d5bbfe80017d14daa1f8117b9f744f81cae
parent31a8ea0f5f5ee90363fb244a2ac81bfb13183987
ospfd: fix "no ip ospf passive" command

This command is currently always treated as an "unset" command, assuming
that active is the default type of the interface. In reality, the default
type of the interface can be changed using "passive-interface default"
command. Both "no" and regular commands can be "set" commands, depending
on the default value. They are treated as an "unset" when there's already
a config of the opposite type.

All this logic is in ospf_passive_interface_update.

Fixes #9240.

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