Skip to content

Ignore RP asic if None#8284

Closed
rraghav-cisco wants to merge 3 commits intosonic-net:202205from
rraghav-cisco:rraghav-rp-asic
Closed

Ignore RP asic if None#8284
rraghav-cisco wants to merge 3 commits intosonic-net:202205from
rraghav-cisco:rraghav-rp-asic

Conversation

@rraghav-cisco
Copy link
Copy Markdown
Contributor

For cisco-8000, the RP presents an asic for every fabric card that is present. If there is no fabric card in a slot, the asic is returned as None. It is ok to ignore that, since it is not used by RP anyways.

for asic in active_asics:
service_list += asic.get_critical_services()
if asic:
service_list += asic.get_critical_services()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why we need this active_Asic should only have fabric asics that are detected . see above logic

@rraghav-cisco
Copy link
Copy Markdown
Contributor Author

@abdosi , You are right. I saw a misconfig in the lab file after debugging. The lab entry was asics_present: [0,1,2,3,4,5] , while in fact the chassis had the fabric cards in slots: 1,2, and 3 (not 0, 1, and 2). This is what caused the None for some of the RP asics. I misread the entry and raised this PR. Closing it now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants