]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Fix "malformed communities" for accept-own-nexthop
authorAppu Joseph <apjo@kaloom.com>
Fri, 29 May 2020 14:23:36 +0000 (10:23 -0400)
committerAppu Joseph <apjo@kaloom.com>
Fri, 29 May 2020 18:36:07 +0000 (14:36 -0400)
commit68f36a94da0e6274e60f191bc9c851b34c9e6f2e
tree00370e6533a2309bb19e968f252d045e377d5f94
parent276b698a43050393a2f73c24e254581b37cf7bbf
bgpd: Fix "malformed communities" for accept-own-nexthop

"set community accept-own-nexthop" returns "malformed communities"
error. This is because the token matching hits an earlier "accept-own"
and leaves "-nexthop" as a separate token to be processed.
Reorder the switch cases so that both are processed correctly.

Signed-off-by: Appu Joseph <apjo@kaloom.com>
bgpd/bgp_community.c