-
Notifications
You must be signed in to change notification settings - Fork 86
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
[Multiasic]: Add calculation of interface index for backplane interfaces #68
[Multiasic]: Add calculation of interface index for backplane interfaces #68
Conversation
interfaces in multi asic platform. Multiasic platform will have backplane interface names of the format Ethernet-BP<x>. Signed-off-by: SuvarnaMeenakshi <[email protected]>
@@ -6,19 +6,22 @@ | |||
|
|||
|
|||
SONIC_ETHERNET_RE_PATTERN = "^Ethernet(\d+)$" | |||
SONIC_ETHERNET_BP_RE_PATTERN = "^Ethernet-BP(\d+)$" |
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.
BP [](start = 42, length = 2)
Explain in comment what is BP? #Closed
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.
added as per comment
SONIC_PORTCHANNEL_RE_PATTERN = "^PortChannel(\d+)$" | ||
SONIC_MGMT_PORT_RE_PATTERN = "^eth(\d+)$" | ||
|
||
|
||
class BaseIdx: | ||
ethernet_base_idx = 1 | ||
ethernet_bp_base_idx = 9000 |
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.
9000 [](start = 27, length = 4)
How do you choose this value? Is 2000 working? #Closed
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.
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.
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.
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.
@qiluo-msft , i think 9000 should be a good safe offset value for back-plane instead of a lower value
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.
As comments
Signed-off-by: SuvarnaMeenakshi <[email protected]>
…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]>
…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]>
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]