diff --git a/nexus/db-queries/src/db/datastore/bgp.rs b/nexus/db-queries/src/db/datastore/bgp.rs index 0252c11000..4b2984e1ff 100644 --- a/nexus/db-queries/src/db/datastore/bgp.rs +++ b/nexus/db-queries/src/db/datastore/bgp.rs @@ -42,7 +42,7 @@ impl DataStore { let conn = self.pool_connection_authorized(opctx).await?; let err = OptionalError::new(); - self.transaction_retry_wrapper("bgp_config_set") + self.transaction_retry_wrapper("bgp_config_create") .transaction(&conn, |conn| { let err = err.clone(); @@ -213,7 +213,7 @@ impl DataStore { }) .await .map_err(|e|{ - let msg = "bgp_config_set failed"; + let msg = "bgp_config_create failed"; if let Some(err) = err.take() { error!(opctx.log, "{msg}"; "error" => ?err); err diff --git a/nexus/db-queries/src/db/datastore/switch_port.rs b/nexus/db-queries/src/db/datastore/switch_port.rs index c3be9818df..4e56513e30 100644 --- a/nexus/db-queries/src/db/datastore/switch_port.rs +++ b/nexus/db-queries/src/db/datastore/switch_port.rs @@ -1671,7 +1671,7 @@ mod test { shaper: None, }; - datastore.bgp_config_set(&opctx, &bgp_config).await.unwrap(); + datastore.bgp_config_create(&opctx, &bgp_config).await.unwrap(); let settings = SwitchPortSettingsCreate { identity: IdentityMetadataCreateParams { diff --git a/nexus/src/app/rack.rs b/nexus/src/app/rack.rs index 13b30fd47a..1631cea21a 100644 --- a/nexus/src/app/rack.rs +++ b/nexus/src/app/rack.rs @@ -487,7 +487,7 @@ impl super::Nexus { match self .db_datastore - .bgp_config_set( + .bgp_config_create( &opctx, &BgpConfigCreate { identity: IdentityMetadataCreateParams {