File tree 1 file changed +5
-11
lines changed
1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -262,28 +262,22 @@ def get_state_info(self):
262
262
"""
263
263
raise NotImplementedError
264
264
265
- def get_bus_info (self , module_name ):
265
+ def get_bus_info (self ):
266
266
"""
267
- Retrieves the bus information for the specified by "module_name" on a SmartSwitch .
267
+ Retrieves the bus information. Returns None for non-smartswitch chassis .
268
268
269
269
Returns:
270
270
Returns the PCI bus information in BDF format like "[DDDD:]BB:SS:F"
271
271
"""
272
272
raise NotImplementedError
273
273
274
- def pci_detach (self , module_name ):
274
+ def pci_detach (self ):
275
275
"""
276
276
Detaches the DPU PCI device specified by "module_name" on a SmartSwitch.
277
+ Returns False for non-smartswitch chassis.
277
278
278
279
Returns: True once the PCI is successfully detached.
279
- """
280
- raise NotImplementedError
281
-
282
- def pci_reattach (self , module_name ):
283
- """
284
- Rescans and reconnects the DPU PCI device specified by "module_name" on a SmartSwitch.
285
-
286
- Returns: True once the PCI is successfully reconnected.
280
+ Returns False if PCI detachment fails or specified 'module_name' is not found.
287
281
"""
288
282
raise NotImplementedError
289
283
You can’t perform that action at this time.
0 commit comments