Code Review
/
vpp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Python API: Preparation for RPM/DEB packaging.
[vpp.git]
/
vpp-api
/
python
/
tests
/
test_modules.py
1
from __future__ import print_function
2
import unittest
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
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)
18
vpp_papi.disconnect()