separated legacy API wrapper. added ipv4 addresses to interfaces

This commit is contained in:
Rod A Santiago 2016-07-29 15:52:56 -07:00
parent 864b869526
commit 35141b130c

View file

@ -1442,12 +1442,8 @@ class CoreApi2RequestHandler(CoreRequestHandler):
''' The daemon calls this method with legacy API data. Convert first ''' The daemon calls this method with legacy API data. Convert first
API2 then send. API2 then send.
''' '''
print "Sending data to API2 client", len(data)
#sys.stderr.write("enter linkconfig() ...\n")
#traceback.print_stack()
msgs = coreapi2.CoreApiBridge.LegacytoApi2((data,)) msgs = coreapi2.CoreApiBridge.LegacytoApi2((data,))
print "msgs=", len(msgs)
if msgs: if msgs:
for msg in msgs: for msg in msgs:
self.request.sendall(msg) self.request.sendall(msg)