Skip to content

Commit

Permalink
fix: gc delete multus ip cr and lsp setting when enable keep vm ip (#…
Browse files Browse the repository at this point in the history
…3378)

Signed-off-by: wujixin <wujix@yealink.com>
Co-authored-by: wujixin <wujix@yealink.com>
  • Loading branch information
2 people authored and bobz965 committed Nov 8, 2023
1 parent a37ee6b commit 1961331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/gc.go
Expand Up @@ -779,7 +779,7 @@ func (c *Controller) getVMLsps() []string {
if network.Multus != nil && network.Multus.NetworkName != "" {
items := strings.Split(network.Multus.NetworkName, "/")
if len(items) != 2 {
continue
items = []string{vm.GetNamespace(), items[0]}
}
provider := fmt.Sprintf("%s.%s.ovn", items[1], items[0])
vmLsp := ovs.PodNameToPortName(vm.Name, ns.Name, provider)
Expand Down

0 comments on commit 1961331

Please sign in to comment.