Merge pull request #8 from barefootnetworks/SWI-435
SWI-435, SWI-719 BFN Sonic platform scripts for fan, psu, eeprom, sfp and sensors
This commit is contained in:
commit
a0c3818c86
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/eeprom
Executable file
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/eeprom
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DOCKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd eeprom.py "$@"
|
9
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/fancontrol
Executable file
9
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/fancontrol
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
CKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd fancontrol.py "$@"
|
||||||
|
|
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/ps_info
Executable file
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/ps_info
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DOCKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd ps_info.py "$@"
|
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/sensors
Executable file
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/sensors
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
CKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd sensors.py "$@"
|
||||||
|
|
||||||
|
|
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/sfputil.py
Executable file
10
platform/barefoot/sonic-platform-modules-bfn-montara/scripts/sfputil.py
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DOCKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd sfputil.py "$@"
|
10
platform/barefoot/sonic-platform-modules-bfn/scripts/eeprom
Executable file
10
platform/barefoot/sonic-platform-modules-bfn/scripts/eeprom
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DOCKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd eeprom.py "$@"
|
9
platform/barefoot/sonic-platform-modules-bfn/scripts/fancontrol
Executable file
9
platform/barefoot/sonic-platform-modules-bfn/scripts/fancontrol
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
CKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd fancontrol.py "$@"
|
||||||
|
|
10
platform/barefoot/sonic-platform-modules-bfn/scripts/ps_info
Executable file
10
platform/barefoot/sonic-platform-modules-bfn/scripts/ps_info
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DOCKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd ps_info.py "$@"
|
10
platform/barefoot/sonic-platform-modules-bfn/scripts/sensors
Executable file
10
platform/barefoot/sonic-platform-modules-bfn/scripts/sensors
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
CKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd sensors.py "$@"
|
||||||
|
|
||||||
|
|
10
platform/barefoot/sonic-platform-modules-bfn/scripts/sfputil
Executable file
10
platform/barefoot/sonic-platform-modules-bfn/scripts/sfputil
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DOCKER_EXEC_FLAGS="i"
|
||||||
|
|
||||||
|
# Determine whether stdout is on a terminal
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
DOCKER_EXEC_FLAGS+="t"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker exec -$DOCKER_EXEC_FLAGS syncd sfputil.py "$@"
|
Loading…
Reference in New Issue
Block a user