mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-27 10:22:15 +00:00
remove outdated script call.
Signed-off-by: Mykola Kostenok <c_mykolak@mellanox.com>
This commit is contained in:
committed by
Oleksandr Shamray
parent
2f665c22c1
commit
49dff57c94
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_mqm8700_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2010_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2100_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2100b_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.mellanox import *
|
||||
import os
|
||||
|
||||
class OnlPlatform_x86_64_mlnx_msn2410_r0(OnlPlatformMellanox,
|
||||
OnlPlatformPortConfig_32x100):
|
||||
@@ -8,18 +7,10 @@ class OnlPlatform_x86_64_mlnx_msn2410_r0(OnlPlatformMellanox,
|
||||
MODEL="SN2410"
|
||||
SYS_OBJECT_ID=".2410.1"
|
||||
|
||||
def hw_management_start(self):
|
||||
for tool in [ '/etc/mlnx/mlnx-hw-management', '/usr/bin/hw-management.sh' ]:
|
||||
if os.path.exists(tool):
|
||||
print "Starting Mellanox HW Management..."
|
||||
os.system("%s start" % tool)
|
||||
return True
|
||||
return False
|
||||
|
||||
def baseconfig(self):
|
||||
|
||||
if not self.hw_management_start():
|
||||
print "Mellanox HW Management Package Missing."
|
||||
|
||||
# load modules
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2410b_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -1,25 +1,16 @@
|
||||
from onl.platform.base import *
|
||||
from onl.platform.mellanox import *
|
||||
import os
|
||||
|
||||
class OnlPlatform_x86_64_mlnx_msn2700_r0(OnlPlatformMellanox,
|
||||
OnlPlatformPortConfig_48x25_8x100):
|
||||
OnlPlatformPortConfig_32x100):
|
||||
PLATFORM='x86-64-mlnx-msn2700-r0'
|
||||
MODEL="SN2700"
|
||||
SYS_OBJECT_ID=".2700.1"
|
||||
|
||||
def hw_management_start(self):
|
||||
for tool in [ '/etc/mlnx/mlnx-hw-management', '/usr/bin/hw-management.sh' ]:
|
||||
if os.path.exists(tool):
|
||||
print "Starting Mellanox HW Management..."
|
||||
os.system("%s start" % tool)
|
||||
return True
|
||||
return False
|
||||
|
||||
def baseconfig(self):
|
||||
|
||||
if not self.hw_management_start():
|
||||
print "Mellanox HW Management Package Missing."
|
||||
|
||||
# load modules
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2700b_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2740_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn2740b_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
@@ -12,6 +12,5 @@ class OnlPlatform_x86_64_mlnx_msn3700_r0(OnlPlatformMellanox,
|
||||
import os
|
||||
# necessary if there are issues with the install
|
||||
# os.system("/usr/bin/apt-get install")
|
||||
os.system("/etc/mlnx/mlnx-hw-management start")
|
||||
self.syseeprom_export();
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user