def _get_sysfs_netdev_path(pci_addr, pf_interface):
 if pf_interface:
  return ('/sys/bus/pci/devices/%s/physfn/net' % pci_addr)
 return ('/sys/bus/pci/devices/%s/net' % pci_addr)

def _get_sysfs_netdev_path ( pci_addr , pf_interface ) : if pf_interface : return ( '/sys/bus/pci/devices/%s/physfn/net' % pci_addr ) return ( '/sys/bus/pci/devices/%s/net' % pci_addr )
get the sysfs path based on the pci address of the device .