l2

package
v3.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Log logging.Logger

	VppCache api.VppCache
	K8sCache api.K8sCache
	Report   api.Report
}

Validator is the implementation of the ContivTelemetryProcessor interface.

func (*Validator) Validate

func (v *Validator) Validate()

Validate performs the validation of L2 telemetry data collected from a Contiv cluster.

func (*Validator) ValidateArpTables

func (v *Validator) ValidateArpTables()

ValidateArpTables validates statically configured entries in the ARP table for both the local BVI interface as well as BVI interfaces on remote nodes. The routine checks that each entry points to a valid interface. The routine also detects stale entries in the ARP table (i.e. entries that do not point to any active nodes in the cluster).

func (*Validator) ValidateBridgeDomains

func (v *Validator) ValidateBridgeDomains()

ValidateBridgeDomains makes sure that each node in the cache has the right number of vxlan_tunnels for the number of nodes as well as checking that each vxlan_tunnel points to a node that has a corresponding but opposite tunnel itself.

func (*Validator) ValidateK8sNodeInfo

func (v *Validator) ValidateK8sNodeInfo()

ValidateK8sNodeInfo will make sure that K8s's view of nodes in the cluster is consistent with Contiv's view of nodes in the cluster. Each node in K8s database must have a counterpart node in the Contiv database and vice versa.

func (*Validator) ValidateL2FibEntries

func (v *Validator) ValidateL2FibEntries()

ValidateL2FibEntries validates statically configured L2 FIB entries for remote nodes. It checks that each remote node has a statically configured entry in the L2 FIB table and that the entry points to a valid interface on the remote node. It also detect dangling L2FIB entries (i.e. entries that do not point to active remote nodes).

func (*Validator) ValidatePodInfo

func (v *Validator) ValidatePodInfo()

ValidatePodInfo will check that each pod has a valid host ip address node and that the information correctly correlates between the nodes and the pods.

Jump to

Keyboard shortcuts

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