Ole Troan | 5f9dcff | 2016-08-01 04:59:13 +0200 | [diff] [blame] | 1 | from __future__ import print_function |
| 2 | import unittest |
Ole Troan | 5f9dcff | 2016-08-01 04:59:13 +0200 | [diff] [blame] | 3 | import vpp_papi |
| 4 | import pot, snat |
| 5 | print('Plugins:') |
| 6 | vpp_papi.plugin_show() |
| 7 | r = vpp_papi.connect('ole') |
| 8 | |
| 9 | r = vpp_papi.show_version() |
| 10 | print('R:', r) |
| 11 | |
| 12 | r = snat.snat_interface_add_del_feature(1, 1, 1) |
| 13 | print('R:', r) |
| 14 | |
Ole Troan | 1732fc1 | 2016-08-30 21:03:51 +0200 | [diff] [blame] | 15 | list_name = 'foobar' |
| 16 | r = pot.pot_profile_add(0, 1, 123, 123, 0, 12, 0, 23, len(list_name), list_name) |
| 17 | print('R:', r) |
Ole Troan | 5f9dcff | 2016-08-01 04:59:13 +0200 | [diff] [blame] | 18 | vpp_papi.disconnect() |