Python API: Re-adding rudimentary variable length array pack support.
[vpp.git] / vpp-api / python / tests / test_modules.py
1 #!/usr/bin/env python
2 from __future__ import print_function
3 import unittest
4 import test_base
5 import vpp_papi
6 import pot, snat
7 print('Plugins:')
8 vpp_papi.plugin_show()
9 r = vpp_papi.connect('ole')
10
11 r = vpp_papi.show_version()
12 print('R:', r)
13
14 r = snat.snat_interface_add_del_feature(1, 1, 1)
15 print('R:', r)
16
17 list_name = 'foobar'
18 r = pot.pot_profile_add(0, 1, 123, 123, 0, 12, 0, 23, len(list_name), list_name)
19 print('R:', r)
20 vpp_papi.disconnect()