Add IPMI Power Commands, Soft And Reset

This commit is contained in:
Michael L. Young
2021-08-25 08:23:22 -04:00
parent 26fd9ed0aa
commit a9fcf5e749
7 changed files with 252 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ import (
powercycle "github.com/hpcng/warewulf/internal/app/wwctl/power/cycle"
poweroff "github.com/hpcng/warewulf/internal/app/wwctl/power/off"
poweron "github.com/hpcng/warewulf/internal/app/wwctl/power/on"
powerreset "github.com/hpcng/warewulf/internal/app/wwctl/power/reset"
powersoft "github.com/hpcng/warewulf/internal/app/wwctl/power/soft"
powerstatus "github.com/hpcng/warewulf/internal/app/wwctl/power/status"
"github.com/spf13/cobra"
)
@@ -23,6 +25,8 @@ func init() {
baseCmd.AddCommand(powercycle.GetCommand())
baseCmd.AddCommand(poweroff.GetCommand())
baseCmd.AddCommand(poweron.GetCommand())
baseCmd.AddCommand(powerreset.GetCommand())
baseCmd.AddCommand(powersoft.GetCommand())
baseCmd.AddCommand(powerstatus.GetCommand())
}