1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

things that aren't routers do not have adapters bound to a specific network, not even zero, so the adapter key is 'None'

This commit is contained in:
Joel Bender 2018-04-02 16:50:26 -04:00
parent 291279dfc9
commit 9f0eafa52f

View File

@ -72,12 +72,12 @@ class WhoIsRouterConsoleCmd(ConsoleCmd):
return
# give it to the application
this_application.request(this_application.nsap.adapters[0], request)
this_application.request(this_application.nsap.adapters[None], request)
def do_wirtn(self, args):
"""wirtn <addr> [ <net> ]"""
args = args.split()
if _debug: WhoIsRouterConsoleCmd._debug("do_irt %r", args)
if _debug: WhoIsRouterConsoleCmd._debug("do_wirtn %r", args)
# build a request
try:
@ -90,7 +90,7 @@ class WhoIsRouterConsoleCmd(ConsoleCmd):
return
# give it to the application
this_application.request(this_application.nsap.adapters[0], request)
this_application.request(this_application.nsap.adapters[None], request)
#
# __main__