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]>

remove extra space

Signed-off-by: Baorong Liu <[email protected]>

move new added attr to the end of enum

Signed-off-by: Baorong Liu <[email protected]>
  • Loading branch information
baorliu committed Jan 14, 2025
1 parent 1443ba8 commit 4fb9d00
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 @@ -523,6 +523,26 @@ typedef enum _sai_bfd_session_attr_t
*/
SAI_BFD_SESSION_ATTR_SELECTIVE_COUNTER_LIST,

/**
* @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 End of attributes
*/
Expand Down

0 comments on commit 4fb9d00

Please sign in to comment.