Skip to content

Commit 1d3c35d

Browse files
committed
ignore unknown? wait wait, the cni design is not good as i know ah
1 parent 7d496a9 commit 1d3c35d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

network/cni/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *CNI) Config(ctx context.Context, vmID string, numNICs int, vmCfg *types
8181
logger.Warnf(ctx, "pre-recovery CNI DEL %s/%s: %v (continuing)", vmID, ifName, delErr)
8282
}
8383
if existing[i].Network != nil && existing[i].Network.IP != "" {
84-
rt.Args = [][2]string{{"IP", existing[i].Network.IP}}
84+
rt.Args = [][2]string{{"IgnoreUnknown", "1"}, {"IP", existing[i].Network.IP}}
8585
}
8686
}
8787

0 commit comments

Comments
 (0)