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

Adding support to get a list of all reachable switch-id's from a fabr… #2047

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

harjotsinghpawra
Copy link

Adding support to get a list of all reachable switch-id's from a fabric port, currently we can only check from switch-id if its reachable or not .

SAI_PORT_ATTR_FABRIC_REACHABILITY_LIST

@harjotsinghpawra
Copy link
Author

@kcudnik Hi , Kamil can you please review this commit , i will close the previous pull request .

inc/saiport.h Outdated Show resolved Hide resolved
@tjchadaga
Copy link
Collaborator

@harjotsinghpawra - do you want a slot to discuss this PR with the community?

Signed-off-by: Harjot Singh <[email protected]>
@vmittal-msft
Copy link
Contributor

@harjotsinghpawra Can you please more detail on this ? Can we discuss this in next weekly on Wednesday ?

@harjotsinghpawra
Copy link
Author

harjotsinghpawra commented Sep 19, 2024 via email

/**
* @brief List of switch id's of all remote reachable switches
*
* @type sai_u16_list_t
Copy link
Contributor

Choose a reason for hiding this comment

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

I see data-type of switch-id as "sai_uint32_t". Should it be sai_u32_list_t ?

@vmittal-msft
Copy link
Contributor

@harjotsinghpawra i do see SAI attribute SAI_PORT_ATTR_FABRIC_REACHABILITY is available to give us information about whether a fabric port is reachable from a switch id or not.

I am still not sure how is this feature helping us since we already have all this information today. Also, reachability is point to point. A fabric port on a device can only be connected to one other remote port and not to multiple switch ids. Please share if i am missing anything,

Here is the o/p from sonic device -

image

Copy link
Contributor

@vmittal-msft vmittal-msft left a comment

Choose a reason for hiding this comment

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

Left comment

@rlhui rlhui added the reviewed PR is discussed in SAI Meeting label Oct 2, 2024
@tjchadaga
Copy link
Collaborator

@harjotsinghpawra - could you please resolve branch conflicts and address comments on this PR?

@kcudnik
Copy link
Collaborator

kcudnik commented Oct 25, 2024

please resolve conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewed PR is discussed in SAI Meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants