Skip to content

Commit

Permalink
use next_hop for single hop bfd session
Browse files Browse the repository at this point in the history
Signed-off-by: Baorong Liu <[email protected]>
  • Loading branch information
baorliu committed Jan 13, 2025
1 parent 1443ba8 commit 1e34b66
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion inc/saibfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ typedef enum _sai_bfd_session_attr_t
* @type sai_object_id_t
* @flags MANDATORY_ON_CREATE | CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_VIRTUAL_ROUTER
* @condition SAI_BFD_SESSION_ATTR_HW_LOOKUP_VALID == true
* @condition SAI_BFD_SESSION_ATTR_HW_LOOKUP_VALID == true and SAI_BFD_SESSION_ATTR_USE_NEXT_HOP == false
*/
SAI_BFD_SESSION_ATTR_VIRTUAL_ROUTER,

Expand Down Expand Up @@ -501,6 +501,26 @@ typedef enum _sai_bfd_session_attr_t
*/
SAI_BFD_SESSION_ATTR_SRV6_SIDLIST_ID,

/**
* @brief Use next hop
*
* @type bool
* @flags CREATE_ONLY
* @default false
*/
SAI_BFD_SESSION_ATTR_USE_NEXT_HOP,

/**
* @brief Next Hop ID for single hop BFD session
*
* @type sai_object_id_t
* @flags MANDATORY_ON_CREATE | CREATE_AND_SET
* @objects SAI_OBJECT_TYPE_NEXT_HOP
* @allownull true
* @condition SAI_BFD_SESSION_ATTR_USE_NEXT_HOP == true
*/
SAI_BFD_SESSION_ATTR_NEXT_HOP_ID,

/**
* @brief Set BFD session statistics counting mode
*
Expand Down

0 comments on commit 1e34b66

Please sign in to comment.