opencontrail

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataDecoder added in v0.24.0

func MetadataDecoder(raw json.RawMessage) (common.Getter, error)

MetadataDecoder implements a json message raw decoder

Types

type Metadata added in v0.24.0

type Metadata struct {
	UUID         string   `json:",omitempty"`
	MAC          string   `json:",omitempty"`
	VRF          string   `json:",omitempty"`
	VRFID        int64    `json:",omitempty"`
	LocalIP      string   `json:",omitempty"`
	RoutingTable []*Route `json:",omitempty"`
}

Metadata defines the information stored about a Contrail interface easyjson:json gendecoder

type Probe added in v0.21.0

type Probe struct {
}

Probe describes a probe that reads OpenContrail database and updates the graph

func NewProbeFromConfig added in v0.21.0

func NewProbeFromConfig(g *graph.Graph, r *graph.Node) (*Probe, error)

NewProbeFromConfig creates a new OpenContrail probe based on configuration

func (*Probe) Start added in v0.21.0

func (mapper *Probe) Start()

Start the probe

func (*Probe) Stop added in v0.21.0

func (mapper *Probe) Stop()

Stop the probe

type Route added in v0.24.0

type Route struct {
	Family   string `json:",omitempty"`
	Prefix   string `json:",omitempty"`
	NhID     int64  `json:"NhID,omitempty"`
	Protocol int64  `json:",omitempty"`
}

Route is the skydive representation of a Contrail route easyjson:json gendecoder

type RoutingTable added in v0.24.0

type RoutingTable struct {
	InterfacesUUID []string
	Routes         []*Route
}

RoutingTable describes a Contrail route. A VRF contains the list of interface that use this VRF in order to be able to garbage collect VRF: if a VRF is no longer associated to an interface, this VRF can be deleted. easyjson:json gendecoder

Source Files

  • metadata.go
  • no_opencontrail.go

Jump to

Keyboard shortcuts

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