Skip to content

[Multiasic]: Add calculation of interface index for backplane interfaces#68

Merged
SuvarnaMeenakshi merged 2 commits intosonic-net:masterfrom
SuvarnaMeenakshi:multiasic_swsssdk
May 5, 2020
Merged

[Multiasic]: Add calculation of interface index for backplane interfaces#68
SuvarnaMeenakshi merged 2 commits intosonic-net:masterfrom
SuvarnaMeenakshi:multiasic_swsssdk

Conversation

@SuvarnaMeenakshi
Copy link
Copy Markdown
Contributor

Add calculation of interface index for backplane interfaces
in multi asic platform. Multiasic platform will have
backplane interface names of the format Ethernet-BP.

Signed-off-by: SuvarnaMeenakshi [email protected]

interfaces in multi asic platform. Multiasic platform will have
backplane interface names of the format Ethernet-BP<x>.

Signed-off-by: SuvarnaMeenakshi <[email protected]>
Comment thread src/swsssdk/port_util.py


SONIC_ETHERNET_RE_PATTERN = "^Ethernet(\d+)$"
SONIC_ETHERNET_BP_RE_PATTERN = "^Ethernet-BP(\d+)$"
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Apr 28, 2020

Choose a reason for hiding this comment

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

BP [](start = 42, length = 2)

Explain in comment what is BP? #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added as per comment

Comment thread src/swsssdk/port_util.py

class BaseIdx:
ethernet_base_idx = 1
ethernet_bp_base_idx = 9000
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Apr 28, 2020

Choose a reason for hiding this comment

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

9000 [](start = 27, length = 4)

How do you choose this value? Is 2000 working? #Closed

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.

What is the range used by a realistic SKU?


In reply to: 416935612 [](ancestors = 416935612)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Chose 9000 as the offset will be large enough and Index does not overlap.
With 2000 as offset, it might overlap with PortChannel interface index.

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.

@qiluo-msft , i think 9000 should be a good safe offset value for back-plane instead of a lower value

Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comments

Signed-off-by: SuvarnaMeenakshi <[email protected]>
@SuvarnaMeenakshi SuvarnaMeenakshi merged commit 581add1 into sonic-net:master May 5, 2020
@SuvarnaMeenakshi SuvarnaMeenakshi deleted the multiasic_swsssdk branch May 5, 2020 03:41
abdosi pushed a commit that referenced this pull request May 5, 2020
…ces (#68)

* [Multiasic]: Add calculation of infterface index for backplane
interfaces in multi asic platform. Multiasic platform will have
backplane interface names of the format Ethernet-BP<x>.

Signed-off-by: SuvarnaMeenakshi <[email protected]>

* Added comment.

Signed-off-by: SuvarnaMeenakshi <[email protected]>
praveen-li pushed a commit to praveen-li/sonic-py-swsssdk that referenced this pull request May 4, 2021
…ces (sonic-net#68)

* [Multiasic]: Add calculation of infterface index for backplane
interfaces in multi asic platform. Multiasic platform will have
backplane interface names of the format Ethernet-BP<x>.

Signed-off-by: SuvarnaMeenakshi <[email protected]>

* Added comment.

Signed-off-by: SuvarnaMeenakshi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants