Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unix.RT_TABLE_MAIN for main routing table number in driver #279

Merged
merged 1 commit into from
Jan 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions plugins/routed-eni/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"syscall"

"github.com/pkg/errors"
"golang.org/x/sys/unix"

"github.com/containernetworking/cni/pkg/ns"
"github.com/vishvananda/netlink"
Expand All @@ -36,8 +37,8 @@ const (
// 1024 is reserved for (ip rule not to <vpc's subnet> table main)
fromContainerRulePriority = 1536

// TODO need to test all distros use this number
mainRouteTable = 254
// main routing table number
mainRouteTable = unix.RT_TABLE_MAIN
// MTU of veth - ENI MTU defined in pkg/networkutils/network.go
ethernetMTU = 9001
)
Expand Down