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

[device] Upgrade as4630_54pe for new platform #4268

Merged
merged 1 commit into from
May 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
# name lanes alias index speed
Ethernet0 26 thousandE1 1 1000
Ethernet1 25 thousandE2 2 1000
Ethernet2 28 thousandE3 3 1000
Ethernet3 27 thousandE4 4 1000
Ethernet4 30 thousandE5 5 1000
Ethernet5 29 thousandE6 6 1000
Ethernet6 32 thousandE7 7 1000
Ethernet7 31 thousandE8 8 1000
Ethernet8 38 thousandE9 9 1000
Ethernet9 37 thousandE10 10 1000
Ethernet10 40 thousandE11 11 1000
Ethernet11 39 thousandE12 12 1000
Ethernet12 34 thousandE13 13 1000
Ethernet13 33 thousandE14 14 1000
Ethernet14 36 thousandE15 15 1000
Ethernet15 35 thousandE16 16 1000
Ethernet16 46 thousandE17 17 1000
Ethernet17 45 thousandE18 18 1000
Ethernet18 48 thousandE19 19 1000
Ethernet19 47 thousandE20 20 1000
Ethernet20 42 thousandE21 21 1000
Ethernet21 41 thousandE22 22 1000
Ethernet22 44 thousandE23 23 1000
Ethernet23 43 thousandE24 24 1000
Ethernet24 2 thousandE25 25 1000
Ethernet25 1 thousandE26 26 1000
Ethernet26 4 thousandE27 27 1000
Ethernet27 3 thousandE28 28 1000
Ethernet28 6 thousandE29 29 1000
Ethernet29 5 thousandE30 30 1000
Ethernet30 8 thousandE31 31 1000
Ethernet31 7 thousandE32 32 1000
Ethernet32 10 thousandE33 33 1000
Ethernet33 9 thousandE34 34 1000
Ethernet34 12 thousandE35 35 1000
Ethernet35 11 thousandE36 36 1000
Ethernet36 14 thousandE37 37 1000
Ethernet37 13 thousandE38 38 1000
Ethernet38 16 thousandE39 39 1000
Ethernet39 15 thousandE40 40 1000
Ethernet40 18 thousandE41 41 1000
Ethernet41 17 thousandE42 42 1000
Ethernet42 20 thousandE43 43 1000
Ethernet43 19 thousandE44 44 1000
Ethernet44 22 thousandE45 45 1000
Ethernet45 21 thousandE46 46 1000
Ethernet46 24 thousandE47 47 1000
Ethernet47 23 thousandE48 48 1000
Ethernet48 67 twentyfiveGigE49 49 25000
Ethernet49 66 twentyfiveGigE50 50 25000
Ethernet50 65 twentyfiveGigE51 51 25000
Ethernet51 68 twentyfiveGigE52 52 25000
Ethernet52 73,74,75,76 hundredGigE53 53 100000
Ethernet56 69,70,71,72 hundredGigE54 54 100000
# name lanes alias index speed autoneg
Ethernet0 26 thousandE1 1 1000 1
Ethernet1 25 thousandE2 2 1000 1
Ethernet2 28 thousandE3 3 1000 1
Ethernet3 27 thousandE4 4 1000 1
Ethernet4 30 thousandE5 5 1000 1
Ethernet5 29 thousandE6 6 1000 1
Ethernet6 32 thousandE7 7 1000 1
Ethernet7 31 thousandE8 8 1000 1
Ethernet8 38 thousandE9 9 1000 1
Ethernet9 37 thousandE10 10 1000 1
Ethernet10 40 thousandE11 11 1000 1
Ethernet11 39 thousandE12 12 1000 1
Ethernet12 34 thousandE13 13 1000 1
Ethernet13 33 thousandE14 14 1000 1
Ethernet14 36 thousandE15 15 1000 1
Ethernet15 35 thousandE16 16 1000 1
Ethernet16 46 thousandE17 17 1000 1
Ethernet17 45 thousandE18 18 1000 1
Ethernet18 48 thousandE19 19 1000 1
Ethernet19 47 thousandE20 20 1000 1
Ethernet20 42 thousandE21 21 1000 1
Ethernet21 41 thousandE22 22 1000 1
Ethernet22 44 thousandE23 23 1000 1
Ethernet23 43 thousandE24 24 1000 1
Ethernet24 2 thousandE25 25 1000 1
Ethernet25 1 thousandE26 26 1000 1
Ethernet26 4 thousandE27 27 1000 1
Ethernet27 3 thousandE28 28 1000 1
Ethernet28 6 thousandE29 29 1000 1
Ethernet29 5 thousandE30 30 1000 1
Ethernet30 8 thousandE31 31 1000 1
Ethernet31 7 thousandE32 32 1000 1
Ethernet32 10 thousandE33 33 1000 1
Ethernet33 9 thousandE34 34 1000 1
Ethernet34 12 thousandE35 35 1000 1
Ethernet35 11 thousandE36 36 1000 1
Ethernet36 14 thousandE37 37 1000 1
Ethernet37 13 thousandE38 38 1000 1
Ethernet38 16 thousandE39 39 1000 1
Ethernet39 15 thousandE40 40 1000 1
Ethernet40 18 thousandE41 41 1000 1
Ethernet41 17 thousandE42 42 1000 1
Ethernet42 20 thousandE43 43 1000 1
Ethernet43 19 thousandE44 44 1000 1
Ethernet44 22 thousandE45 45 1000 1
Ethernet45 21 thousandE46 46 1000 1
Ethernet46 24 thousandE47 47 1000 1
Ethernet47 23 thousandE48 48 1000 1
Ethernet48 67 twentyfiveGigE49 49 25000 0
Ethernet49 66 twentyfiveGigE50 50 25000 0
Ethernet50 65 twentyfiveGigE51 51 25000 0
Ethernet51 68 twentyfiveGigE52 52 25000 0
Ethernet52 73,74,75,76 hundredGigE53 53 100000 0
Ethernet56 69,70,71,72 hundredGigE54 54 100000 0
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

"""
Usage: %(scriptName)s [options] command object

options:
-h | --help : this help message
-d | --debug : run with debug mode
Expand Down Expand Up @@ -108,7 +107,12 @@
'echo 24c02 0x57 > /sys/bus/i2c/devices/i2c-1/new_device',
]


# Disable CPLD debug mode
cpld_set =[
'i2cset -y -f 3 0x60 0x2a 0xff',
'i2cset -y -f 3 0x60 0x2b 0xff',
'i2cset -y -f 3 0x60 0x86 0x89'
]

FORCE = 0
logging.basicConfig(filename= PROJECT_NAME+'.log', filemode='w',level=logging.DEBUG)
Expand Down Expand Up @@ -353,6 +357,12 @@ def do_install():
return status
else:
print PROJECT_NAME.upper()+" devices detected...."

for i in range(len(cpld_set)):
status, output = log_os_system(cpld_set[i], 1)
if status:
if FORCE == 0:
return status
return

def do_uninstall():
Expand Down