]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgpd.c
bgpd: fix maximum-prefix + peer-group
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 7 May 2018 17:25:10 +0000 (13:25 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 7 May 2018 18:44:10 +0000 (14:44 -0400)
commit04e1c5bb4a8a09d7a3bfaf0e4deb3955fa4f7fe0
treeaf105bf6e28e474697fcd9b862b06ec6cbbfec5b
parente8f95403e4b4d55c605ef49a0d772f30834134a4
bgpd: fix maximum-prefix + peer-group

Attribute set on peer was being overridden when set on the peer-group.

This commit also adds a parallel flags array that indicates whether a
particular flag is sourced from the peer-group or is peer-specific. It
assumes the default state of all flags is unset. This looks to be true
except in the case of PEER_FLAG_SEND_COMMUNITY,
PEER_FLAG_SEND_EXT_COMMUNITY, and PEER_FLAG_SEND_LARGE_COMMUNITY; these
flags are set by default except when the user specifies to use
config-type = cisco. However the flag field can merely be flipped to
mean the negation of those options in a future commit.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgpd.c
bgpd/bgpd.h