Skip to content

Commit c92cbd9

Browse files
anrodloseveas
authored andcommitted
Add missing Statistics Interface for Devices
1 parent ce62a5d commit c92cbd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

NetworkManager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ class NetworkManager(NMDbusInterface):
281281
def auto_reconnect(self):
282282
pass
283283

284+
class Statistics(NMDbusInterface):
285+
object_path = '/org/freedesktop/NetworkManager/Statistics'
286+
284287
class Settings(NMDbusInterface):
285288
object_path = '/org/freedesktop/NetworkManager/Settings'
286289

@@ -331,6 +334,7 @@ class VPNConnection(ActiveConnection):
331334
interface_names = ['org.freedesktop.NetworkManager.VPN.Connection']
332335

333336
class Device(NMDbusInterface):
337+
interface_names = ['org.freedesktop.NetworkManager.Device', 'org.freedesktop.NetworkManager.Device.Statistics']
334338
def __new__(klass, object_path):
335339
if klass == Device:
336340
# Automatically specialize the device

0 commit comments

Comments
 (0)