adding netname option back
This commit is contained in:
@@ -33,16 +33,18 @@ var (
|
||||
},
|
||||
}
|
||||
SetNetDevDel string
|
||||
NetName string
|
||||
SetNodeAll bool
|
||||
SetYes bool
|
||||
SetForce bool
|
||||
nodeConf node.NodeConf
|
||||
NodeConf node.NodeConf
|
||||
)
|
||||
|
||||
func init() {
|
||||
nodeConf := node.NewConf()
|
||||
nodeConf.CreateFlags(baseCmd, []string{})
|
||||
NodeConf = node.NewConf()
|
||||
NodeConf.CreateFlags(baseCmd, []string{})
|
||||
baseCmd.PersistentFlags().StringVarP(&SetNetDevDel, "netdel", "D", "", "Delete the node's network device")
|
||||
baseCmd.PersistentFlags().StringVar(&NetName, "netname", "", "Set network name for network options")
|
||||
baseCmd.PersistentFlags().BoolVarP(&SetNodeAll, "all", "a", false, "Set all nodes")
|
||||
baseCmd.PersistentFlags().BoolVarP(&SetYes, "yes", "y", false, "Set 'yes' to all questions asked")
|
||||
baseCmd.PersistentFlags().BoolVarP(&SetForce, "force", "f", false, "Force configuration (even on error)")
|
||||
|
||||
Reference in New Issue
Block a user