Python API: Support for per message CRC and API split.

These changes are incompatible with Python VPP API 1.2

There is now a new VPP Class and it can be used like:

from vpp_papi import VPP
jsonfiles = []
for root, dirnames, filenames in os.walk('../../../build-root/'):
    if root.find('install-') == -1: continue
    for filename in fnmatch.filter(filenames, '*.api.json'):
        jsonfiles.append(os.path.join(root, filename))

vpp = VPP(jsonfiles)
rv = vpp.show_version()
print('RV', rv.program.decode().rstrip('\0x00'))
vpp.disconnect()

Change-Id: Ic92d226de2cf3626e750404012247e7fc24fb7fc
Signed-off-by: Ole Troan <ot@cisco.com>
This commit is contained in:
Ole Troan
2016-12-02 12:53:55 +01:00
committed by Damjan Marion
parent 58290ea2f6
commit a03f4efa92
4 changed files with 750 additions and 228 deletions

View File

@ -18,7 +18,7 @@ except ImportError:
from distutils.core import setup, Extension
setup (name = 'vpp_papi',
version = '1.2',
version = '1.3',
description = 'VPP Python binding',
author = 'Ole Troan',
author_email = 'ot@cisco.com',