Skip to content

Commit

Permalink
Add SAI_OBJECT_TYPE_TUNNEL object to break-before-make list (sonic-ne…
Browse files Browse the repository at this point in the history
…t#1075)

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 and qiluo-msft committed Aug 11, 2022
1 parent 8ac3aa7 commit 21f3d7c
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 @@ -109,6 +109,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 21f3d7c

Please sign in to comment.