validator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	Log logging.Logger
}

Deps lists dependencies of PolicyCache.

type Validator

type Validator struct {
	Deps

	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 performes the validation of telemetry data collected from a Contiv cluster.

func (*Validator) ValidateArpTables

func (v *Validator) ValidateArpTables()

ValidateArpTables validates the the entries of node ARP tables to make sure that the number of entries is correct as well as making sure that each entry's ip address and mac address correspond to the correct node in the network.

func (*Validator) ValidateK8sNodeInfo

func (v *Validator) ValidateK8sNodeInfo()

ValidateK8sNodeInfo will make sure that the cache has the same amount of k8s and etcd nodes and that each node has an equal opposite node.

func (*Validator) ValidateL2Connectivity

func (v *Validator) ValidateL2Connectivity()

ValidateL2Connectivity 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) ValidateL2FibEntries

func (v *Validator) ValidateL2FibEntries()

ValidateL2FibEntries will validate that each nodes fib entries ip address point to the right loop interface and the mac addresses match

func (*Validator) ValidatePodInfo

func (v *Validator) ValidatePodInfo()

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

func (*Validator) ValidateStaticRoutes

func (v *Validator) ValidateStaticRoutes()

ValidateStaticRoutes validates that static routes were successfully gathered for each node.

func (*Validator) ValidateTapToPod

func (v *Validator) ValidateTapToPod()

ValidateTapToPod will find the appropriate tap interface for each pod and cache that information in the pod.

Jump to

Keyboard shortcuts

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