summaryrefslogtreecommitdiff
path: root/lib/vector.c
diff options
context:
space:
mode:
authorPascal Mathis <mail@pascalmathis.com>2018-05-17 22:51:35 +0200
committerPascal Mathis <mail@pascalmathis.com>2018-05-19 14:43:42 +0200
commit47cbc09b639026bcda9d03bc7fb5e48d87aee6c8 (patch)
treefb8748894bfb5afd2666646be0642ab0275c68a0 /lib/vector.c
parent29be7d92cc65e685bf3e543b1033729fc7b39235 (diff)
bgpd: Move 'enforce-first-as' from global to peer
This commit moves the command 'bgp enforce-first-as' from global BGP instance configuration to peer/neighbor configuration, which can now be changed by executing '[no] neighbor <neighbor> enforce-first-as'. End users can now enforce sane first-AS checking on regular sessions while e.g. disabling the checks on routeserver sessions, which usually strip away their own AS number from the path. To ensure backwards-compatibility, a migration routine was added which automatically sets the 'enforce-first-as' flag on all configured neighbors if the old global setting was activated. The old global command immediately disappears after running the migration routine once. Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
Diffstat (limited to 'lib/vector.c')
0 files changed, 0 insertions, 0 deletions