Skip to content

Commit

Permalink
Seems the rule got merged twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Claes Mogren committed Sep 12, 2020
1 parent 91ce9f5 commit b0103e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/networkutils/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,17 +447,6 @@ func (n *linuxNetwork) SetupHostNetwork(vpcCIDRs []string, primaryMAC string, pr
},
})

iptableRules = append(iptableRules, iptablesRule{
name: "connmark restore for primary ENI from vlan",
shouldExist: n.nodePortSupportEnabled,
table: "mangle",
chain: "PREROUTING",
rule: []string{
"-m", "comment", "--comment", "AWS, primary ENI",
"-i", "vlan+", "-j", "CONNMARK", "--restore-mark", "--mask", fmt.Sprintf("%#x", n.mainENIMark),
},
})

for _, rule := range iptableRules {
log.Debugf("execute iptable rule : %s", rule.name)

Expand Down

0 comments on commit b0103e4

Please sign in to comment.