Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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 Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ omicron-common = { git = "https://github.com/oxidecomputer/omicron", branch= "ma
oximeter = { git = "https://github.com/oxidecomputer/omicron", branch = "main" }
oximeter-producer = { git = "https://github.com/oxidecomputer/omicron", branch = "main" }
oximeter-instruments = { git = "https://github.com/oxidecomputer/omicron", branch = "main", default-features = false, features = ["kstat"] }
oxnet = { version = "0.1.3", default-features = false, features = ["schemars", "serde"] }
oxnet = { version = "0.1.4", default-features = false, features = ["schemars", "serde"] }
propolis = { git = "https://github.com/oxidecomputer/propolis" }
smf = { git = "https://github.com/illumos/smf-rs" }
softnpu-lib = { git = "https://github.com/oxidecomputer/softnpu" , package = "softnpu" , branch = "main"}
Expand All @@ -69,7 +69,7 @@ colored = "3"
csv = "1.3"
curl = "0.4"
display-error-chain = "0.2"
dropshot = "0.16.4"
dropshot = "0.16.6"
dropshot-api-manager = "0.2.2"
dropshot-api-manager-types = "0.2.2"
expectorate = "1"
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,5 +341,14 @@ proxy_arp:
3. run `SDE=/opt/oxide/tofino_sde cargo test --features=<feature>` to execute
the tests.

If regenerating the openapi specifications, set `EXPECTORATE=overwrite` when
runnning the tests with the `tofino_asic` feature.
### OpenAPI Generation

`dpd-api/src/lib.rs` contains endpoint [dropshot][dropshot-gh] definitions and
controls API versioning for the `dpd` OpenAPI interface. If you add/remove or
edit API points and/or documentation, you can update the API version and
regenerate the latest OpenAPI specification bindings by running
`cargo xtask openapi generate`. Use `cargo xtask openapi check` to verify
specs are up-to-date.


[dropshot-gh]: https://github.com/oxidecomputer/dropshot
Loading