ovn

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetadataDecoder

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

MetadataDecoder implements a json message raw decoder

func NewProbe

func NewProbe(g *graph.Graph, address string) (probe.Handler, error)

NewProbe creates a new graph OVS database probe

Types

type ACLMetadata

type ACLMetadata struct {
	Action    string `json:",omitempty"`
	Direction string `json:",omitempty"`
	Log       bool   `json:",omitempty"`
	Match     string `json:",omitempty"`
	Priority  int64  `json:",omitempty"`
}

ACLMetadata describes the information of an OVN ACL easyjson:json gendecoder

type LRPMetadata

type LRPMetadata struct {
	GatewayChassis []string       `json:",omitempty"`
	IPv6RAConfigs  graph.Metadata `json:",omitempty" field:"Metadata"`
	Networks       []string       `json:",omitempty"`
	Peer           string         `json:",omitempty"`
}

LRPMetadata describes the information of an OVN logical router port easyjson:json gendecoder

type LSPMetadata

type LSPMetadata struct {
	Addresses     []string `json:",omitempty"`
	PortSecurity  []string `json:",omitempty"`
	DHCPv4Options string   `json:",omitempty"`
	DHCPv6Options string   `json:",omitempty"`
	Type          string   `json:",omitempty"`
}

LSPMetadata describes the information of an OVN logical router easyjson:json gendecoder

type Metadata

type Metadata struct {
	LSPMetadata `json:",omitempty"`
	LRPMetadata `json:",omitempty"`
	ACLMetadata `json:",omitempty"`

	ExtID   graph.Metadata `json:",omitempty" field:"Metadata"`
	Options graph.Metadata `json:",omitempty" field:"Metadata"`
}

Metadata describes the information of an OVN object easyjson:json gendecoder

type Probe

type Probe struct {
	graph.ListenerHandler
	// contains filtered or unexported fields
}

Probe describes an OVN probe

func (*Probe) Do

func (p *Probe) Do(ctx context.Context, wg *sync.WaitGroup) error

Do implements the probe main loop

func (*Probe) OnACLCreate

func (p *Probe) OnACLCreate(acl *goovn.ACL)

OnACLCreate is called when an ACL is created

func (*Probe) OnACLDelete

func (p *Probe) OnACLDelete(acl *goovn.ACL)

OnACLDelete is called when an ACL is deleted

func (*Probe) OnDHCPOptionsCreate

func (p *Probe) OnDHCPOptionsCreate(*goovn.DHCPOptions)

OnDHCPOptionsCreate is called when DHCP options are created

func (*Probe) OnDHCPOptionsDelete

func (p *Probe) OnDHCPOptionsDelete(*goovn.DHCPOptions)

OnDHCPOptionsDelete is called when DHCP options are deleted

func (*Probe) OnDisconnected

func (p *Probe) OnDisconnected()

OnDisconnected is called when the connection to OVSDB is lost

func (*Probe) OnError

func (p *Probe) OnError(err error)

OnError is called when an error occurred in an indexer

func (*Probe) OnLoadBalancerCreate

func (p *Probe) OnLoadBalancerCreate(*goovn.LoadBalancer)

OnLoadBalancerCreate is called when DHCP options are created

func (*Probe) OnLoadBalancerDelete

func (p *Probe) OnLoadBalancerDelete(*goovn.LoadBalancer)

OnLoadBalancerDelete is called when DHCP options are deleted

func (*Probe) OnLogicalPortCreate

func (p *Probe) OnLogicalPortCreate(lp *goovn.LogicalSwitchPort)

OnLogicalPortCreate is called when a logical port is created on a switch

func (*Probe) OnLogicalPortDelete

func (p *Probe) OnLogicalPortDelete(lp *goovn.LogicalSwitchPort)

OnLogicalPortDelete is called when a logical is deleted from a switch

func (*Probe) OnLogicalRouterCreate

func (p *Probe) OnLogicalRouterCreate(ls *goovn.LogicalRouter)

OnLogicalRouterCreate is called when a logical router is created

func (*Probe) OnLogicalRouterDelete

func (p *Probe) OnLogicalRouterDelete(ls *goovn.LogicalRouter)

OnLogicalRouterDelete is called when a logical router is deleted

func (*Probe) OnLogicalRouterPortCreate

func (p *Probe) OnLogicalRouterPortCreate(lp *goovn.LogicalRouterPort)

OnLogicalRouterPortCreate is called when a logical port is created on a router

func (*Probe) OnLogicalRouterPortDelete

func (p *Probe) OnLogicalRouterPortDelete(lp *goovn.LogicalRouterPort)

OnLogicalRouterPortDelete is called when a logical port is removed from a router

func (*Probe) OnLogicalRouterStaticRouteCreate

func (p *Probe) OnLogicalRouterStaticRouteCreate(lp *goovn.LogicalRouterStaticRoute)

OnLogicalRouterStaticRouteCreate is called when a static route is added to a router

func (*Probe) OnLogicalRouterStaticRouteDelete

func (p *Probe) OnLogicalRouterStaticRouteDelete(lp *goovn.LogicalRouterStaticRoute)

OnLogicalRouterStaticRouteDelete is called when a static route is removed from a router

func (*Probe) OnLogicalSwitchCreate

func (p *Probe) OnLogicalSwitchCreate(ls *goovn.LogicalSwitch)

OnLogicalSwitchCreate is called when a logical switch is created

func (*Probe) OnLogicalSwitchDelete

func (p *Probe) OnLogicalSwitchDelete(ls *goovn.LogicalSwitch)

OnLogicalSwitchDelete is called when a logical switch is deleted

func (*Probe) OnQoSCreate

func (p *Probe) OnQoSCreate(*goovn.QoS)

OnQoSCreate is called when QoS is created

func (*Probe) OnQoSDelete

func (p *Probe) OnQoSDelete(*goovn.QoS)

OnQoSDelete is called when QoS is deleted

Jump to

Keyboard shortcuts

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