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

Fix tree topology output #47

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Fix tree topology output #47

merged 2 commits into from
Dec 16, 2024

Conversation

ritikasrivastava
Copy link
Collaborator

No description provided.

Signed-off-by: Ritika Srivastava <[email protected]>
@@ -95,67 +93,96 @@ func getIbTree(ctx context.Context, _ []string) (*topology.Vertex, error) {
ibKey := ibPrefix + strconv.Itoa(ibCount)
treeRoot.Vertices[ibKey] = ibRoot
break
} else {
fmt.Printf("Missing ibnetdiscover output\n")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we use log instead?
Do we need to return error?
Do we need to have a metric for this error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure about this. It is not really an error scenario if IB is not present. This text is supposed to be informational. Should we remove it instead?

pkg/providers/baremetal/mnnvl.go Outdated Show resolved Hide resolved
pkg/providers/baremetal/mnnvl.go Outdated Show resolved Hide resolved
pkg/providers/baremetal/mnnvl.go Show resolved Hide resolved
pkg/providers/baremetal/mnnvl.go Outdated Show resolved Hide resolved
Signed-off-by: Ritika Srivastava <[email protected]>
@ritikasrivastava ritikasrivastava merged commit 10ac0cf into main Dec 16, 2024
4 checks passed
@ritikasrivastava ritikasrivastava deleted the ritika/treefix branch December 16, 2024 21:39
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