Skip to content

Commit e67cfd4

Browse files
committed
ovn-controller: do not send GARP on localnet for Kube-OVN ports (#2690)
1 parent a4cae60 commit e67cfd4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/images/Dockerfile.base

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ RUN cd /usr/src/ && git clone -b branch-21.06 --depth=1 https://github.com/ovn-o
6161
curl -s https://github.com/kubeovn/ovn/commit/71f831b9cc5a6dc923af4ca90286857e2cf8b1d3.patch | git apply && \
6262
# fix reaching resubmit limit in underlay
6363
curl -s https://github.com/kubeovn/ovn/commit/0f6fe4202001c0950dc689179e7a4ad9554a51fa.patch | git apply && \
64+
# ovn-controller: do not send GARP on localnet for Kube-OVN ports
65+
curl -s https://github.com/kubeovn/ovn/commit/60207f7a3d072848936221f1b767722984fd50ae.patch | git apply && \
6466
sed -i 's/OVN/ovn/g' debian/changelog && \
6567
rm -rf .git && \
6668
./boot.sh && \

pkg/daemon/ovs.go

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (csh cniServerHandler) configureNic(podName, podNamespace, provider, netns,
5151
// Add veth pair host end to ovs port
5252
output, err := ovs.Exec(ovs.MayExist, "add-port", "br-int", hostNicName, "--",
5353
"set", "interface", hostNicName, fmt.Sprintf("external_ids:iface-id=%s", ifaceID),
54+
fmt.Sprintf("external_ids:vendor=%s", util.CniTypeName),
5455
fmt.Sprintf("external_ids:pod_name=%s", podName),
5556
fmt.Sprintf("external_ids:pod_namespace=%s", podNamespace),
5657
fmt.Sprintf("external_ids:ip=%s", ipStr),
@@ -1049,6 +1050,7 @@ func (csh cniServerHandler) configureNicWithInternalPort(podName, podNamespace,
10491050
output, err := ovs.Exec(ovs.MayExist, "add-port", "br-int", containerNicName, "--",
10501051
"set", "interface", containerNicName, "type=internal", "--",
10511052
"set", "interface", containerNicName, fmt.Sprintf("external_ids:iface-id=%s", ifaceID),
1053+
fmt.Sprintf("external_ids:vendor=%s", util.CniTypeName),
10521054
fmt.Sprintf("external_ids:pod_name=%s", podName),
10531055
fmt.Sprintf("external_ids:pod_namespace=%s", podNamespace),
10541056
fmt.Sprintf("external_ids:ip=%s", ipStr),

0 commit comments

Comments
 (0)