Skip to content

Commit

Permalink
saineighbor.h: Updated SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_INDEX and deprec…
Browse files Browse the repository at this point in the history
…ated SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_IMPOSE_INDEX (#1202)

* saineighbor.h: Updated SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_INDEX and deprecated SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_INDEX

Signed-off-by: SarathBug <sarath.gadagottu@broadcom.com>
  • Loading branch information
SarathBug authored Mar 22, 2021
1 parent 8731ca6 commit b3244ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions inc/saineighbor.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,21 @@ typedef enum _sai_neighbor_entry_attr_t
*
* @type sai_uint32_t
* @flags CREATE_AND_SET
* @default 0
* @default internal
*/
SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_INDEX,

/**
* @brief Encapsulation index is imposed
* @brief Encapsulation index is imposed. This is deprecated
*
* This attribute is deprecated
* This is a flag which states that the encap index was imposed. On create and set
* the SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_INDEX must be present.
*
* @type bool
* @flags CREATE_AND_SET
* @default false
* @deprecated true
*/
SAI_NEIGHBOR_ENTRY_ATTR_ENCAP_IMPOSE_INDEX,

Expand Down
6 changes: 4 additions & 2 deletions meta/saisanitycheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -1177,10 +1177,12 @@ void check_attr_default_value_type(

case SAI_DEFAULT_VALUE_TYPE_SWITCH_INTERNAL:

if ((md->objecttype == SAI_OBJECT_TYPE_PORT) || (md->objecttype == SAI_OBJECT_TYPE_PORT_SERDES))
if ((md->objecttype == SAI_OBJECT_TYPE_PORT) ||
(md->objecttype == SAI_OBJECT_TYPE_PORT_SERDES) ||
(md->objecttype == SAI_OBJECT_TYPE_NEIGHBOR_ENTRY))
{
/*
* Allow PORT attribute list's to be set to internal.
* Allow PORT, NEIGHBOR attribute list's to be set to internal.
*/
break;
}
Expand Down

0 comments on commit b3244ce

Please sign in to comment.