papi: let async calls return context 73/22373/2
authorVratko Polak <[email protected]>
Fri, 6 Sep 2019 13:20:07 +0000 (15:20 +0200)
committerAndrew Yourtchenko <[email protected]>
Mon, 30 Sep 2019 15:19:29 +0000 (15:19 +0000)
commite6b29a9df5df39204f6235256fc07a703c2d0336
treea011c41e2e67ce9250c4fb274314674893aab2be
parent45a02523b13e7d211b5350294dd934c66af10c5d
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 <[email protected]>
(cherry picked from commit 2f6e0c6002f732b7f938a0f770f19c9dec9269f1)
src/vpp-api/python/vpp_papi/vpp_papi.py