Skip to content

Commit

Permalink
Merge pull request #119 from BSWANG/master
Browse files Browse the repository at this point in the history
Change RuleList Family to FAMILY_V4 to ensure conflict routes cleanup
  • Loading branch information
BSWANG authored Jul 1, 2020
2 parents 40d0695 + 2079e08 commit 8f40263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/driver/drivers.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (d *vethDriver) Setup(
return errors.Wrapf(err, "vethDriver, fail ensure eni config")
}

ruleList, err := netlink.RuleList(netlink.FAMILY_ALL)
ruleList, err := netlink.RuleList(netlink.FAMILY_V4)
if err != nil {
return errors.Wrapf(err, "vethDriver, fail list rule")
}
Expand Down Expand Up @@ -383,7 +383,7 @@ func (d *vethDriver) Teardown(hostIfName string,
// 2. fixme remove ingress/egress rule for pod ip

// found table for container
ruleList, err := netlink.RuleList(netlink.FAMILY_ALL)
ruleList, err := netlink.RuleList(netlink.FAMILY_V4)
if err != nil {
return errors.Wrapf(err, "failed list ip rule from netlink")
}
Expand Down

0 comments on commit 8f40263

Please sign in to comment.