Skip to content

Commit 8a00ad7

Browse files
authored
[gearbox] support gearbox feature on docker-sonic-vs (#8765)
1 parent 2662a19 commit 8a00ad7

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

device/virtual/x86_64-kvm_x86_64-r0/brcm_gearbox_vs/context_config.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"dbCounters" : "COUNTERS_DB",
88
"dbFlex": "FLEX_COUNTER_DB",
99
"dbState" : "STATE_DB",
10+
"zmq_enable": false,
11+
"zmq_endpoint": "tcp://127.0.0.1:5555",
12+
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556",
1013
"switches": [
1114
{
1215
"index" : 0,
@@ -21,10 +24,13 @@
2124
"dbCounters" : "GB_COUNTERS_DB",
2225
"dbFlex": "GB_FLEX_COUNTER_DB",
2326
"dbState" : "STATE_DB",
27+
"zmq_enable": false,
28+
"zmq_endpoint": "tcp://127.0.0.1:5565",
29+
"zmq_ntf_endpoint": "tcp://127.0.0.1:5566",
2430
"switches": [
2531
{
2632
"index" : 1,
27-
"hwinfo" : ""
33+
"hwinfo": "mdio0_0_0/0"
2834
}
2935
]
3036
}

platform/vs/docker-sonic-vs/Dockerfile.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ COPY ["buffermgrd.sh", "/usr/bin/"]
175175
176176
COPY ["platform.json", "/usr/share/sonic/device/x86_64-kvm_x86_64-r0/"]
177177
COPY ["hwsku.json", "/usr/share/sonic/device/x86_64-kvm_x86_64-r0/Force10-S6000/"]
178+
COPY ["hwsku.json", "/usr/share/sonic/device/x86_64-kvm_x86_64-r0/brcm_gearbox_vs/"]
178179
179180
# Workaround the tcpdump issue
180181
RUN mv /usr/sbin/tcpdump /usr/bin/tcpdump

platform/vs/docker-sonic-vs/start.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ fi
109109

110110
/usr/bin/configdb-load.sh
111111

112+
if [ "$HWSKU" = "brcm_gearbox_vs" ]; then
113+
supervisorctl start gbsyncd
114+
supervisorctl start gearsyncd
115+
fi
116+
112117
supervisorctl start syncd
113118

114119
supervisorctl start portsyncd

platform/vs/docker-sonic-vs/supervisord.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ autorestart=false
4343
stdout_logfile=syslog
4444
stderr_logfile=syslog
4545

46+
[program:gbsyncd]
47+
command=/usr/bin/syncd -s -p /usr/share/sonic/hwsku/pai.profile -x /usr/share/sonic/hwsku/context_config.json -g 1
48+
priority=4
49+
autostart=false
50+
autorestart=false
51+
stdout_logfile=syslog
52+
stderr_logfile=syslog
53+
54+
[program:gearsyncd]
55+
command=/usr/bin/gearsyncd -p /usr/share/sonic/hwsku/gearbox_config.json
56+
startsecs=0
57+
priority=5
58+
autostart=false
59+
autorestart=false
60+
stdout_logfile=syslog
61+
stderr_logfile=syslog
62+
4663
[program:portsyncd]
4764
command=/usr/bin/portsyncd
4865
priority=5

0 commit comments

Comments
 (0)