Allow the user to select master or release during the install

Change-Id: Ifef937c4347ba40bde55958f93f2d1720996539f
Signed-off-by: jdenisco <jdenisco@cisco.com>
This commit is contained in:
jdenisco
2018-12-18 15:29:45 -05:00
committed by Damjan Marion
parent 4d3739dddb
commit b0b9dadc5c
3 changed files with 38 additions and 51 deletions

View File

@ -427,8 +427,14 @@ def autoconfig_install():
question = "Do you want to install VPP [Y/n]? "
answer = autoconfig_yn(question, 'y')
if answer == 'y':
question = "Do you want to install the release version [Y/n]? "
answer = autoconfig_yn(question, 'y')
if answer == 'y':
branch = 'release'
else:
branch = 'master'
logger.setLevel(logging.INFO)
vutil.install_vpp(node)
vutil.install_vpp(node, branch)
# Set the logging level back
logger.setLevel(logging.ERROR)