-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added Support to render Feature Table using Device running metadata. #14
Conversation
Also added support to render 'has_asic_scope' field of Feature Table. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
/azp run |
Commenter does not have sufficient privileges for PR 14 in repo sonic-net/sonic-host-services |
/azp run sonic-net.sonic-host-services |
Commenter does not have sufficient privileges for PR 14 in repo sonic-net/sonic-host-services |
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@arlakshm can you please help review this. |
@abdosi , can you update the branch ? |
.format(feature.name, feature_suffixes[-1])) | ||
self.set_feature_state(feature, self.FEATURE_STATE_FAILED) | ||
return | ||
self._config_db.mod_entry('FEATURE', feature_config.name, {'has_per_asic_scope': str(feature_config.has_per_asic_scope)}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The host config_db will have has_per_asic_scope
as failed but the config_db for the asic will have them as enabled? should we update that as well to avoid confusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arlakshm yes, that we can do later if needed. Currently also other fields of this table are not same between host and asic.
I think that change will be coming as part of separate PR may be where we needed to update (ex:macsec feature state) that need be updated in asic db also. In that PR we can update this field also.
into 202205 branch Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Cherry-pick of sonic-net/sonic-host-services#14 in 202205 branch
Cherry-pick of #14 in 202205 branch
What I did:
Added Support to render Feature Table using Device running metadata
Also added support to render 'has_asic_scope' field of Feature Table.
Why I did:
Details: sonic-net/sonic-buildimage#11796
How I verify:
Manual Verification
UT added including multi-asic,