@@ -29,8 +29,8 @@ progenitor::generate_api!(
2929 Generation = omicron_common:: api:: external:: Generation ,
3030 MacAddr = omicron_common:: api:: external:: MacAddr ,
3131 Name = omicron_common:: api:: external:: Name ,
32- NetworkInterface = omicron_common :: api :: internal :: shared :: NetworkInterface ,
33- NetworkInterfaceKind = omicron_common :: api :: internal :: shared :: NetworkInterfaceKind ,
32+ NetworkInterface = sled_agent_types :: inventory :: NetworkInterface ,
33+ NetworkInterfaceKind = sled_agent_types :: inventory :: NetworkInterfaceKind ,
3434 } ,
3535 patch = {
3636 SledAgentInfo = { derives = [ PartialEq , Eq ] } ,
@@ -72,9 +72,11 @@ impl From<types::DiskState> for omicron_common::api::external::DiskState {
7272 }
7373}
7474
75- impl From < omicron_common:: api:: internal:: nexus:: VmmState > for types:: VmmState {
76- fn from ( s : omicron_common:: api:: internal:: nexus:: VmmState ) -> Self {
77- use omicron_common:: api:: internal:: nexus:: VmmState as Input ;
75+ impl From < sled_agent_types_versions:: v1:: instance:: VmmState >
76+ for types:: VmmState
77+ {
78+ fn from ( s : sled_agent_types_versions:: v1:: instance:: VmmState ) -> Self {
79+ use sled_agent_types_versions:: v1:: instance:: VmmState as Input ;
7880 match s {
7981 Input :: Starting => types:: VmmState :: Starting ,
8082 Input :: Running => types:: VmmState :: Running ,
@@ -88,9 +90,11 @@ impl From<omicron_common::api::internal::nexus::VmmState> for types::VmmState {
8890 }
8991}
9092
91- impl From < types:: VmmState > for omicron_common:: api:: internal:: nexus:: VmmState {
93+ impl From < types:: VmmState >
94+ for sled_agent_types_versions:: v1:: instance:: VmmState
95+ {
9296 fn from ( s : types:: VmmState ) -> Self {
93- use omicron_common :: api :: internal :: nexus :: VmmState as Output ;
97+ use sled_agent_types_versions :: v1 :: instance :: VmmState as Output ;
9498 match s {
9599 types:: VmmState :: Starting => Output :: Starting ,
96100 types:: VmmState :: Running => Output :: Running ,
@@ -104,10 +108,12 @@ impl From<types::VmmState> for omicron_common::api::internal::nexus::VmmState {
104108 }
105109}
106110
107- impl From < omicron_common :: api :: internal :: nexus :: VmmRuntimeState >
111+ impl From < sled_agent_types_versions :: v1 :: instance :: VmmRuntimeState >
108112 for types:: VmmRuntimeState
109113{
110- fn from ( s : omicron_common:: api:: internal:: nexus:: VmmRuntimeState ) -> Self {
114+ fn from (
115+ s : sled_agent_types_versions:: v1:: instance:: VmmRuntimeState ,
116+ ) -> Self {
111117 Self {
112118 gen_ : s. generation ,
113119 state : s. state . into ( ) ,
@@ -116,10 +122,10 @@ impl From<omicron_common::api::internal::nexus::VmmRuntimeState>
116122 }
117123}
118124
119- impl From < omicron_common :: api :: internal :: nexus :: SledVmmState >
125+ impl From < sled_agent_types_versions :: v1 :: instance :: SledVmmState >
120126 for types:: SledVmmState
121127{
122- fn from ( s : omicron_common :: api :: internal :: nexus :: SledVmmState ) -> Self {
128+ fn from ( s : sled_agent_types_versions :: v1 :: instance :: SledVmmState ) -> Self {
123129 Self {
124130 vmm_state : s. vmm_state . into ( ) ,
125131 migration_in : s. migration_in . map ( Into :: into) ,
@@ -128,11 +134,11 @@ impl From<omicron_common::api::internal::nexus::SledVmmState>
128134 }
129135}
130136
131- impl From < omicron_common :: api :: internal :: nexus :: MigrationRuntimeState >
137+ impl From < sled_agent_types_versions :: v1 :: instance :: MigrationRuntimeState >
132138 for types:: MigrationRuntimeState
133139{
134140 fn from (
135- s : omicron_common :: api :: internal :: nexus :: MigrationRuntimeState ,
141+ s : sled_agent_types_versions :: v1 :: instance :: MigrationRuntimeState ,
136142 ) -> Self {
137143 Self {
138144 migration_id : s. migration_id ,
@@ -143,11 +149,13 @@ impl From<omicron_common::api::internal::nexus::MigrationRuntimeState>
143149 }
144150}
145151
146- impl From < omicron_common :: api :: internal :: nexus :: MigrationState >
152+ impl From < sled_agent_types_versions :: v1 :: instance :: MigrationState >
147153 for types:: MigrationState
148154{
149- fn from ( s : omicron_common:: api:: internal:: nexus:: MigrationState ) -> Self {
150- use omicron_common:: api:: internal:: nexus:: MigrationState as Input ;
155+ fn from (
156+ s : sled_agent_types_versions:: v1:: instance:: MigrationState ,
157+ ) -> Self {
158+ use sled_agent_types_versions:: v1:: instance:: MigrationState as Input ;
151159 match s {
152160 Input :: Pending => Self :: Pending ,
153161 Input :: InProgress => Self :: InProgress ,
0 commit comments