def __get_properties(self, network_path):
try:
obj = self._bus.get_object(self._BASE_NAME, network_path)
properties_interface = dbus.Interface(obj, dbus.PROPERTIES_IFACE)
return properties_interface.GetAll(self._NETWORK_NAME)
except dbus.exceptions.DBusException as error:
raise PropertyError(error)
评论列表
文章目录