summaryrefslogtreecommitdiffstats
path: root/extras/vpp_config/vpp_config.py
diff options
context:
space:
mode:
authorJohn DeNisco <jdenisco@cisco.com>2018-02-06 15:23:05 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2018-02-16 08:09:27 +0000
commit9fa5cf46690601e4e25605d548671c84634363e3 (patch)
tree83f5066290114e58341b93ca614c7e22b610f063 /extras/vpp_config/vpp_config.py
parent56a0d06cb410b669eddf1533f22ec3afedb4b242 (diff)
Add iperf VM/vhost creation
Change-Id: I27a59203f406120558f73bfcc12dca8835ae6361 Signed-off-by: John DeNisco <jdenisco@cisco.com>
Diffstat (limited to 'extras/vpp_config/vpp_config.py')
-rw-r--r--[-rwxr-xr-x]extras/vpp_config/vpp_config.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/extras/vpp_config/vpp_config.py b/extras/vpp_config/vpp_config.py
index dc1bc518abd..d9d65841359 100755..100644
--- a/extras/vpp_config/vpp_config.py
+++ b/extras/vpp_config/vpp_config.py
@@ -464,14 +464,16 @@ def autoconfig_ipv4_setup():
acfg.ipv4_interface_setup()
-def autoconfig_create_vm():
+def autoconfig_create_iperf_vm():
"""
Setup IPv4 interfaces
"""
acfg = AutoConfig(rootdir, VPP_AUTO_CONFIGURATION_FILE)
- acfg.create_and_bridge_virtual_interfaces()
+ acfg.destroy_iperf_vm('iperf-server')
+ acfg.create_and_bridge_iperf_virtual_interface()
+ acfg.create_iperf_vm('iperf-server')
def autoconfig_not_implemented():
@@ -491,12 +493,9 @@ def autoconfig_basic_test_menu():
basic_menu_text = '\nWhat would you like to do?\n\n\
1) List/Create Simple IPv4 Setup\n\
+2) Create an iperf VM and Connect to VPP an interface\n\
9 or q) Back to main menu.'
- # 1) List/Create Simple IPv4 Setup\n\
- # 2) List/Create Create VM and Connect to VPP interfaces\n\
- # 9 or q) Back to main menu.'
-
print "{}".format(basic_menu_text)
input_valid = False
@@ -534,8 +533,8 @@ def autoconfig_basic_test():
answer = autoconfig_basic_test_menu()
if answer == '1':
autoconfig_ipv4_setup()
- # elif answer == '2':
- # autoconfig_create_vm()
+ elif answer == '2':
+ autoconfig_create_iperf_vm()
elif answer == '9' or answer == 'q':
return
else:
@@ -664,6 +663,7 @@ def autoconfig_setup(ask_questions=True):
raise RuntimeError('{} failed on node {} {}'. format(cmd, node['host'], stderr))
+# noinspection PyUnresolvedReferences
def execute_with_args(args):
"""
Execute the configuration utility with agruments.