Minor usability fixes in network config
This commit is contained in:
@@ -49,10 +49,6 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
n.NetDevs[SetNetName].Device.Set(SetNetDev)
|
||||
n.NetDevs[SetNetName].OnBoot.SetB(true)
|
||||
|
||||
// err := nodeDB.NodeUpdate(n)
|
||||
// if err != nil {
|
||||
// return errors.Wrap(err, "failed to update nodedb")
|
||||
// }
|
||||
}
|
||||
|
||||
if SetIpaddr != "" {
|
||||
|
||||
@@ -24,7 +24,7 @@ var (
|
||||
func init() {
|
||||
baseCmd.PersistentFlags().StringVarP(&SetClusterName, "cluster", "c", "", "Set the node's cluster name")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetNetName, "netname", "n", "default", "Define the network name to configure")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetNetDev, "netdev", "N", "eth0", "Define the network device to configure")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetNetDev, "netdev", "N", "", "Define the network device to configure")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetIpaddr, "ipaddr", "I", "", "Set the node's network device IP address")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetNetmask, "netmask", "M", "", "Set the node's network device netmask")
|
||||
baseCmd.PersistentFlags().StringVarP(&SetGateway, "gateway", "G", "", "Set the node's network device gateway")
|
||||
|
||||
Reference in New Issue
Block a user