Changed backend node API to account for default and overrides for UI

This commit is contained in:
Gregory Kurtzer
2020-11-23 23:11:20 -08:00
parent c8ed66a6dc
commit e5e23b5868
36 changed files with 569 additions and 478 deletions

View File

@@ -20,7 +20,7 @@ var (
SetIpmiIpaddr string
SetIpmiUsername string
SetIpmiPassword string
SetGroupAll bool
)
func init() {
@@ -35,6 +35,8 @@ func init() {
baseCmd.PersistentFlags().StringVar(&SetIpmiPassword, "ipmipass", "", "Set the node's IPMI password")
baseCmd.PersistentFlags().BoolVarP(&SetClearNodes, "clear", "c", false, "Clear node configurations when setting parent group")
baseCmd.PersistentFlags().BoolVarP(&SetGroupAll, "all", "a", false, "Set all nodes")
}
// GetRootCommand returns the root cobra.Command for the application.