From 93673b3e62b2438496b458a2986a602ec0a84245 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Sun, 12 May 2024 02:51:12 +0000 Subject: [PATCH] fix lsp not updating addresses Signed-off-by: zhangzujian --- pkg/ovs/ovn-nb-logical_switch_port.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ovs/ovn-nb-logical_switch_port.go b/pkg/ovs/ovn-nb-logical_switch_port.go index e3e1b0ea5df..be082b76a6e 100644 --- a/pkg/ovs/ovn-nb-logical_switch_port.go +++ b/pkg/ovs/ovn-nb-logical_switch_port.go @@ -98,7 +98,7 @@ func (c *OVNNbClient) CreateLogicalSwitchPort(lsName, lspName, ip, mac, podName, // update if exists if exist { lsp := buildLogicalSwitchPort(lspName, lsName, ip, mac, podName, namespace, portSecurity, securityGroups, vips, enableDHCP, dhcpOptions, vpc) - if err := c.UpdateLogicalSwitchPort(lsp, &lsp.PortSecurity, &lsp.ExternalIDs); err != nil { + if err := c.UpdateLogicalSwitchPort(lsp, &lsp.Addresses, &lsp.Dhcpv4Options, &lsp.Dhcpv6Options, &lsp.PortSecurity, &lsp.ExternalIDs); err != nil { klog.Error(err) return fmt.Errorf("failed to update logical switch port %s: %v", lspName, err) }