]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: We try to skip out of updating the multipath aggregate if there are no
authorJosh Bailey <joshb@google.com>
Thu, 21 Jul 2011 03:52:06 +0000 (20:52 -0700)
committerJosh Bailey <joshb@google.com>
Thu, 21 Jul 2011 03:52:06 +0000 (20:52 -0700)
commit01d7ff0a2166a422c56bd26f04fc22832a9e690b
tree5fed07bab4751e28e50dd7ff7145b06a565c4f5a
parent78d92e1721538ec41feb2b1c34712675b830087b
bgpd: We try to skip out of updating the multipath aggregate if there are no
changes in the multipath set or attributes, but failed to check for
just a bestpath change. The result is there is no attribute on the new
bestpath and we hit the assert. Added the bestpath check and
rearranged the code to only check attributes when there is no bestpath
or multipath change, so we only scan the for attribute changes when
necessary.

* bgpd/bgp_mpath.c
  * bgp_info_mpath_aggregate_update(): Added check for bestpath
    change before skipping the aggregate generation. Skip the attribute
    check if either the multipath set or bestpath has changed.
bgpd/bgp_mpath.c