mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
vpcagent: ovn: guestnetwork: guard against empty dhcpopt
This commit is contained in:
@@ -217,6 +217,9 @@ func (keeper *OVNNorthboundKeeper) ClaimGuestnetwork(ctx context.Context, guestn
|
||||
res := keeper.cli.Must(ctx, "find dhcpopt", args)
|
||||
dhcpOpt = strings.TrimSpace(res.Output)
|
||||
}
|
||||
if dhcpOpt == "" {
|
||||
return fmt.Errorf("cannot find dhcpopt for subnet %s", guestnetwork.NetworkId)
|
||||
}
|
||||
}
|
||||
|
||||
gnp := &ovnutil.LogicalSwitchPort{
|
||||
|
||||
Reference in New Issue
Block a user