aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vpp_config/vpp_config.py
diff options
context:
space:
mode:
authorJohn DeNisco <jdenisco@cisco.com>2017-11-01 12:37:47 -0400
committerChris Luke <chris_luke@comcast.com>2017-11-01 18:06:33 +0000
commitc6b2a206b6a27bd136adb856cf51828bf91d892d (patch)
tree51a38aa2b75cfd344e742311778c635b317a2434 /extras/vpp_config/vpp_config.py
parenta74b7419bd6c7c5b23f59253b0b0b6c0d683794d (diff)
A bit of cleanup, updated the README, started vhost test.
Change-Id: I49b998644b8b79c778c1186fc09831b1cd8fc015 Signed-off-by: John DeNisco <jdenisco@cisco.com>
Diffstat (limited to 'extras/vpp_config/vpp_config.py')
-rwxr-xr-xextras/vpp_config/vpp_config.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/extras/vpp_config/vpp_config.py b/extras/vpp_config/vpp_config.py
index b8b49a032b4..da455c178a4 100755
--- a/extras/vpp_config/vpp_config.py
+++ b/extras/vpp_config/vpp_config.py
@@ -450,6 +450,16 @@ def autoconfig_ipv4_setup():
acfg.ipv4_interface_setup()
+def autoconfig_create_vm():
+ """
+ Setup IPv4 interfaces
+
+ """
+
+ acfg = AutoConfig(rootdir, VPP_AUTO_CONFIGURATION_FILE)
+ acfg.create_and_bridge_virtual_interfaces()
+
+
def autoconfig_not_implemented():
"""
This feature is not implemented
@@ -465,10 +475,14 @@ def autoconfig_basic_test_menu():
"""
+# basic_menu_text = '\nWhat would you like to do?\n\n\
+# 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.'
+
basic_menu_text = '\nWhat would you like to do?\n\n\
1) List/Create Simple IPv4 Setup\n\
9 or q) Back to main menu.'
-
print "{}".format(basic_menu_text)
input_valid = False
@@ -506,6 +520,8 @@ def autoconfig_basic_test():
answer = autoconfig_basic_test_menu()
if answer == '1':
autoconfig_ipv4_setup()
+ # elif answer == '2':
+ # autoconfig_create_vm()
elif answer == '9' or answer == 'q':
return
else: