-
Notifications
You must be signed in to change notification settings - Fork 186
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
Feat: Add teamdctl_state_dump spec to insights_archive #3455
Feat: Add teamdctl_state_dump spec to insights_archive #3455
Conversation
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.
@TZ3070 - please check the comments to the Spec change and update this PR accordingly. Thanks.
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
if content: | ||
team_device_list = [] | ||
for x in content: | ||
if 'team' in x['TYPE']: |
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.
Would you please double confirm if the disconnected
team interfaces good candidates to this parser?
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.
Updated
list: List of the team device. | ||
|
||
Raises: | ||
SkipComponent: When there is not any content. |
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.
This would be When there is not any team interfaces.
|
||
|
||
@datasource(NmcliConnShow, HostContext) | ||
def team_device(broker): |
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.
Better rename it as team_interfaces
?
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
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.
good to me.
* Feat: Add teamdctl_state_dump spec to insights_archive Signed-off-by: Xinting Li <[email protected]> * fix:erroneously modify ethtool_k Signed-off-by: Xinting Li <[email protected]> * Modify path Signed-off-by: Xinting Li <[email protected]> * Add team test Signed-off-by: Xinting Li <[email protected]> * move team_device to ethernet Signed-off-by: Xinting Li <[email protected]> * Update test for team_device Signed-off-by: Xinting Li <[email protected]> * Filtered discounted teams Signed-off-by: Xinting Li <[email protected]> * correct abbreviation Signed-off-by: Xinting Li <[email protected]> Co-authored-by: Xinting Li <[email protected]> (cherry picked from commit dea3e1f)
* Feat: Add teamdctl_state_dump spec to insights_archive Signed-off-by: Xinting Li <[email protected]> * fix:erroneously modify ethtool_k Signed-off-by: Xinting Li <[email protected]> * Modify path Signed-off-by: Xinting Li <[email protected]> * Add team test Signed-off-by: Xinting Li <[email protected]> * move team_device to ethernet Signed-off-by: Xinting Li <[email protected]> * Update test for team_device Signed-off-by: Xinting Li <[email protected]> * Filtered discounted teams Signed-off-by: Xinting Li <[email protected]> * correct abbreviation Signed-off-by: Xinting Li <[email protected]> Co-authored-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li [email protected]
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
teamdctl_state_dump spec only exists in sos-archive.py currently, but some insights-plugin rules also use the related parser.
Add teamdctl_state_dump spec to default.py.