Skip to content

Commit

Permalink
Add sonic platform scripts for bfn montara/maverick
Browse files Browse the repository at this point in the history
  • Loading branch information
mkbalani committed Jun 10, 2018
1 parent 1755035 commit 5915de1
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 5915de1

Please sign in to comment.