diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-07-11 19:25:43 -0400 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-07-12 08:33:05 +0000 |
commit | dfd57229e9427b9a34123a58f918446d82029a30 (patch) | |
tree | 9fe5bd2b59439efd28a76f4183eef1a8d160dbf0 /src/vpp-api/python/vpp_papi/vpp_format.py | |
parent | 719beb709818b70a1fd65f3c2a625d955678ceb6 (diff) |
papi: fix vpp_format from change in vl_api_prefix_t
cherry picking fix for bug introduced by https://gerrit.fd.io/r/#/c/20011/
- also fixes unit tests.
Type: fix
Fixes: ab05508e1eb96749b68de8ccd2f6f88ff3e64fad
Change-Id: I8287385f094911ea70de4751a716a7e0e6521b64
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/vpp_format.py')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_format.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_format.py b/src/vpp-api/python/vpp_papi/vpp_format.py index d54106b245c..b58dad3c1b5 100644 --- a/src/vpp-api/python/vpp_papi/vpp_format.py +++ b/src/vpp-api/python/vpp_papi/vpp_format.py @@ -102,11 +102,11 @@ conversion_table = { }, 'vl_api_prefix_t': { - 'IPv4Network': lambda o: {'prefix': + 'IPv4Network': lambda o: {'address': {'af': ADDRESS_IP4, 'un': {'ip4': o.network_address.packed}}, 'len': o.prefixlen}, - 'IPv6Network': lambda o: {'prefix': + 'IPv6Network': lambda o: {'address': {'af': ADDRESS_IP6, 'un': {'ip6': o.network_address.packed}}, 'len': o.prefixlen}, |