Skip to content
Draft
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
2 changes: 0 additions & 2 deletions .github/buildomat/packet-test-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ DENDRITE_TEST_HOST='[::1]' \
cargo test \
--no-fail-fast \
$SWADM_FEATURES \
--test \
counters \
-- \
--ignored

Expand Down
54 changes: 40 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions swadm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ reqwest.workspace = true
slog.workspace = true
tabwriter.workspace = true
tokio.workspace = true

[dev-dependencies]
serial_test = "3.5.0"

17 changes: 17 additions & 0 deletions swadm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SW(itch) ADM(in)

This is the management CLI for Oxide's rack switch.

## Testing

swadm is widely used across scripts and documentation. Changes
should generally be backward compatible.

This is definitionally a string-typed interface, so regressions are
easily missed. The integration tests module has infra for testing
commands, and adding a test before making swadm changes might
help prevent drift.

These tests are run in Linux CI but currently ignored in Illumos CI.
Illumos CI is blocked by tofino simulator support: https://github.com/oxidecomputer/tofino-sde/issues/21

2 changes: 1 addition & 1 deletion swadm/src/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ pub enum Link {
/// Whether the link is configured to autonegotiate with its peer during
/// link training.
///
/// This is generally only true for backplane links, and defaults to
/// This is generally only true for backplane links and defaults to false.
#[clap(long)]
autoneg: bool,
/// Whether the link is configured in KR mode, an electrical specification
Expand Down
Loading