]> git.puffer.fish Git - matthieu/frr.git/commit
bfdd: implement BFD session configuration profiles
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 15 May 2020 20:38:04 +0000 (17:38 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 20 May 2020 18:18:00 +0000 (15:18 -0300)
commitccc9ada8681471ab6093502686ddd9122058dcbe
treed7cc49e01ae2843eac3e56dc83b3dd219d2322ef
parentd40d6c2274b7d05b4facd70228aaa8a1866d7efa
bfdd: implement BFD session configuration profiles

Allow user to pre-configure peers with a profile. If a peer is using a
profile any configuration made to the peer will take precedence over
the profile configuration.

In order to track the peer configuration we have now an extra copy of
the peer configuration in `peer_profile` inside `struct bfd_session`.
This information will help the profile functions to detect user
configurations and avoid overriding what the user configured. This is
especially important for peers created via other protocols where the
default `shutdown` state is disabled (peers created manually are
`shutdown` by default).

Profiles can be used before they exist: if no profile exists then it
will use the default configuration.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
bfdd/bfd.c
bfdd/bfd.h
bfdd/bfdd_cli.c
bfdd/bfdd_nb.c
bfdd/bfdd_nb.h
bfdd/bfdd_nb_config.c
bfdd/ptm_adapter.c