Skip to content

Commit

Permalink
fix: set dhcp gateway to U2OInterconnectionIP when enabling dhcp and …
Browse files Browse the repository at this point in the history
…u2o (#4228)

Signed-off-by: zcq98 <[email protected]>
Co-authored-by: 张祖建 <[email protected]>
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhaocongqi and zhangzujian committed Jul 11, 2024
1 parent 54aa76f commit bf5a554
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/ovs/ovn-nb-dhcp_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ func (c *OVNNbClient) UpdateDHCPOptions(subnet *kubeovnv1.Subnet, mtu int) (*DHC
lsName := subnet.Name
cidrBlock := subnet.Spec.CIDRBlock
gateway := subnet.Spec.Gateway
if subnet.Status.U2OInterconnectionIP != "" && subnet.Spec.U2OInterconnection {
gateway = subnet.Status.U2OInterconnectionIP
}
enableDHCP := subnet.Spec.EnableDHCP

/* delete dhcp options */
Expand Down

0 comments on commit bf5a554

Please sign in to comment.