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/29110 github. org/Juniper/ contrail- controller/ commit/ a07d54afbc3ab36 9e39676f861b4c4 0cc351cef7
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit a07d54afbc3ab36 9e39676f861b4c4 0cc351cef7
Author: zcui <email address hidden>
Date: Tue Feb 21 14:33:24 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
Conflicts: log.py
src/opserver/
Change-Id: I7b4fbc0dd5f06f e6b740d6f325183 9f26116627d