File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,6 +160,21 @@ export default function NodeDetailPage({ params }: { params: Promise<{ uuid: str
160160 < dd className = "mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" > { node . driver } </ dd >
161161 </ div >
162162 ) }
163+ { node . redfish_address && (
164+ < div className = "bg-white px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6" >
165+ < dt className = "text-sm font-medium text-gray-500" > Redfish Address</ dt >
166+ < dd className = "mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2" >
167+ < a
168+ href = { node . redfish_address }
169+ target = "_blank"
170+ rel = "noopener noreferrer"
171+ className = "text-blue-600 hover:text-blue-800 hover:underline"
172+ >
173+ { node . redfish_address }
174+ </ a >
175+ </ dd >
176+ </ div >
177+ ) }
163178 { node . resource_class && (
164179 < div className = "bg-white px-4 py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6" >
165180 < dt className = "text-sm font-medium text-gray-500" > Resource Class</ dt >
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export interface BaremetalNode {
1010 resource_class : string | null ;
1111 properties : Record < string , unknown > ;
1212 extra : Record < string , unknown > ;
13+ redfish_address : string | null ;
1314 last_error : string | null ;
1415 created_at : string | null ;
1516 updated_at : string | null ;
Original file line number Diff line number Diff line change @@ -153,6 +153,9 @@ class BaremetalNode(BaseModel):
153153 extra : Dict [str , Any ] = Field (
154154 default_factory = dict , description = "Extra node information"
155155 )
156+ redfish_address : Optional [str ] = Field (
157+ None , description = "Redfish address from driver_info"
158+ )
156159 last_error : Optional [str ] = Field (None , description = "Last error message" )
157160 created_at : Optional [str ] = Field (None , description = "Creation timestamp" )
158161 updated_at : Optional [str ] = Field (None , description = "Last update timestamp" )
Original file line number Diff line number Diff line change @@ -120,6 +120,9 @@ def get_baremetal_nodes():
120120 "resource_class" : getattr (node , "resource_class" , None ),
121121 "properties" : getattr (node , "properties" , {}),
122122 "extra" : getattr (node , "extra" , {}),
123+ "redfish_address" : (getattr (node , "driver_info" , None ) or {}).get (
124+ "redfish_address"
125+ ),
123126 "last_error" : getattr (node , "last_error" , None ),
124127 "created_at" : getattr (node , "created_at" , None ),
125128 "updated_at" : getattr (node , "updated_at" , None ),
You can’t perform that action at this time.
0 commit comments