Don't force LC on node set

This makes it so we can never UNDEF/DELETE an entry as that requires
upper case. So we are doing the lower case now where it matters.
This commit is contained in:
Gregory Kurtzer
2022-05-03 21:53:47 -07:00
parent 97a21d60c8
commit dd1cf6f4a5
2 changed files with 4 additions and 2 deletions

View File

@@ -248,7 +248,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
wwlog.Printf(wwlog.VERBOSE, "Node: %s:%s, Setting HW address to: %s\n", n.Id.Get(), SetNetName, SetHwaddr)
n.NetDevs[SetNetName].Hwaddr.Set(strings.ToLower(SetHwaddr))
n.NetDevs[SetNetName].Hwaddr.Set(SetHwaddr)
}
if SetType != "" {