-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[platform] Add support for Dell Z9100 #343
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
device/dell/x86_64-dell_z9100_c2538-r0/Force10-Z9100/port_config.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# name lanes alias | ||
Ethernet0 49,50,51,52 hundredGigE1/1 | ||
Ethernet4 53,54,55,56 hundredGigE1/2 | ||
Ethernet8 57,58,59,60 hundredGigE1/3 | ||
Ethernet12 61,62,63,64 hundredGigE1/4 | ||
Ethernet16 65,66,67,68 hundredGigE1/5 | ||
Ethernet20 69,70,71,72 hundredGigE1/6 | ||
Ethernet24 73,74,75,76 hundredGigE1/7 | ||
Ethernet28 77,78,79,80 hundredGigE1/8 | ||
Ethernet32 37,38,39,40 hundredGigE1/9 | ||
Ethernet36 33,34,35,36 hundredGigE1/10 | ||
Ethernet40 45,46,47,48 hundredGigE1/11 | ||
Ethernet44 41,42,43,44 hundredGigE1/12 | ||
Ethernet48 81,82,83,84 hundredGigE1/13 | ||
Ethernet52 85,86,87,88 hundredGigE1/14 | ||
Ethernet56 89,90,91,92 hundredGigE1/15 | ||
Ethernet60 93,94,95,96 hundredGigE1/16 | ||
Ethernet64 97,98,99,100 hundredGigE1/17 | ||
Ethernet68 101,102,103,104 hundredGigE1/18 | ||
Ethernet72 105,106,107,108 hundredGigE1/19 | ||
Ethernet76 109,110,111,112 hundredGigE1/20 | ||
Ethernet80 21,22,23,24 hundredGigE1/21 | ||
Ethernet84 17,18,19,20 hundredGigE1/22 | ||
Ethernet88 29,30,31,32 hundredGigE1/23 | ||
Ethernet92 25,26,27,28 hundredGigE1/24 | ||
Ethernet96 117,118,119,120 hundredGigE1/25 | ||
Ethernet100 113,114,115,116 hundredGigE1/26 | ||
Ethernet104 125,126,127,128 hundredGigE1/27 | ||
Ethernet108 121,122,123,124 hundredGigE1/28 | ||
Ethernet112 5,6,7,8 hundredGigE1/29 | ||
Ethernet116 1,2,3,4 hundredGigE1/30 | ||
Ethernet120 13,14,15,16 hundredGigE1/31 | ||
Ethernet124 9,10,11,12 hundredGigE1/32 |
1 change: 1 addition & 0 deletions
1
device/dell/x86_64-dell_z9100_c2538-r0/Force10-Z9100/sai.profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SAI_INIT_CONFIG_FILE=/etc/bcm/th-z9100-32x100G.config.bcm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env python | ||
|
||
############################################################################# | ||
# Dell Z9100 | ||
# | ||
# Platform and model specific eeprom subclass, inherits from the base class, | ||
# and provides the followings: | ||
# - the eeprom format definition | ||
# - specific encoder/decoder if there is special need | ||
############################################################################# | ||
|
||
try: | ||
import eeprom_tlvinfo | ||
except ImportError, e: | ||
raise ImportError (str(e) + "- required module not found") | ||
|
||
|
||
class board(eeprom_tlvinfo.TlvInfoDecoder): | ||
|
||
def __init__(self, name, path, cpld_root, ro): | ||
self.eeprom_path = "/sys/class/i2c-adapter/i2c-2/2-0050/eeprom" | ||
super(board, self).__init__(self.eeprom_path, 0, '', True) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/usr/bin/env python | ||
|
||
try: | ||
from sfputilbase import sfputilbase | ||
except ImportError, e: | ||
raise ImportError (str(e) + "- required module not found") | ||
|
||
|
||
class sfputil(sfputilbase): | ||
"""Platform specific sfputil class""" | ||
|
||
port_start = 0 | ||
port_end = 32 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be 31? |
||
ports_in_block = 32 | ||
|
||
port_to_eeprom_mapping = {} | ||
port_to_i2c_mapping = { | ||
0: 18, | ||
1: 18, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there seems to duplication here. |
||
2: 19, | ||
3: 20, | ||
4: 21, | ||
5: 22, | ||
6: 23, | ||
7: 24, | ||
8: 25, | ||
9: 26, | ||
10: 27, | ||
11: 28, | ||
12: 29, | ||
13: 31, | ||
14: 30, | ||
15: 33, | ||
16: 32, | ||
17: 34, | ||
18: 35, | ||
19: 36, | ||
20: 37, | ||
21: 38, | ||
22: 39, | ||
23: 40, | ||
24: 41, | ||
25: 42, | ||
26: 43, | ||
27: 44, | ||
28: 45, | ||
29: 46, | ||
30: 47, | ||
31: 48, | ||
32: 49 | ||
} | ||
|
||
_qsfp_ports = range(0, ports_in_block + 1) | ||
|
||
def __init__(self, port_num): | ||
# Override port_to_eeprom_mapping for class initialization | ||
eeprom_path = '/sys/class/i2c-adapter/i2c-{0}/{0}-0050/eeprom' | ||
for x in range(0, self.port_end + 1): | ||
port_eeprom_path = eeprom_path.format(self.port_to_i2c_mapping[x]) | ||
self.port_to_eeprom_mapping[x] = port_eeprom_path | ||
sfputilbase.__init__(self, port_num) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
can you check #342 ?
from sonic_eeprom import eeprom_tlvinfo
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.
My mistake. I didn't see #342 before I raised this... I can decline this in favor of that one.