SAI Testing Using SAI Challanger

68 views
Skip to first unread message

Alkama Hasan

unread,
Sep 20, 2023, 6:54:23 AM9/20/23
to sonicproject
Hi Team,
I am trying to use SAI Challanger on top of my sonic-vs to test the sai 
or use see the behaviour of SAI challanger.
I didn't anywhere the steps mentioned how to launch the sai challanger as a container on sonic
Followed this path 
do i have to clone the repo inside sonic and run the process as mentioned or is there any otherway to do the same


Thanks,
Alkama Hasan

Andriy Kokhan

unread,
Sep 20, 2023, 8:26:25 AM9/20/23
to Alkama Hasan, sonicproject
Hi Alkama Hasan,

Actually, it can be simpler to run SAI-C outside SONiC. You can just clone SAI-C and run "./run.sh -i client". This command will pull the latest SAI-C client image from DockerHub and start it (so, you can skip ./build.sh step). As it's mentioned in sonic_usecase.md, you also need to create a testbed description file and provide a proper client.config.ip (eth0 IP of your SONiC VS). That's it.

Not, since you will be running TCs on top of SONiC VS, no traffic checks (saivs which is used in SONiC VS, does not have a dataplane)...

Regards,
Andriy

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/352c015d-b49b-496f-adae-aab87f65adcdn%40googlegroups.com.

Alkama Hasan

unread,
Sep 28, 2023, 6:34:29 AM9/28/23
to sonicproject
Hi Andriy, 
Thanks for the reply I tried the steps you mentioned as well as present there in sonic_usecase.md 
here is my testbed
{

"npu": [
  {
    "alias": "vs",
    "target": "saivs",
    "sku": null,
    "client": {
      "type": "redis",
      "config": {
          "ip": "10.11.12.13",
          "port": "6379",
          "loglevel": "NOTICE"
      }
    }
  }
]


}
 and i executed this command 
./exec.sh -i client pytest -v --testbed=saivs_standalone
i got too much error not able to figure out what's going on can you please verify wheather my tesbed configuration for saivs is correct?
and the process i did is?
in my sonic the ip addrs of eth0 is 
/sbin/ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.11.12.13  netmask 255.255.255.0  broadcast 10.11.12.255
        inet6 fe80::5054:ff:fe51:ab6c  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:51:ab:6c  txqueuelen 1000  (Ethernet)
        RX packets 423  bytes 38336 (37.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 41438  bytes 10649397 (10.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Thanks,
Alkama Hasan

Andriy Kokhan

unread,
Sep 28, 2023, 11:10:39 AM9/28/23
to Alkama Hasan, sonicproject
Hi Alkama Hasan

You should just update SONiC VS IP address there.

Also, before running SAI-C, please make sure all SONiC services are up and running (swss should be UP for at least 3 mins).

In case something doesn't work, please file the GitHub issue in SAI-C repository. 

Best regards,
Andriy

Alkama Hasan

unread,
Oct 11, 2023, 12:42:07 PM10/11/23
to sonicproject
Hi Andriy,
since you told that saivs doesn't have dataplane then how the traffic flows in saivs?
shall i try something manually in saivs
and i think SONiC Vs contains all the functionality in control plane stack so how a routing interaction happened in through saivs

thanks 
Alkama

Reply all
Reply to author
Forward
0 new messages