Skip to content

Commit

Permalink
fix: The clusterlink network module keeps refreshing the arp table
Browse files Browse the repository at this point in the history
Signed-off-by: qiuming520 <qiuming_yewu@cmss.chinamobile.com>
  • Loading branch information
qiuming520 committed Aug 11, 2024
1 parent 9661645 commit a5309ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/clusterlink/network-manager/network_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ func ExcludeInvalidItems(clusters []v1alpha1.Cluster, clusterNodes []v1alpha1.Cl
klog.Infof("the cluster %s's ClusterLinkOptions is empty, will exclude.", c.Name)
continue
}

if !c.Spec.ClusterLinkOptions.Enable {
klog.Infof("the cluster %s's ClusterLinkOptions is enable, will exclude.", c.Name)
continue
}

clustersMap[c.Name] = c
cs = append(cs, c)
}
Expand Down

0 comments on commit a5309ba

Please sign in to comment.