Skip to content

Commit

Permalink
Add SAI_OBJECT_TYPE_TUNNEL object to break-before-make list (#1075)
Browse files Browse the repository at this point in the history
SAI_OBJECT_TYPE_TUNNEL has fewer attributes in 201811 than in 202012. These new attributes are CREATE only, and can't be added using just SET oper. Hence old object needs to be removed, and new object needs to be added.
Moreover existing sequence (make before break) causes SAI errors in removing VXLAN tunnel (as part of CPA teardown).

Adding SAI_OBJECT_TYPE_TUNNEL to break before make to avoid creating a new object before removing existing ones.
  • Loading branch information
vaibhavhd authored Jul 28, 2022
1 parent cac90d7 commit 9652ea4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ config_syncd_bcm()
fi

echo "SAI_OBJECT_TYPE_ACL_TABLE" >> /tmp/break_before_make_objects
echo "SAI_OBJECT_TYPE_TUNNEL" >> /tmp/break_before_make_objects
CMD_ARGS+=" -b /tmp/break_before_make_objects"

[ -e /dev/linux-bcm-knet ] || mknod /dev/linux-bcm-knet c 122 0
Expand Down

0 comments on commit 9652ea4

Please sign in to comment.