bfd: Fix cpath_down set failure.
authorAlex Wang <alexw@nicira.com>
Thu, 9 Jan 2014 02:51:43 +0000 (18:51 -0800)
committerEthan Jackson <ethan@nicira.com>
Thu, 9 Jan 2014 03:04:53 +0000 (19:04 -0800)
commita613b02eeb06345b510e9abdb929750d2eca25d6
tree57fd76df70cbf1b3a13a98ad8b67754f60382b8e
parent6e953fc7cb398b54737e205b086ad494ccc30c48
bfd: Fix cpath_down set failure.

Commit ccc09689 (bfd: Implement Bidirectional Forwarding Detection.)
set the bfd local diagnostic to "Concatenated Path Down" in response
to the set of cpath_down only when the current local diagnostic is
"None".  However, since the bfd local diagnostic is not reset when
the bfd state is restored from last erroneous state, the set of
cpath_down will not update the local diagnostic in that case.

This commit fixes the bug by always checking for local diagnostic
change when cpath_down is set or reset.

Bug #22625
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/bfd.c