ovn

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: 8 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 ACLMetadata added in v0.24.0

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 added in v0.24.0

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 added in v0.24.0

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 added in v0.24.0

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 NewProbe

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

NewProbe creates a new graph OVS database probe

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

func (*Probe) Start

func (p *Probe) Start()

Start the probe

func (*Probe) Stop

func (p *Probe) Stop()

Stop the probe

Jump to

Keyboard shortcuts

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