m/n/c/network: fix add/modify condition

The unset value for Index is 0, not -1. This caused new links to
incorrectly use the LinkModify path.

Change-Id: I92f3fcaa8e4df9097251e3e27bd69c75a2ad878b
Reviewed-on: https://review.monogon.dev/c/monogon/+/1588
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/node/core/network/static.go b/metropolis/node/core/network/static.go
index 0c694e7..b04cba3 100644
--- a/metropolis/node/core/network/static.go
+++ b/metropolis/node/core/network/static.go
@@ -78,7 +78,7 @@
 			// Set link administratively up if no MasterIndex has been set.
 			newLink.Attrs().Flags |= net.FlagUp
 		}
-		if newLink.Attrs().Index == -1 {
+		if newLink.Attrs().Index <= 0 {
 			if err := netlink.LinkAdd(newLink); err != nil {
 				return fmt.Errorf("failed to add link %q: %w", i.Name, err)
 			}