MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3-linux / FetchAllDevices

Method FetchAllDevices

src/python/openvpn3/NetCfgManager.py:146–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144
145
146 def FetchAllDevices(self):
147 self.__ping()
148
149 try:
150 ret = []
151 for path in self.__manager_intf.FetchInterfaceList():
152 ret.append(NetCfgDevice(self.__dbuscon, path))
153
154 return ret
155
156 except dbus.exceptions.DBusException as excp:
157 err = str(excp)
158 if err.find("org.freedesktop.DBus.Error.AccessDenied:") >= 0:
159 raise RuntimeError("Access denied to the "
160 "NetCfg Manager (FetchInterfaceList)")
161
162
163 def Retrieve(self, object_path):

Callers

nothing calls this directly

Calls 3

__pingMethod · 0.95
FetchInterfaceListMethod · 0.80
NetCfgDeviceClass · 0.70

Tested by

no test coverage detected