Skip to content

Commit 4c6e7f9

Browse files
author
OpenShift Bot
authored
Merge pull request #12852 from knobunc/bug/bz1420032-fix-multicast-range
Merged by openshift-bot
2 parents b08efa1 + 44bb9b7 commit 4c6e7f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/sdn/plugin/controller.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ func (plugin *OsdnNode) SetupSDN() (bool, error) {
241241
// vxlan0
242242
otx.AddFlow("table=0, priority=200, in_port=1, arp, nw_src=%s, nw_dst=%s, actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10", clusterNetworkCIDR, localSubnetCIDR)
243243
otx.AddFlow("table=0, priority=200, in_port=1, ip, nw_src=%s, nw_dst=%s, actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10", clusterNetworkCIDR, localSubnetCIDR)
244-
otx.AddFlow("table=0, priority=200, in_port=1, ip, nw_src=%s, nw_dst=224.0.0.0/3, actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10", clusterNetworkCIDR)
244+
otx.AddFlow("table=0, priority=200, in_port=1, ip, nw_src=%s, nw_dst=224.0.0.0/4, actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[],goto_table:10", clusterNetworkCIDR)
245245
otx.AddFlow("table=0, priority=150, in_port=1, actions=drop")
246246
// tun0
247-
otx.AddFlow("table=0, priority=250, in_port=2, ip, nw_dst=224.0.0.0/3, actions=drop")
247+
otx.AddFlow("table=0, priority=250, in_port=2, ip, nw_dst=224.0.0.0/4, actions=drop")
248248
otx.AddFlow("table=0, priority=200, in_port=2, arp, nw_src=%s, nw_dst=%s, actions=goto_table:30", localSubnetGateway, clusterNetworkCIDR)
249249
otx.AddFlow("table=0, priority=200, in_port=2, ip, actions=goto_table:30")
250250
otx.AddFlow("table=0, priority=150, in_port=2, actions=drop")
@@ -276,9 +276,9 @@ func (plugin *OsdnNode) SetupSDN() (bool, error) {
276276
otx.AddFlow("table=30, priority=100, ip, nw_dst=%s, actions=goto_table:90", clusterNetworkCIDR)
277277

278278
// Multicast coming from the VXLAN
279-
otx.AddFlow("table=30, priority=50, in_port=1, ip, nw_dst=224.0.0.0/3, actions=goto_table:120")
279+
otx.AddFlow("table=30, priority=50, in_port=1, ip, nw_dst=224.0.0.0/4, actions=goto_table:120")
280280
// Multicast coming from local pods
281-
otx.AddFlow("table=30, priority=25, ip, nw_dst=224.0.0.0/3, actions=goto_table:110")
281+
otx.AddFlow("table=30, priority=25, ip, nw_dst=224.0.0.0/4, actions=goto_table:110")
282282

283283
otx.AddFlow("table=30, priority=0, ip, actions=goto_table:100")
284284
otx.AddFlow("table=30, priority=0, arp, actions=drop")

pkg/sdn/plugin/pod.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func getIPAMConfig(clusterNetwork *net.IPNet, localSubnet string) ([]byte, error
101101
IPAM *hostLocalIPAM `json:"ipam"`
102102
}
103103

104-
_, mcnet, _ := net.ParseCIDR("224.0.0.0/3")
104+
_, mcnet, _ := net.ParseCIDR("224.0.0.0/4")
105105
return json.Marshal(&cniNetworkConfig{
106106
Name: "openshift-sdn",
107107
Type: "openshift-sdn",

0 commit comments

Comments
 (0)