util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

View Source
const (
	MacAddressAnnotation = "ovn.kubernetes.io/mac_address"
	IpAddressAnnotation  = "ovn.kubernetes.io/ip_address"
	CidrAnnotation       = "ovn.kubernetes.io/cidr"
	GatewayAnnotation    = "ovn.kubernetes.io/gateway"
	IpPoolAnnotation     = "ovn.kubernetes.io/ip_pool"

	IngressRateAnnotation = "ovn.kubernetes.io/ingress_rate"
	EgressRateAnnotation  = "ovn.kubernetes.io/egress_rate"

	PortNameAnnotation = "ovn.kubernetes.io/port_name"

	LogicalSwitchAnnotation = "ovn.kubernetes.io/logical_switch"
	ExcludeIpsAnnotation    = "ovn.kubernetes.io/exclude_ips"

	ServiceAnnotation = "ovn.kubernetes.io/service"

	ProtocolTCP = "tcp"
	ProtocolUDP = "udp"

	NodeNic = "ovn0"

	PrivateSwitchAnnotation = "ovn.kubernetes.io/private"
	AllowAccessAnnotation   = "ovn.kubernetes.io/allow"

	DefaultDropPriority = "1000"
	NodeAllowPriority   = "1001"
	SubnetAllowPriority = "1002"

	GWTypeAnnotation  = "ovn.kubernetes.io/gateway_type"
	GWDistributedMode = "distributed"
	GWCentralizedMode = "centralized"
	GWNode            = "ovn.kubernetes.io/gateway_node"
)

Variables

This section is empty.

Functions

func GenerateMac

func GenerateMac() string

GenerateMac generates mac address.

Types

type IPTableRule

type IPTableRule struct {
	Table string
	Chain string
	Rule  []string
}

Jump to

Keyboard shortcuts

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