Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions utilities_common/platform_sfputil_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def is_rj45_port(port_name):
if not platform_sfp_base:
import sonic_platform_base
platform_sfp_base = sonic_platform_base.sfp_base.SfpBase
except ModuleNotFoundError as e:
except (ModuleNotFoundError, FileNotFoundError) as e:
# This method is referenced by intfutil which is called on vs image
# However, there is no platform API supported on vs image
# So False is returned in such case
# sonic_platform API support is added for vs image(required for chassis), it expects a metadata file, which
# wont be available on vs pizzabox duts, So False is returned(if either ModuleNotFound or FileNotFound)
return False

if platform_chassis and platform_sfp_base:
Expand Down