@@ -40,10 +40,10 @@ use nexus_types::deployment::{
4040use omicron_common:: api:: internal:: shared:: NetworkInterface ;
4141use omicron_common:: disk:: DiskIdentity ;
4242use omicron_common:: zpool_name:: ZpoolName ;
43- use omicron_uuid_kinds:: ZpoolUuid ;
44- use omicron_uuid_kinds :: { ExternalIpKind , SledKind , ZpoolKind } ;
45- use omicron_uuid_kinds :: { ExternalIpUuid , GenericUuid , OmicronZoneUuid } ;
46- use omicron_uuid_kinds :: { OmicronZoneKind , SledUuid } ;
43+ use omicron_uuid_kinds:: {
44+ ExternalIpKind , ExternalIpUuid , GenericUuid , OmicronZoneKind ,
45+ OmicronZoneUuid , SledKind , SledUuid , ZpoolKind , ZpoolUuid ,
46+ } ;
4747use std:: net:: { IpAddr , SocketAddrV6 } ;
4848use uuid:: Uuid ;
4949
@@ -238,7 +238,7 @@ impl BpSledOmicronZones {
238238pub struct BpOmicronZone {
239239 pub blueprint_id : Uuid ,
240240 pub sled_id : DbTypedUuid < SledKind > ,
241- pub id : Uuid ,
241+ pub id : DbTypedUuid < OmicronZoneKind > ,
242242 pub underlay_address : ipv6:: Ipv6Addr ,
243243 pub zone_type : ZoneType ,
244244 pub primary_service_ip : ipv6:: Ipv6Addr ,
@@ -281,7 +281,7 @@ impl BpOmicronZone {
281281 // `blueprint_zone.zone_type`
282282 blueprint_id,
283283 sled_id : sled_id. into ( ) ,
284- id : blueprint_zone. id . into_untyped_uuid ( ) ,
284+ id : blueprint_zone. id . into ( ) ,
285285 underlay_address : blueprint_zone. underlay_address . into ( ) ,
286286 external_ip_id,
287287 filesystem_pool : blueprint_zone
@@ -526,7 +526,7 @@ impl BpOmicronZone {
526526 // Result) we immediately return. We check the inner result later, but
527527 // only if some code path tries to use `nic` and it's not present.
528528 let nic = omicron_zone_config:: nic_row_to_network_interface (
529- self . id ,
529+ self . id . into ( ) ,
530530 self . bp_nic_id ,
531531 nic_row. map ( Into :: into) ,
532532 ) ?;
@@ -691,7 +691,7 @@ impl BpOmicronZone {
691691
692692 Ok ( BlueprintZoneConfig {
693693 disposition : self . disposition . into ( ) ,
694- id : OmicronZoneUuid :: from_untyped_uuid ( self . id ) ,
694+ id : self . id . into ( ) ,
695695 underlay_address : self . underlay_address . into ( ) ,
696696 filesystem_pool : self
697697 . filesystem_pool
@@ -768,7 +768,7 @@ impl BpOmicronZoneNic {
768768 let Some ( ( _, nic) ) = zone. zone_type . external_networking ( ) else {
769769 return Ok ( None ) ;
770770 } ;
771- let nic = OmicronZoneNic :: new ( zone. id . into_untyped_uuid ( ) , nic) ?;
771+ let nic = OmicronZoneNic :: new ( zone. id , nic) ?;
772772 Ok ( Some ( Self {
773773 blueprint_id,
774774 id : nic. id ,
@@ -784,7 +784,7 @@ impl BpOmicronZoneNic {
784784
785785 pub fn into_network_interface_for_zone (
786786 self ,
787- zone_id : Uuid ,
787+ zone_id : OmicronZoneUuid ,
788788 ) -> Result < NetworkInterface , anyhow:: Error > {
789789 let zone_nic = OmicronZoneNic :: from ( self ) ;
790790 zone_nic. into_network_interface_for_zone ( zone_id)
0 commit comments