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:
parent
291279dfc9
commit
9f0eafa52f
|
@ -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__
|
||||
|
|
Loading…
Reference in New Issue
Block a user