metropolis: reduce usage of identity.NodeID

Eventually, we want to be able to rotate node keypairs. To allow this,
the node ID needs to become independent of the public key. This change
is a refactoring which starts this work by reducing the usage of
identity.NodeID, the function which derives a node ID from a public key.

Change-Id: I5231ed0a7be37c23327fec93481b00c74374af07
Reviewed-on: https://review.monogon.dev/c/monogon/+/3445
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/metropolis/cli/metroctl/table_node.go b/metropolis/cli/metroctl/table_node.go
index 9c79489..2f8317d 100644
--- a/metropolis/cli/metroctl/table_node.go
+++ b/metropolis/cli/metroctl/table_node.go
@@ -6,7 +6,6 @@
 	"strings"
 
 	"source.monogon.dev/go/clitable"
-	"source.monogon.dev/metropolis/node/core/identity"
 	apb "source.monogon.dev/metropolis/proto/api"
 	cpb "source.monogon.dev/metropolis/proto/common"
 	"source.monogon.dev/version"
@@ -15,7 +14,7 @@
 func nodeEntry(n *apb.Node) clitable.Entry {
 	res := clitable.Entry{}
 
-	res.Add("node id", identity.NodeID(n.Pubkey))
+	res.Add("node id", n.Id)
 	state := n.State.String()
 	state = strings.ReplaceAll(state, "NODE_STATE_", "")
 	res.Add("state", state)