vpc

package
v0.0.0-...-c3677c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 6

README

The VPC driver requires you to have a system like systemd-networkd bring up your interfaces.

We use the following configs:

/etc/systemd/network/10-ens3.network:

[Match]
Name=ens3

[Network]
DHCP=ipv4
ConfigureWithoutCarrier=true


[DHCP]
RouteMetric=10
UseDomains=yes

/etc/systemd/network/10-eth0.network:

[Match]
Name=eth0



[Network]
DHCP=ipv4
ConfigureWithoutCarrier=true

[DHCP]
RouteMetric=10
UseDomains=yes

/etc/systemd/network/20-else.network:

[Match]
Name=*

[Network]
ConfigureWithoutCarrier=true
LinkLocalAddressing=ipv6

Documentation

Index

Constants

View Source
const (
	// RefreshInterval indicates how often an IP holder indicates that it holds it.
	RefreshInterval = 30 * time.Second
	// DefaultMinIdlePeriod is the minimum amount of time an IP must be idle before we consider it for GC
	DefaultMinIdlePeriod = 90 * time.Second
	// IngressIFB is the intermediate functional block device used to do ingress processing
	IngressIFB = "ifb-ingress"
	// EgressIFB is the intermediate functional block device used to do egress processing
	EgressIFB = "ifb-egress"
	// NetworkInterfaceDescription is what interfaces are named
	NetworkInterfaceDescription              = "titus-managed"
	DefaultTrunkNetworkInterfaceDescription  = "titus-managed-trunk"
	DefaultBranchNetworkInterfaceDescription = "titus-managed-branch"
	DefaultSubnetCIDRReservationDescription  = "titus-reserved"
)

Variables

This section is empty.

Functions

func GetMaxBranchENIs

func GetMaxBranchENIs(instanceType string) (int, error)

func GetMaxIPAddresses

func GetMaxIPAddresses(instanceType string) (int, error)

GetMaxIPAddresses returns the maximum number of IPv4 addresses that this instance type can handle

func GetMaxInterfaces

func GetMaxInterfaces(instanceType string) (int, error)

GetMaxInterfaces returns the maximum number of interfaces that this instance type can handle includes the primary ENI

func GetMaxNetworkMbps

func GetMaxNetworkMbps(instanceType string) (int, error)

GetMaxNetworkMbps returns the maximum network throughput in Megabits per second that this instance type can handle

func GetMaxNetworkbps

func GetMaxNetworkbps(instanceType string) (uint64, error)

GetMaxNetworkbps returns the maximum network throughput in bits per second that this instance type can handle

func MustGetMaxBranchENIs

func MustGetMaxBranchENIs(instanceType string) int

func MustGetMaxIPAddresses

func MustGetMaxIPAddresses(instanceType string) int

MustGetMaxIPAddresses returns the maximum number of IPv4 addresses that this instance type can handle

func MustGetMaxInterfaces

func MustGetMaxInterfaces(instanceType string) int

MustGetMaxInterfaces returns the maximum number of interfaces that this instance type can handle includes the primary ENI

func MustGetMaxNetworkMbps

func MustGetMaxNetworkMbps(instanceType string) int

GetMaxNetworkMbps returns the maximum network throughput in Megabits per second that this instance type can handle

func MustGetMaxNetworkbps

func MustGetMaxNetworkbps(instanceType string) uint64

GetMaxNetworkbps returns the maximum network throughput in bits per second that this instance type can handle

Types

This section is empty.

Directories

Path Synopsis
bpf
bpf2
db
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
tool
gc3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL