mirror of
https://github.com/espressif/openthread.git
synced 2026-08-25 03:39:52 +00:00
[nat64] use dbus API for NAT64 tests (#8392)
This commit is contained in:
@@ -34,7 +34,7 @@ import sys
|
||||
def main():
|
||||
args = sys.argv[1:]
|
||||
bus = dbus.SystemBus()
|
||||
interface, method_name, arguments = args[0], args[1], args[2:]
|
||||
interface, method_name, arguments = args[0], args[1], json.loads(args[2])
|
||||
obj = bus.get_object('io.openthread.BorderRouter.wpan0', '/io/openthread/BorderRouter/wpan0')
|
||||
iface = dbus.Interface(obj, interface)
|
||||
method = getattr(iface, method_name)
|
||||
|
||||
Reference in New Issue
Block a user