How to set up SAIthrift for validation on broadcom switch?


ayush.saxena@...
 

The document given on github is incomplete. There is one video available on youtube of OCP networking workshop. It fills the gaps left by the github document, but still problems arises, and it is based on mellanox.

The steps which I have followed are:-
  • Installing thrift 0.9.2 on both switch and client.
  • Installing ptf on switch
  • copying sai.profile and port_config.ini from buildimage
  • copying th_32x100.config.bcm from  buildimage and copying it to path specified in sai.profile
  • on running sudo ./saiserver -p sai.profile -f port_config.ini, I am getting the following output-
    • profile map file: sai.profile
    • port map file: port_config.ini
    • insert: SAI_INIT_CONFIG_FILE:/usr/share/sonic/hwsku/th_32x100.config.bcm
    • insert: SAI_NUM_ECMP_MEMBERS:64
 


ayush.saxena@...
 

On checking the syslog, we are getting 
Sep 14 07:40:04.348814 sonic INFO saiserver: [0] SAI_API_UNSPECIFIED:sai_api_initialize:371 BRCM SAI ver: [4.2.1.3], OCP SAI ver: [1.6.5], SDK ver: [sdk-6.5.19] Sep 14 07:40:04.348988 sonic CRIT saiserver: [0] SAI_API_SWITCH:brcm_sai_create_switch:610 Error unsupported packet tx/rx feature

The sai.mk file in https://github.com/Azure/sonic-buildimage/blob/master/platform/broadcom/sai.mk shows BRCM_SAI = libsaibcm_5.0.0.8_amd64.deb.
Is it a versioning error?