misc: vpp-api - add __repr__ to VPPApiClient. 61/20161/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 17 Jun 2019 01:23:31 +0000 (21:23 -0400)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 17 Jun 2019 01:56:06 +0000 (01:56 +0000)
commit8a2fa3b482b2f32da8e0b634fd09c9bdef2e9443
treeb785c5ae541f00418a2348b6233e227ccc4c66d4
parentd67a428b3b2183cd78d7fca82e8afe2f26387810
misc: vpp-api - add __repr__ to VPPApiClient.

Show the constructor of the object instead of the memory location.

api client: <VPPApiClient apifiles=None, testmode=False,
async_thread=True, logger=<logging.Logger object at 0x7f35d1bd2590>,
read_timeout=1, use_socket=False,
server_address='/tmp/vpp-unittest-TestGbpApi-pOKbWg/api.sock'>

vs.

api client: <vpp_papi.vpp_papi.VPPApiClient object at 0x7fa0003df750>

Type: feature

Change-Id: I1460d76f6796776dd525c0844e9e426ec2d52398
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
src/vpp-api/python/vpp_papi/vpp_papi.py