]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Implement group-overrides for peer attrs
authorPascal Mathis <mail@pascalmathis.com>
Wed, 13 Jun 2018 17:34:17 +0000 (19:34 +0200)
committerPascal Mathis <mail@pascalmathis.com>
Thu, 14 Jun 2018 16:55:32 +0000 (18:55 +0200)
commita14810f43f6a7970468eb2568385ca75c4708e4d
treea9e4c0c1ed41f16437a1c2c0403f1740c1196111
parentb90a8e13eea49404d72dd0cdf94343d8a1831d69
bgpd: Implement group-overrides for peer attrs

This commit introduces BGP peer-group overrides for the last set of
peer-level attrs which did not offer that feature yet. The following
attributes have been implemented: description, local-as, password and
update-source.

Each attribute, with the exception of description because it does not
offer any inheritance between peer-groups and peers, is now also setting
a peer-flag instead of just modifying the internal data structures. This
made it possible to also re-use the same implementation for attribute
overrides as already done for peer flags, AF flags and AF attrs.

The `no neighbor <neigh> description` command has been slightly changed
to support negation for no parameters, one parameter or * parameters
(LINE...). This was needed for the test suite to pass and is a small
change without any bigger impact on the CLI.

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