Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requirement: add admin_user/admin_password conf file
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. Change-Id: I7f7da2108cdf3b1382c0835fd7d52851d606445a Closes-Bug: 1658821
- Loading branch information
1 parent
bedf67b
commit 599749a
Showing
3 changed files
with
169 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters