Skip to content

Commit

Permalink
Modify the example comment along the current behavior.
Browse files Browse the repository at this point in the history
From v1.8.0, amazon-vpc-cni-k8s no longer sets VPC CIDR to the from-pod rule.
aws#1475
Ex)
0:	from all lookup local
512:	from all to 192.168.13.238 lookup main
512:	from all to 192.168.16.73 lookup main
512:	from all to 192.168.17.61 lookup main
512:	from all to 192.168.23.14 lookup main
512:	from all to 192.168.25.98 lookup main
512:	from all to 192.168.31.149 lookup main
512:	from all to 192.168.12.92 lookup main
512:	from all to 192.168.9.146 lookup main
512:	from all to 192.168.5.21 lookup main
512:	from all to 192.168.25.41 lookup main
512:	from all to 192.168.26.54 lookup main
512:	from all to 192.168.2.30 lookup main
512:	from all to 192.168.27.246 lookup main
512:	from all to 192.168.21.133 lookup main
1024:	from all fwmark 0x80/0x80 lookup main
1536:	from 192.168.31.149 lookup 2
1536:	from 192.168.12.92 lookup 2
1536:	from 192.168.9.146 lookup 2
1536:	from 192.168.5.21 lookup 2
1536:	from 192.168.25.41 lookup 3
1536:	from 192.168.26.54 lookup 3
1536:	from 192.168.2.30 lookup 3
1536:	from 192.168.27.246 lookup 3
1536:	from 192.168.21.133 lookup 3
32766:	from all lookup main
32767:	from all lookup default
  • Loading branch information
a2ush committed Mar 12, 2022
1 parent 017f4d6 commit e236a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/routed-eni-cni-plugin/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func addContainerRule(netLink netlinkwrapper.NetLink, isToContainer bool, addr *
containerRule.Dst = addr
containerRule.Priority = toContainerRulePriority
} else {
// Example: 1536: from 10.200.202.222 to 10.200.0.0/16 lookup 2
// Example: 1536: from 10.200.202.222 lookup 2
containerRule.Src = addr
containerRule.Priority = fromContainerRulePriority
}
Expand Down

0 comments on commit e236a33

Please sign in to comment.