Minor usability fixes in network config

This commit is contained in:
Gregory Kurtzer
2021-10-23 12:25:51 -07:00
parent fcd654af80
commit 498515f7b5
2 changed files with 1 additions and 5 deletions

View File

@@ -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 != "" {

View File

@@ -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")