@@ -22,6 +22,7 @@ use omicron_common::api::internal::{
2222use sled_agent_types_versions:: {
2323 latest, v1, v4, v6, v7, v9, v10, v11, v12, v14, v16, v17, v18, v20, v22,
2424 v24, v25, v26, v28, v29, v30, v31, v32, v33, v34, v37, v39, v40, v41, v42,
25+ v46,
2526} ;
2627use sled_diagnostics:: SledDiagnosticsQueryOutput ;
2728use slog_error_chain:: InlineErrorChain ;
@@ -38,6 +39,7 @@ api_versions!([
3839 // | example for the next person.
3940 // v
4041 // (next_int, IDENT),
42+ ( 46 , ALLOW_DDM_TRAFFIC ) ,
4143 ( 45 , REMOVE_UPLINK_ENSURE ) ,
4244 ( 44 , PROPOLIS_NVME_VWC ) ,
4345 ( 43 , INVENTORY_BASEBOARD_ID ) ,
@@ -994,7 +996,7 @@ pub trait SledAgentApi {
994996 // -------------------------------------------------------------------------
995997 fn static_assert_latest_write_network_config_type ( ) {
996998 static_assertions:: assert_type_eq_all!(
997- v42 :: system_networking:: WriteNetworkConfigRequest ,
999+ v46 :: system_networking:: WriteNetworkConfigRequest ,
9981000 latest:: system_networking:: WriteNetworkConfigRequest
9991001 ) ;
10001002 }
@@ -1004,7 +1006,20 @@ pub trait SledAgentApi {
10041006 #[ endpoint {
10051007 method = PUT ,
10061008 path = "/network-bootstore-config" ,
1007- versions = VERSION_NON_EMPTY_UPLINK_PORTS ..,
1009+ versions = VERSION_ALLOW_DDM_TRAFFIC ..,
1010+ operation_id = "write_network_bootstore_config" ,
1011+ } ]
1012+ async fn write_network_bootstore_config_v46 (
1013+ rqctx : RequestContext < Self :: Context > ,
1014+ body : TypedBody < v46:: system_networking:: WriteNetworkConfigRequest > ,
1015+ ) -> Result < HttpResponseUpdatedNoContent , HttpError > ;
1016+
1017+ // As described above, this must not forward to newer versions; sled-agent
1018+ // must implement this by faithfully serializing the requested version.
1019+ #[ endpoint {
1020+ method = PUT ,
1021+ path = "/network-bootstore-config" ,
1022+ versions = VERSION_NON_EMPTY_UPLINK_PORTS ..VERSION_ALLOW_DDM_TRAFFIC ,
10081023 operation_id = "write_network_bootstore_config" ,
10091024 } ]
10101025 async fn write_network_bootstore_config_v42 (
0 commit comments