0606add017
Asic PCI ID (PCI address) is collected by chassisd (inside pmon - Azure/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: Azure/sonic-platform-daemons#175 Azure/sonic-platform-common#185 Signed-off-by: Maxime Lorrillere <mlorrillere@arista.com> Co-authored-by: Maxime Lorrillere <mlorrillere@arista.com> |
||
---|---|---|
.. | ||
base_image_files | ||
arp_update.conf | ||
buffermgrd.sh | ||
critical_processes.j2 | ||
docker-init.j2 | ||
Dockerfile.j2 | ||
enable_counters.py | ||
ipinip.json.j2 | ||
ndppd.conf | ||
ndppd.conf.j2 | ||
orchagent.sh | ||
ports.json.j2 | ||
supervisord.conf.j2 | ||
switch.json.j2 | ||
swssconfig.sh | ||
tunnel_packet_handler.py | ||
vlan_vars.j2 | ||
vxlan.json.j2 | ||
wait_for_link.sh.j2 |