papi: let async calls return context 67/21867/4
authorVratko Polak <vrpolak@cisco.com>
Fri, 6 Sep 2019 13:20:07 +0000 (15:20 +0200)
committerOle Trøan <otroan@employees.org>
Tue, 10 Sep 2019 07:23:39 +0000 (07:23 +0000)
commit2f6e0c6002f732b7f938a0f770f19c9dec9269f1
tree9305805132ec8a955332ff3b3c8a039c38ebb890
parenta287a30dda5ab7902569b06342c68d5df7082a66
papi: let async calls return context

Callback receives "reply" messages containing context,
but previously there was no easy way
to get the automatically generated context value
of the originally sent "command" message.

With this, the caller can store the contexts,
so the callback knows which command got replied to.

Type: feature

Change-Id: I58ca812d20b03916f74096c396126710115a747c
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
src/vpp-api/python/vpp_papi/vpp_papi.py