sonic-buildimage/platform/components/docker-gbsyncd-credo/crshell
Junhua Zhai fb2d8eed29
[gearbox] use credo sai v0.7.2 (#9365)
Sonic master has moved to use SAI v1.9.1. For consistency, use the latest credo sai v0.7.2 package, built with
SAI header v1.9.1 too.

How I did it
Update credo sai url for v0.7.2
Add a debug tool crshell
2021-11-24 11:09:51 -08:00

25 lines
471 B
Python
Executable File

#!/usr/bin/env python3
import socket
import time
from subprocess import call
HOST = '127.0.0.1' # Standard loopback interface address (localhost)
PORT = 8299 # Port to listen on (non-privileged ports are > 1023)
def main() -> None:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.send(b'debug_shell')
time.sleep(1)
call(["/usr/bin/crcli"])
s.close()
return
if __name__ == '__main__':
main()