diff options
| author | SumitAgarwal123 <sumit.agarwal@broadcom.com> | 2019-10-20 22:53:01 -0700 | 
|---|---|---|
| committer | SumitAgarwal123 <sumit.agarwal@broadcom.com> | 2019-10-28 21:38:20 -0700 | 
| commit | 7555dc6116a4fc51631b2c26ecb5b63a5c574674 (patch) | |
| tree | 693a001e27c1ec35343891694d7e514bc6d2a2bf /pimd/pim_bfd.c | |
| parent | 957ef1c93abd4f6a0abc8ee20b0c46effb02c023 (diff) | |
bfdd: Handling local and remote admin-down
Scenarios where this code change is required:
1. BFD is un-configured from BGP at remote end.
Neighbour BFD sends ADMIN_DOWN state, but BFD on local side will send
DOWN to BGP, resulting in BGP session DOWN.
Removing BFD session administratively shouldn't bring DOWN BGP session
at local or remote.
2. BFD is un-configured from BGP or shutdown locally.
BFD will send state DOWN to BGP resulting in BGP session DOWN.
(This is akin to saying do not use BFD for BGP)
Removing BFD session administratively shouldn't bring DOWN BGP session at
local or remote.
Signed-off-by: Sayed Mohd Saquib sayed.saquib@broadcom.com
Diffstat (limited to 'pimd/pim_bfd.c')
| -rw-r--r-- | pimd/pim_bfd.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_bfd.c b/pimd/pim_bfd.c index 87d0f9fa22..01a7980858 100644 --- a/pimd/pim_bfd.c +++ b/pimd/pim_bfd.c @@ -270,7 +270,7 @@ static int pim_bfd_interface_dest_update(ZAPI_CALLBACK_ARGS)  			continue;  		}  		old_status = bfd_info->status; -		bfd_info->status = status; +		BFD_SET_CLIENT_STATUS(bfd_info->status, status);  		monotime(&tv);  		bfd_info->last_update = tv.tv_sec;  | 
