Skip to content

Commit

Permalink
Allow node update to include own ip/mac
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Dec 19, 2024
1 parent b7f93b6 commit e519ed2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/smdclient/FakeSMDClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ func (f *FakeSMDClient) UpdateNode(node cistore.OpenCHAMIComponent) error {
// if the ip/mac is already in use, return an error
for _, c := range f.rosetta_mapping {
if c.BootMAC == node.MAC || c.BootIPAddress == node.IP {
return errors.New("ip/mac already in use")
if c.ComponentID != node.ID {
return errors.New("ip/mac already in use")
}
}
}
f.components[node.ID] = node.Component
Expand Down

0 comments on commit e519ed2

Please sign in to comment.