Skip to content
Snippets Groups Projects
Commit 5c843cf1 authored by S.H.'s avatar S.H.
Browse files

Change gosdn to accept databaseConnection CLI argument to set connection dynamically

parent a261eea4
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ var pluginRegistry string
var pluginFolder string
var security string
var noGRPCPassthrough bool
var dbaseConn string
// rootCmd represents the base command when called without any subcommands.
var rootCmd = &cobra.Command{
......@@ -88,6 +89,7 @@ func init() {
rootCmd.Flags().StringVar(&pluginFolder, "plugin-folder", "", "folder holding all goSDN specific plugins")
rootCmd.Flags().StringVarP(&security, "security", "s", "", "security level 'secure' or 'insecure'")
rootCmd.Flags().BoolVar(&noGRPCPassthrough, "noGRPCPassthrough", false, "set the default resolve scheme for grpc to not use passthrough, default is false")
rootCmd.Flags().StringVarP(&dbaseConn, "databaseConnection", "d", "", "database connection to use (default is 'mongodb://root:example@clab-gosdn_csbi_arista_base-mongodb:27017')")
}
const (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment