]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Fix group overrides for inverted AF flags
authorPascal Mathis <mail@pascalmathis.com>
Sun, 27 May 2018 15:39:45 +0000 (17:39 +0200)
committerPascal Mathis <mail@pascalmathis.com>
Mon, 28 May 2018 17:20:25 +0000 (19:20 +0200)
commit27c05d4d43d14464b15582c700a511156c4ea2af
treee43a7f7624389b6a30bc7c241b8fee3577ba3ea1
parent70ee29b4db0465ce58da486d80aba5615fa04b2c
bgpd: Fix group overrides for inverted AF flags

This commit fixes peer-group overrides for inverted AF flags. This
implementation is currently only being used by the three 'send-community'
flags. Commit 70ee29b4d introduced generic support for overriding AF
flags, but did not support inverted flags.

By introducing an additional array on the BGP peer structure called
'af_flags_invert' all current and future flags which should work in an
inverted way can now also be properly overridden.

The CLI commands will work exactly the same way as before, just that 'no
<command>' now sets the flag and override whereas '<command>' will unset
the flag and remove the override.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h