Skip to content

Commit

Permalink
[gbsyncd] exit with zero when platform has no gearbox (sonic-net#676)
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan committed Oct 21, 2020
1 parent 57228fd commit c7ef5e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syncd/scripts/gbsyncd_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import os
import sys
import json
import time
import syslog
import subprocess


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

physyncd_enable(gearbox_config)

Expand Down

0 comments on commit c7ef5e9

Please sign in to comment.