]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Ignore validating the attribute flags if path-attribute is configured
authorDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 1 May 2024 13:01:38 +0000 (16:01 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Wed, 1 May 2024 13:01:38 +0000 (16:01 +0300)
commit714e5be9a0804c0da2c9429bead274bbaefc9939
tree7ce4cefa7a8db502e8e903aaf1e1f410cc6d675e
parent48f5d828e3ed00bce92e5f916acf19304d0bf647
bgpd: Ignore validating the attribute flags if path-attribute is configured

E.g. Cisco sends AIGP attribute as transitive, but it's wrong. Hence, the session
is teared down, because of this bgp_attr_flag_invalid() test.

Relax this check if we have `neighbor X path-attribute <discard|treat-as-withdraw>`
configured.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_attr.c