Skip to content

Commit

Permalink
Merge pull request #8 from barefootnetworks/SWI-435
Browse files Browse the repository at this point in the history
SWI-435, SWI-719 BFN Sonic platform scripts for fan, psu, eeprom, sfp and sensors
  • Loading branch information
mkbalani authored Jun 10, 2018
2 parents 9a6e76d + 5915de1 commit a0c3818
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 "$@"
Original file line number Diff line number Diff line change
@@ -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 "$@"

Original file line number Diff line number Diff line change
@@ -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 "$@"
Original file line number Diff line number Diff line change
@@ -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 "$@"


Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions platform/barefoot/sonic-platform-modules-bfn/scripts/eeprom
Original file line number Diff line number Diff line change
@@ -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 "$@"
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions platform/barefoot/sonic-platform-modules-bfn/scripts/ps_info
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions platform/barefoot/sonic-platform-modules-bfn/scripts/sensors
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions platform/barefoot/sonic-platform-modules-bfn/scripts/sfputil
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit a0c3818

Please sign in to comment.