Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade T-rex to v2.22
[csit.git]
/
resources
/
libraries
/
python
/
VppConfigGenerator.py
diff --git
a/resources/libraries/python/VppConfigGenerator.py
b/resources/libraries/python/VppConfigGenerator.py
index
f255266
..
d6afd1f
100644
(file)
--- a/
resources/libraries/python/VppConfigGenerator.py
+++ b/
resources/libraries/python/VppConfigGenerator.py
@@
-60,6
+60,12
@@
dpdk {{
{nomultiseg}
{enablevhostuser}
}}
{nomultiseg}
{enablevhostuser}
}}
+
+ip6 {{
+ hash-buckets 2000000
+ heap-size 3G
+}}
+
"""
# End VPP configuration template.
"""
# End VPP configuration template.
@@
-388,6
+394,7
@@
class VppConfigGenerator(object):
vppconfig = VPP_CONFIG_TEMPLATE.format(cpuconfig=cpuconfig,
pciconfig=pciconfig,
socketmemconfig=socketmemconfig,
vppconfig = VPP_CONFIG_TEMPLATE.format(cpuconfig=cpuconfig,
pciconfig=pciconfig,
socketmemconfig=socketmemconfig,
+ heapsizeconfig=heapsizeconfig,
rxqueuesconfig=rxqueuesconfig,
txqueuesconfig=txqueuesconfig,
nomultiseg=nomultiseg,
rxqueuesconfig=rxqueuesconfig,
txqueuesconfig=txqueuesconfig,
nomultiseg=nomultiseg,
@@
-417,9
+424,9
@@
class VppConfigGenerator(object):
# Instead of restarting, we'll do separate start and stop
# actions. This way we don't care whether VPP was running
# to begin with.
# Instead of restarting, we'll do separate start and stop
# actions. This way we don't care whether VPP was running
# to begin with.
- ssh.exec_command('sudo
initctl stop {}
'.format(VPP_SERVICE_NAME))
+ ssh.exec_command('sudo
service {} stop
'.format(VPP_SERVICE_NAME))
(ret, stdout, stderr) = \
(ret, stdout, stderr) = \
- ssh.exec_command('sudo
initctl start {}
'.format(VPP_SERVICE_NAME))
+ ssh.exec_command('sudo
service {} start
'.format(VPP_SERVICE_NAME))
if ret != 0:
logger.debug('Restarting VPP failed on node {}'.
format(hostname))
if ret != 0:
logger.debug('Restarting VPP failed on node {}'.
format(hostname))