Skip to content

Commit 81c1987

Browse files
oleksandrivantsivlguohan
authored andcommitted
[everflow]: Remove SAI_MIRROR_SESSION_ATTR_VLAN_ID from VLAN validation. (sonic-net#165)
0 is valid value for SAI_MIRROR_SESSION_ATTR_VLAN_ID attribute. Means that outer packet should be untagged. On attempt to create session with VLAN 0 error was returned.
1 parent 383ed11 commit 81c1987

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

meta/sai_meta.h

+2-5
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,8 @@ typedef struct _sai_attr_metadata_t {
623623
return true;
624624
}
625625

626-
if (objecttype == SAI_OBJECT_TYPE_MIRROR &&
627-
attrid == SAI_MIRROR_SESSION_ATTR_VLAN_ID)
628-
{
629-
return true;
630-
}
626+
// Requires special handling ("0" is valid value).
627+
// SAI_MIRROR_SESSION_ATTR_VLAN_ID
631628

632629
// has different serialization than u16
633630
// SAI_ACL_ENTRY_ATTR_FIELD_OUTER_VLAN_ID

0 commit comments

Comments
 (0)