@@ -83,9 +83,12 @@ def is_pci_device(self) -> bool:
8383 @property
8484 def is_pci_only_nic (self ) -> bool :
8585 """
86- Check if this is an Accelerated Networking (AN) NIC without synthetic NIC pairing.
86+ Check if this is an Accelerated Networking (AN) NIC without
87+ synthetic NIC pairing.
8788 """
88- return not self .lower and self .is_pci_device and self .module_name != "hv_netvsc"
89+ return (
90+ not self .lower and self .is_pci_device and self .module_name != "hv_netvsc"
91+ )
8992
9093 @property
9194 def pci_device_name (self ) -> str :
@@ -171,7 +174,8 @@ def get_synthetic_devices(self) -> List[str]:
171174 for nic in self .nics .values ():
172175 is_synthetic = not nic .lower and not nic .is_pci_device
173176 self ._node .log .debug (
174- f" NIC { nic .name } : lower='{ nic .lower } ', is_pci_device={ nic .is_pci_device } , "
177+ f" NIC { nic .name } : lower='{ nic .lower } ', "
178+ f"is_pci_device={ nic .is_pci_device } , "
175179 f"pci_slot='{ nic .pci_slot } ', module_name='{ nic .module_name } ', "
176180 f"is_synthetic={ is_synthetic } "
177181 )
@@ -342,7 +346,8 @@ def load_nics_info(self, nic_name: Optional[str] = None) -> None:
342346 if not nic_name :
343347 assert_that (sorted (found_nics )).described_as (
344348 f"Could not locate nic info for all nics. "
345- f"Nic set was { self .nics .keys ()} and only found info for { found_nics } "
349+ f"Nic set was { self .nics .keys ()} and only found info for "
350+ f"{ found_nics } "
346351 ).is_equal_to (sorted (self .nics .keys ()))
347352
348353 def reload (self ) -> None :
@@ -512,8 +517,9 @@ def is_mana_driver_enabled(self) -> bool:
512517
513518 def _discover_standalone_pci_nics (self , lspci : Lspci ) -> None :
514519 """
515- Discover standalone PCI NICs by checking device paths for PCI information.
516- This handles scenarios where NICs operate as standalone PCI devices without synthetic pairing.
520+ Discover standalone PCI NICs by checking device paths for PCI
521+ information. This handles scenarios where NICs operate as standalone
522+ PCI devices without synthetic pairing.
517523 """
518524 # Get unpaired NICs that might have PCI devices
519525 unpaired_nics = self .get_unpaired_devices ()
@@ -562,7 +568,6 @@ def _discover_standalone_pci_nics(self, lspci: Lspci) -> None:
562568 f"{ device_path } "
563569 )
564570
565-
566571 def _get_default_nic (self ) -> None :
567572 self .default_nic : str = ""
568573 self .default_nic_route : str = ""
0 commit comments