]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix "no ip ospf passive" command 9268/head
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 30 Jul 2021 11:11:33 +0000 (14:11 +0300)
committermergify-bot <noreply@mergify.io>
Tue, 3 Aug 2021 14:49:43 +0000 (14:49 +0000)
commitca73177fa14a08337b9d62905c0fd7034f54f6aa
treef801247bd1d8c23f7e54428ba9cc8ab6ad88f560
parent819ce980c4e518475e2ccc6036fd2d5218163152
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>
(cherry picked from commit 82f0277b357410da849bcdceab048317f92077ed)
ospfd/ospf_vty.c