Skip to content

Commit

Permalink
fix ic subnet
Browse files Browse the repository at this point in the history
Signed-off-by: bobz965 <zhangbingbing2_yewu@cmss.chinamobile.com>
  • Loading branch information
zbb88888 committed Feb 6, 2024
1 parent 813e00d commit d1e5380
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/controller/subnet.go
Original file line number Diff line number Diff line change
@@ -588,14 +588,6 @@ func (c *Controller) handleAddOrUpdateSubnet(key string) error {
return nil
}

subnet, err = c.config.KubeOvnClient.KubeovnV1().Subnets().Get(context.Background(), key, metav1.GetOptions{})
if err != nil {
if k8serrors.IsNotFound(err) {
return nil
}
klog.Errorf("failed to get subnet %s error %v", key, err)
return err
}
if err = util.ValidateSubnet(*subnet); err != nil {
klog.Errorf("failed to validate subnet %s, %v", subnet.Name, err)
c.patchSubnetStatus(subnet, "ValidateLogicalSwitchFailed", err.Error())

0 comments on commit d1e5380

Please sign in to comment.