Description:
Customer require a way to read admin/admin password from given path/file
--admin-user and --admin-password command is not secret since it would be displayed.The expected change to contrail-logs, contrail-stats, contrail-flow.
Solution:
Add a new command --admin-conf-file and follow these rules:
(1) giving the highest priority to --admin/--admin-password only when they are specified in the command line.
(2) if --admin/--admin-password are not specified and --conf-file is specified, read the file specified by --conf-file.
(3) if any of --admin/--admin-password/--conf-file are not specified, read the default conf file.
(4) if any options are not specified and the credential cannot be read from the default conf file, use default user and password.
Reviewed: https:/ /review. opencontrail. org/28647 github. org/Juniper/ contrail- controller/ commit/ 803d6f8b93caa5e f5db877cf601bde 04e755ef3d
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: R3.1
commit 803d6f8b93caa5e f5db877cf601bde 04e755ef3d
Author: zcui <email address hidden>
Date: Thu Feb 9 10:10:59 2017 -0800
Requirement: add admin_user/ admin_password conf file
Description: --admin- password only when they are specified in the command line. --admin- password are not specified and --conf-file is specified, read the file specified by --conf-file. --admin- password/ --conf- file are not specified, read the default conf file.
Customer require a way to read admin/admin password from given path/file
--admin-user and --admin-password command is not secret since it would be displayed.The expected change to contrail-logs, contrail-stats, contrail-flow.
Solution:
Add a new command --admin-conf-file and follow these rules:
(1) giving the highest priority to --admin/
(2) if --admin/
(3) if any of --admin/
(4) if any options are not specified and the credential cannot be read from the default conf file, use default user and password.
Closes-Bug: 1658821 85395e950e69825 eaedeb49347
Change-Id: If9d7c2640fafd0