Skip to content

Commit 798b276

Browse files
authored
Update Dendrite and handle new transceiver API definitions (#7528)
1 parent 31767f6 commit 798b276

File tree

7 files changed

+12
-67
lines changed

7 files changed

+12
-67
lines changed

Cargo.lock

Lines changed: 0 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ tokio-util = { version = "0.7.12", features = ["io", "io-util"] }
670670
toml = "0.8.19"
671671
toml_edit = "0.22.22"
672672
tough = { version = "0.19.0", features = [ "http" ] }
673-
transceiver-decode = { git = "https://github.com/oxidecomputer/transceiver-control", features = [ "api-traits" ] }
673+
transceiver-controller = { git = "https://github.com/oxidecomputer/transceiver-control", features = [ "api-traits" ] }
674674
trybuild = "1.0.101"
675675
tufaceous = { path = "tufaceous" }
676676
tufaceous-lib = { path = "tufaceous-lib" }

clients/dpd-client/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ reqwest = { workspace = true, features = ["json", "stream", "rustls-tls"] }
1919
schemars.workspace = true
2020
serde.workspace = true
2121
slog.workspace = true
22-
transceiver-decode.workspace = true
2322
uuid.workspace = true
2423

2524
[build-dependencies]

clients/dpd-client/build.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,10 @@ use quote::quote;
2020
use std::env;
2121
use std::fs;
2222
use std::path::Path;
23-
use typify::TypeSpaceImpl;
2423

2524
const DENDRITE_ASIC_PACKAGE: PackageName =
2625
PackageName::new_const("dendrite-asic");
2726

28-
// List of types we replace with the existing type of the same name from the
29-
// `transceiver_decode` crate.
30-
const REPLACEMENTS: &[&'static str] = &[
31-
"ActiveCableMediaInterfaceId",
32-
"ApplicationDescriptor",
33-
"BaseTMediaInterfaceId",
34-
"CmisDatapath",
35-
"CmisDatapathState",
36-
"CmisLaneStatus",
37-
"ConnectorType",
38-
"ExtendedSpecificationComplianceCode",
39-
"HostElectricalInterfaceId",
40-
"Identifier",
41-
"MediaType",
42-
"MmfMediaInterfaceId",
43-
"PassiveCopperMediaInterfaceId",
44-
"Sff8636Datapath",
45-
"SffComplianceCode",
46-
"SmfMediaInterfaceId",
47-
];
48-
4927
fn main() -> Result<()> {
5028
// Find the current dendrite repo commit from our package manifest.
5129
let manifest = fs::read_to_string("../../package-manifest.toml")
@@ -115,13 +93,6 @@ fn main() -> Result<()> {
11593
}
11694
})
11795
.with_derive("PartialEq");
118-
for repl in REPLACEMENTS {
119-
settings.with_replacement(
120-
repl,
121-
format!("::transceiver_decode::{repl}"),
122-
std::iter::once(TypeSpaceImpl::Display),
123-
);
124-
}
12596

12697
let code = progenitor::Generator::new(&settings)
12798
.generate_tokens(&spec)

package-manifest.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ only_for_targets.image = "standard"
720720
# the other `source.*` keys.
721721
source.type = "prebuilt"
722722
source.repo = "dendrite"
723-
source.commit = "b684e82b493a318889a2bd8c8f6e992a9c8342b3"
724-
source.sha256 = "5b1419e14739c2a3f9ab9a8e794bc54c482169b2bbd98e5cd329cd1513f50add"
723+
source.commit = "b37a8fdc335592e24d6afe71995637b2ad36eb7d"
724+
source.sha256 = "022cf1eddf9a8a4042db95ce03d24c3b703f6552bafde0bde3e10d2c138a1e3f"
725725
output.type = "zone"
726726
output.intermediate_only = true
727727

@@ -747,8 +747,8 @@ only_for_targets.image = "standard"
747747
# the other `source.*` keys.
748748
source.type = "prebuilt"
749749
source.repo = "dendrite"
750-
source.commit = "b684e82b493a318889a2bd8c8f6e992a9c8342b3"
751-
source.sha256 = "60fc0731bec87fad4eb6fbc511aebeda305ab882220f3dafd780098b6303e3a8"
750+
source.commit = "b37a8fdc335592e24d6afe71995637b2ad36eb7d"
751+
source.sha256 = "59bf5dcda77a01d4df0ec839ea48a18acf5e12fcd4bb400d1c23677811a5b352"
752752
output.type = "zone"
753753
output.intermediate_only = true
754754

@@ -767,8 +767,8 @@ only_for_targets.image = "standard"
767767
# the other `source.*` keys.
768768
source.type = "prebuilt"
769769
source.repo = "dendrite"
770-
source.commit = "b684e82b493a318889a2bd8c8f6e992a9c8342b3"
771-
source.sha256 = "bb8559fb3da7af1027dedc13e125deee4424052493ca76a3208ecb9d7583c2c3"
770+
source.commit = "b37a8fdc335592e24d6afe71995637b2ad36eb7d"
771+
source.sha256 = "2b502172b3877f07026a26054e3a34ac64ba053d6e5861375dcd87dac6ce6c27"
772772
output.type = "zone"
773773
output.intermediate_only = true
774774

tools/dendrite_openapi_version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
COMMIT="b684e82b493a318889a2bd8c8f6e992a9c8342b3"
2-
SHA2="b5addf1b3a00055312e995909f5a1918bbb26ef6b206b6006b6c1bea2146471d"
1+
COMMIT="b37a8fdc335592e24d6afe71995637b2ad36eb7d"
2+
SHA2="72b4489e522778ea91979bcba94d9392ab4d5318f19f49aca2388791bb709778"

tools/dendrite_stub_checksums

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
CIDL_SHA256_ILLUMOS="5b1419e14739c2a3f9ab9a8e794bc54c482169b2bbd98e5cd329cd1513f50add"
2-
CIDL_SHA256_LINUX_DPD="ed140476d262a875278fef8f93d74c0b6fb3d73a5ba02a6dfe8cb34da8347df1"
3-
CIDL_SHA256_LINUX_SWADM="2ed7e8fd4faa2ee5c7e24972979efcb87c2fba5ce678af22ddd3c34238226301"
1+
CIDL_SHA256_ILLUMOS="022cf1eddf9a8a4042db95ce03d24c3b703f6552bafde0bde3e10d2c138a1e3f"
2+
CIDL_SHA256_LINUX_DPD="bbc6eebae357df8075c359e04c88842c6d38eff3079984bbbf5b102504495804"
3+
CIDL_SHA256_LINUX_SWADM="d0a792165b6a70700071e36d3ea358f6098300aff8b7bfe2942e324d0dcc9443"

0 commit comments

Comments
 (0)