Skip to content

Commit c7ef5e9

Browse files
authored
[gbsyncd] exit with zero when platform has no gearbox (sonic-net#676)
Signed-off-by: Guohan Lu <[email protected]>
1 parent 57228fd commit c7ef5e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

syncd/scripts/gbsyncd_startup.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import os
2020
import sys
2121
import json
22+
import time
23+
import syslog
2224
import subprocess
2325

2426

@@ -39,7 +41,9 @@ def main():
3941
with open('/usr/share/sonic/hwsku/gearbox_config.json') as file_object:
4042
gearbox_config=json.load(file_object)
4143
except:
42-
sys.exit("No external PHY / gearbox supported on this platform, existing physycd application")
44+
syslog.syslog(syslog.LOG_NOTICE, "No external PHY / gearbox supported on this platform, existing gbsyncd application")
45+
time.sleep(2)
46+
sys.exit(0)
4347

4448
physyncd_enable(gearbox_config)
4549

0 commit comments

Comments
 (0)