Skip to content
Open
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
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,7 @@ if (SAI_IMPL OR BUILD_SAI_FAKE)
add_dependencies(fboss_forwarding_stack
diag_shell_client
fboss2
fboss2-dev
fsdb
qsfp_service
wedge_qsfp_util
Expand Down
1 change: 0 additions & 1 deletion fboss-image/distro_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ cmake --build . --target distro_cli_tests
# Run via CTest
ctest -R distro_cli -V
```

2 changes: 1 addition & 1 deletion fboss-image/distro_cli/tests/download_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import unittest
from pathlib import Path

from distro_cli.lib.download import download_artifact, HTTP_METADATA_FILENAME
from distro_cli.lib.download import HTTP_METADATA_FILENAME, download_artifact
from distro_cli.tests.test_helpers import enter_tempdir, override_artifact_store_dir


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh diag_shell_client "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh fboss2 "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh fboss2-dev "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh fw_util "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh sensor_service_client "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh showtech "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
exec /usr/local/lib/fboss_cmd_find.sh weutil "$@"
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
# Find and run the given FBOSS command.
# Usage: fboss_cmd_find.sh <binary_name> [args...]
set -e

# Install locations during image build
default_forwarding_stack_path="/opt/fboss/bin"
default_platform_stack_path="/opt/fboss/bin"

if [ -z "$1" ]; then
echo "No command specified" >&2
exit 1
fi

cmd="$1"
shift

case "$cmd" in
fboss2 | fboss2-dev | diag_shell_client)
# Forwarding stack commands
stack_path=${default_forwarding_stack_path}
;;

fw_util | sensor_service_client | showtech | weutil)
# Platform stack commands
stack_path=${default_platform_stack_path}
;;

*)
echo "Unknown FBOSS command: $cmd" >&2
exit 1
;;
esac

exec "${stack_path}/${cmd}" "$@"
1 change: 1 addition & 0 deletions fboss/oss/scripts/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
FORWARDING_BINARIES = [
"diag_shell_client",
"fboss2",
"fboss2-dev",
"fboss_hw_agent-sai_impl",
"fboss_sw_agent",
"fsdb",
Expand Down
Loading