Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get asic PCI ID from CHASSIS_STATE_DB and update asic_id in CONFIG_DB #9681

Merged
merged 1 commit into from
Apr 25, 2022

Commits on Apr 18, 2022

  1. Get asic PCI ID from CHASSIS_STATE_DB and update asic_id in CONFIG_DB

    Asic PCI ID (PCI address) is collected by chassisd (inside pmon -
    sonic-net/sonic-platform-daemons#175) and saved in CHASSIS_STATE_DB (in
    redis_chassis). CHASSIS_STATE_DB is accessible by swss containers.
    
    At docker-init.sh (script is called after swss container is created and before
    anything that could run in swss like orchagent...), we wait until asic PCI ID
    of the corresponding asic is populated by chassisd. We then update asic_id in
    CONFIG_DB of asic's database.
    
    A system supporting dynamic asic PCI ID identification requires to have a file
    (empty) use_pci_id_chassis in its platform dir.
    
    When orchagent runs, it has correct asic PCI ID in its CONFIG_DB.
    
    Together with this PR:
    
    sonic-net/sonic-platform-daemons#175
    sonic-net/sonic-platform-common#185
    
    Signed-off-by: Maxime Lorrillere <mlorrillere@arista.com>
    mlorrillere committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    b8184fa View commit details
    Browse the repository at this point in the history