The previous commit introduced very strict unit tests which check all
three involved components (config input, config output, internal data
structures) which revealed two more bugs in the peer-group override
implementation.
This commit fixes overrides for 'allowas-in <number>' and
'unsuppress-map', which both had a small mistake/typo causing those
issues.
Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
(cherry picked from commit
246bb5f07a3c491fdf67572f05b4f8d4a43e6abf)
for (ALL_LIST_ELEMENTS(peer->group->peer, node, nnode, member)) {
/* Skip peers with overridden configuration. */
if (CHECK_FLAG(member->af_flags_override[afi][safi],
- PEER_FLAG_ALLOWAS_IN_ORIGIN))
+ PEER_FLAG_ALLOWAS_IN))
continue;
/* Set flag and configuration on peer-group member. */
*/
for (ALL_LIST_ELEMENTS(peer->group->peer, node, nnode, member)) {
/* Skip peers with overridden configuration. */
- if (CHECK_FLAG(peer->filter_override[afi][safi][0],
+ if (CHECK_FLAG(member->filter_override[afi][safi][0],
PEER_FT_UNSUPPRESS_MAP))
continue;