]> git.puffer.fish Git - mirror/frr.git/commit
bfdd: avoid creating duplicate peer contexts
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 11 Apr 2019 11:29:47 +0000 (13:29 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 7 May 2019 14:01:42 +0000 (16:01 +0200)
commit5ef92a2b20914efda1d2bdff65a17c58f9ec8dca
treed8b7448a2438b44e1395377eeb9b815b3e46c654
parent626618caeecc5fcc1ba27153e5acb386a1068ca4
bfdd: avoid creating duplicate peer contexts

when configuring bfd peers, some parameters may or may not be taken into
account to search for a previous context. This has as consequence that
the result is different with the order of vty commands:

bfd
peer 4.5.6.7 vrf AAAA local-address 1.2.3.5
end
peer 4.5.6.7 vrf AAAA   <--- should not create new session
end

Similarly, the user thinks it has overwritten some key parameters like
local address, whereas it is wrong.
here, some informational message should be present.

bfd
peer 4.5.6.7 vrf AAAA
end
peer 4.5.6.7 vrf AAAA local-address 1.2.3.5
<--- should inform that the key lookup 1.2.3.5 is wrong
end

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bfdd/bfd.c