Skip to content

[Celestica] [Leh800bcls] Config: Support retrieving the slot ID through cable cartridge. - #1926

Closed
chee-zhang wants to merge 1 commit into
meta:mainfrom
chee-zhang:leh800bcls_support_retrieving_the_slot_ID_through_cable_cartridge
Closed

chee-zhang wants to merge 1 commit into
meta:mainfrom
chee-zhang:leh800bcls_support_retrieving_the_slot_ID_through_cable_cartridge

Conversation

@chee-zhang

@chee-zhang chee-zhang commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run
  clang-format.............................................................Passed
  shellcheck...........................................(no files to check)Skipped
  shfmt................................................(no files to check)Skipped
  trim trailing whitespace.................................................Passed
  fix end of files.........................................................Passed
  check yaml...........................................(no files to check)Skipped
  check json...............................................................Passed
  check for merge conflicts................................................Passed
  ruff check...........................................(no files to check)Skipped
  ruff format..........................................(no files to check)Skipped
  Check copyright headers in new FBOSS C/C++ files.........................Passed
  Prevent sai_impl in fboss manifest.......................................Passed

Summary

This PR is to support retrieving the slot ID through cable cartridge.

  • block diagram
image
  1. Add new i2c device of cable cartridge
  2. Add functional code and symbolic links
  3. Add check in ConfigValidatorTest.Symlink

Test Plan

Succeed to run platform_manager

[root@localhost fboss]# tree /run/devmap/cable-cartridges/
/run/devmap/cable-cartridges/
├── cc_0 -> /sys/bus/i2c/devices/9-0027
└── cc_1 -> /sys/bus/i2c/devices/22-0027

2 directories, 0 files
[root@localhost fboss]# ll /run/devmap/cable-cartridges/cc_0/
total 0
-r--r--r-- 1 root root 4096 Nov  5 08:04 cc_slot_id_0
-r--r--r-- 1 root root 4096 Nov  5 08:04 cc_slot_id_1
lrwxrwxrwx 1 root root    0 Nov  5 08:03 driver -> ../../../../../../../bus/i2c/drivers/anacapa_slot_id
-r--r--r-- 1 root root 4096 Nov  5 08:04 modalias
-r--r--r-- 1 root root 4096 Nov  5 08:03 name
lrwxrwxrwx 1 root root    0 Nov  5 08:04 subsystem -> ../../../../../../../bus/i2c
-rw-r--r-- 1 root root 4096 Nov  5 08:03 uevent

@meta-cla meta-cla Bot added the CLA Signed label Nov 5, 2026
@chee-zhang
chee-zhang force-pushed the leh800bcls_support_retrieving_the_slot_ID_through_cable_cartridge branch from 24de1b7 to ed85637 Compare November 5, 2026 06:13
@chee-zhang
chee-zhang marked this pull request as ready for review November 5, 2026 07:44
@chee-zhang
chee-zhang requested review from a team as code owners November 5, 2026 07:44
@chee-zhang chee-zhang changed the title [Celestica] Leh800bcls: Config: Support retrieving the slot ID through cable cartridge [Celestica] [Leh800bcls] Config: Support retrieving the slot ID through cable cartridge Nov 6, 2026
@chee-zhang

Copy link
Copy Markdown
Contributor Author

@chee-zhang, the project name in your PR title is not recognized.

Please edit the title of your PR so the project label can be added.

Expected format: [CompanyName][ProjectName] Your PR title.

Example: [Accton][minipack3n] Add transceiver support.

See supported companies and projects.

Hi, @Scott8440 . Could you please add the NPI project name leh800bcls to the pr-projects.json file?

@chee-zhang
chee-zhang force-pushed the leh800bcls_support_retrieving_the_slot_ID_through_cable_cartridge branch from ed85637 to da3628c Compare November 13, 2026 02:45
@chee-zhang chee-zhang changed the title [Celestica] [Leh800bcls] Config: Support retrieving the slot ID through cable cartridge [Celestica] [Leh800bcls] Config: Support retrieving the slot ID through cable cartridge. Nov 13, 2026
@github-actions github-actions Bot added the project:leh800bcls FBOSS project: leh800bcls label Nov 13, 2026
@meta-codesync

meta-codesync Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@mikechoifb has imported this pull request. If you are a Meta employee, you can view this in D135714850.

@meta-codesync meta-codesync Bot closed this in 72b8ef4 Dec 2, 2026
@meta-codesync meta-codesync Bot added the Merged label Dec 2, 2026
@meta-codesync

meta-codesync Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@mikechoifb merged this pull request in 72b8ef4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants