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

Add platform_asic file to each platform folder in sonic-device-data based package #8542

Merged
merged 9 commits into from
Oct 9, 2021
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as4630_54pe-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as4630_54te-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as5712_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as5812_54t-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as5812_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as5835_54t-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as5835_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as6712_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7116_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7212_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7312_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7312_54xs-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7315_27xb-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7326_56x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7512_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cavium
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7712_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7716_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7716_32xb-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7726_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as7816_64x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as9716_32d-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_as9726_32d-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/accton/x86_64-accton_minipack-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7050_qx32/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Copy link
Collaborator

@lguohan lguohan Sep 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all arista devices are only available for sonic-broadcom.swi image, not sonic-broadcom.bin image, can you differentiate that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are using the same CONFIGURED_PLATFORM (broadcom). So I cannot differentiate them by this dimention. If we have ground truth about bootloader for each platform, we could improve in future.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a must fix

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please sync with ying.

1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7050_qx32s/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7050cx3_32s/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7050sx3_48c8/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7050sx3_48yc8/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7060_cx32s/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7060cx2_32s/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7060dx4_32/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7060px4_32/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7170_32c/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7170_32cd/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7170_64c/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7260cx3_64/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7280cr3_32d4/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7280cr3_32p4/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7280cr3mk_32d4/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7280cr3mk_32p4/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7800_sup/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7800r3_48cq2_lc/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7800r3_48cqm2_lc/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
2 changes: 2 additions & 0 deletions device/arista/x86_64-arista_common/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
broadcom
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i do not know what this is. this is common, it should be included in both broadcom and broadcom-dnx

broadcom-dnx
1 change: 1 addition & 0 deletions device/barefoot/x86_64-accton_as9516_32d-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
1 change: 1 addition & 0 deletions device/broadcom/x86_64-bcm_xlr-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/broadcom/x86_64-broadcom_common/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/celestica/x86_64-cel_e1031-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/celestica/x86_64-cel_midstone-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
innovium
1 change: 1 addition & 0 deletions device/celestica/x86_64-cel_seastone-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/celestica/x86_64-cel_seastone_2-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/celestica/x86_64-cel_silverstone-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/centec/arm64-centec_e530_24x2c-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/centec/arm64-centec_e530_24x2q-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/centec/arm64-centec_e530_48s4x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/centec/arm64-centec_e530_48t4x_p-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/centec/x86_64-centec_e582_48x2q4z-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/centec/x86_64-centec_e582_48x6q-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/centec/x86_64-ew_es6220_x48q2h4-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
centec
1 change: 1 addition & 0 deletions device/cig/x86_64-cig_cs5435_54p-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/cig/x86_64-cig_cs6436_54p-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/cig/x86_64-cig_cs6436_56p-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/dell/x86_64-dell_s6000_s1220-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dell_s6100_c2538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dell_z9100_c2538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_n3248pxe_c3338-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_n3248te_c3338-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_s5224f_c3538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_s5232f_c3538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_s5248f_c3538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_s5296f_c3538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_z9264f_c3538-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/dell/x86_64-dellemc_z9332f_d1508-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_ag5648-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_ag9032v1-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_ag9032v2a-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_ag9064-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_agc032-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
innovium
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_et-6248brb-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/delta/x86_64-delta_et-c032if-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/facebook/x86_64-facebook_wedge100-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s8810_32q-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s9100-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s9130_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s9180_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s9200_64x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s9230_64x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/ingrasys/x86_64-ingrasys_s9280_64x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d6254qs-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d6332-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d6356-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d6556-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d7032q28b-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d7054q28b-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/inventec/x86_64-inventec_d7264q28b-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/juniper/x86_64-juniper_qfx5200-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/juniper/x86_64-juniper_qfx5210-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
1 change: 1 addition & 0 deletions device/marvell/armhf-marvell_et6448m_52x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
1 change: 1 addition & 0 deletions device/marvell/x86_64-marvell_slm5401_54x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_lssn2700-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn2010-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn2100-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn2410-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn2700-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn2700_simx-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn2740-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn3420-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn3700-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn3700_simx-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn3700c-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn3800-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4410-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4600-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4600c-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4700-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4700_simx-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4800-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_msn4800_simx-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mellanox/x86_64-mlnx_x86-r5.0.1400/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mellanox
1 change: 1 addition & 0 deletions device/mitac/x86_64-mitac_ly1200_b32h0_c3-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/nokia/armhf-nokia_ixs7215_52x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
marvell
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom-dnx
1 change: 1 addition & 0 deletions device/nokia/x86_64-nokia_ixr7250e_sup-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/pegatron/x86_64-pegatron_porsche-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nephos
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix1b_32x-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix1b_rglbmc-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix7_bwde-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix7_rglbmc-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix8_rglbmc-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix8a_bwde-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix8c_bwde-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/quanta/x86_64-quanta_ix9_bwde-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ragile/x86_64-ragile_ra-b6910-64c-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/ruijie/x86_64-ruijie_b6510-48vs8cq-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
broadcom
1 change: 1 addition & 0 deletions device/virtual/x86_64-kvm_x86_64-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vs
1 change: 1 addition & 0 deletions device/virtual/x86_64-kvm_x86_64_4_asic-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vs
1 change: 1 addition & 0 deletions device/virtual/x86_64-kvm_x86_64_6_asic-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vs
1 change: 1 addition & 0 deletions device/wnc/x86_64-wnc_osw1800-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
barefoot
1 change: 1 addition & 0 deletions src/sonic-device-data/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ test:
for f in $$(find ../../../device -name hwsku.json); do
./hwsku_json_checker $$f
done
./platform_asic_checker ../../../platform ../../../device
popd
65 changes: 65 additions & 0 deletions src/sonic-device-data/tests/platform_asic_checker
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/usr/bin/env python3
# For any valid platform folder (which must includes a default_sku file), check there is a valid platform_asic file

import fnmatch
import os
import sys
import argparse

def check_file(platform_asic_file, platforms):
try:
with open(platform_asic_file, "r") as f:
for line in f.readlines():
line = line.rstrip()
if line not in platforms:
return False
except IOError:
return False
return True


def main(argv):
parser = argparse.ArgumentParser(description='')
parser.add_argument('platform_folder', type=str,
help='an integer for the accumulator')
parser.add_argument('device_folder', type=str,
help='sum the integers (default: find the max)')

args = parser.parse_args()

# Load all the valid platforms as strings
platforms = set()
with os.scandir(args.platform_folder) as it:
for entry in it:
p = entry.path
if entry.is_dir() and os.path.isfile(os.path.join(p, 'rules.mk')):
platforms.add(entry.name)
# dnx platform is special broadcom platform, add it manually
platforms.add('broadcom-dnx')

device_folder = os.path.normpath(args.device_folder)
base_level = len(device_folder.split(os.sep))
all_good = True
for dirpath, _, filenames in os.walk(args.device_folder, followlinks=True):
# The platform folder is like device_folder/vendor/platform
if len(dirpath.split(os.sep)) != base_level + 2:
continue
# If none of below files found, this is not the root of a platform folder
if not ({'default_sku', 'installer.conf', 'led_proc_init.soc', 'asic.conf'} & set(filenames)):
continue

platform_asic_file = os.path.join(dirpath, 'platform_asic')
good = check_file(platform_asic_file, platforms)
if good:
print("File " + platform_asic_file + " passed validity check")
else:
print("File " + platform_asic_file + " failed validity check")

all_good = all_good and good

if not all_good:
sys.exit(-1)


if __name__ == "__main__":
main(sys.argv[1:])