Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Open = func() (Client, error) { odb, err := ovs.Connect("127.0.0.1", 6640) return client{odb}, err }
Open creates a new Ovsdb connection. It's stored in a variable so we can mock it out for the unit tests.
Functions ¶
This section is empty.
Types ¶
type ACLCore ¶
ACLCore is the actual ACL rule that will be matched, without various OVSDB metadata found in ACL.
type AddressSet ¶
AddressSet is a named group of IPs in OVN.
type Client ¶
type Client interface { CreateLogicalSwitch(lswitch string) error ListLogicalPorts() ([]LPort, error) CreateLogicalPort(lswitch, name, mac, ip string) error DeleteLogicalPort(lswitch string, lport LPort) error ListACLs() ([]ACL, error) CreateACL(lswitch, direction string, priority int, match, action string) error DeleteACL(lswitch string, ovsdbACL ACL) error ListAddressSets() ([]AddressSet, error) CreateAddressSet(name string, addresses []string) error DeleteAddressSet(name string) error OpenFlowPorts() (map[string]int, error) Disconnect() }
Client is a connection to the ovsdb-server database.
type Interface ¶
type Interface struct { Name string Peer string AttachedMAC string IfaceID string Bridge string Type string }
Interface is a linux device attached to OVS.
type LPortSlice ¶
type LPortSlice []LPort
LPortSlice is a wrapper around []LPort so it can be used in joins
func (LPortSlice) Get ¶
func (lps LPortSlice) Get(i int) interface{}
Get gets the element at the ith index
Click to show internal directories.
Click to hide internal directories.