Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/digitalocean/go-openvswitch
/ functions
Functions
571 in github.com/digitalocean/go-openvswitch
⨍
Functions
571
◇
Types & classes
151
↓ 4 callers
Function
Flood
Flood outputs the packet on all switch ports other than the port on which it was received, which have flooding enabled.
ovs/action.go:149
↓ 4 callers
Function
FlowFormat
FlowFormat specifies the flow format to be used when shelling to 'ovs-ofctl'.
ovs/client.go:301
↓ 4 callers
Method
Interface
Interface sets configuration for an interface using the values from an InterfaceOptions struct.
ovs/vswitch.go:221
↓ 4 callers
Function
MarshalBinary
MarshalBinary is a generic binary marshaling function for the type defined in struct.go
ovsnl/internal/ovsh/binary.go:29
↓ 4 callers
Function
ModTransportDestinationPort
ModTransportDestinationPort modifies the destination port of a packet.
ovs/action.go:329
↓ 4 callers
Function
Sudo
Sudo specifies that "sudo" should be prefixed to all OVS commands.
ovs/client.go:345
↓ 4 callers
Function
TestConn
TestConn creates a Conn backed by a server that calls a TestFunc. Notifications can be pushed to the client using the channel. Invoke the returned clo
ovsdb/internal/jsonrpc/testconn.go:35
↓ 4 callers
Function
TransportSourcePort
TransportSourcePort matches packets with a TCP source port matching port.
ovs/match.go:885
↓ 4 callers
Function
UnmarshalBinary
UnmarshalBinary is a generic binary unmarshaling function for the type defined in struct.go
ovsnl/internal/ovsh/binary.go:36
↓ 4 callers
Function
familyMessages
(families []string)
ovsnl/client_linux_test.go:91
↓ 4 callers
Function
hwAddrGoString
hwAddrGoString converts a net.HardwareAddr into its Go syntax representation.
ovs/codegen.go:25
↓ 4 callers
Function
isNetworkCloseError
(err error)
ovsdb/internal/jsonrpc/testconn.go:151
↓ 4 callers
Function
marshalMatches
marshalMatches marshals all provided Matches to their text form.
ovs/flow.go:487
↓ 4 callers
Function
matchEthernetHardwareAddress
matchEthernetHardwareAddress attempts to create a Match using the specified key and input hardware address, which must be a 6-octet Ethernet hardware
ovs/match.go:1590
↓ 4 callers
Function
matchIPv4AddressOrCIDR
matchIPv4AddressOrCIDR attempts to create a Match using the specified key and input string, which could be interpreted as an IPv4 address or IPv4 CIDR
ovs/match.go:1540
↓ 4 callers
Function
mustMarshalAttributes
(attrs []netlink.Attribute)
ovsnl/client_linux_test.go:133
↓ 4 callers
Function
ovsFamilies
ovsFamilies creates a genltest.Func which intercepts "list family" requests and returns all the OVS families. Other requests are passed through to fn
ovsnl/client_linux_test.go:117
↓ 4 callers
Function
paddedHexUint64
paddedHexUint64 formats and displays a uint64 as a hexadecimal string prefixed with 0x and zero-padded up to 16 characters in length.
ovs/flow.go:513
↓ 4 callers
Function
panicf
(format string, a ...interface{})
ovsdb/client_test.go:330
↓ 4 callers
Function
panicf
(format string, a ...interface{})
ovsdb/internal/jsonrpc/testconn.go:147
↓ 4 callers
Method
slice
slice creates a string slice containing any non-zero option values from the struct in the format expected by Open vSwitch.
ovs/vswitch.go:209
↓ 3 callers
Method
AddFlow
AddFlow adds a Flow to a bridge attached to Open vSwitch.
ovs/openflow.go:43
↓ 3 callers
Method
BitwiseMatch
BitwiseMatch returns an array of BitRanges that represent the range of integers in the PortRange.
ovs/portrange.go:43
↓ 3 callers
Function
ConnectionTrackingZone
ConnectionTrackingZone is a mechanism to define separate connection tracking contexts.
ovs/match.go:1276
↓ 3 callers
Method
DelFlows
DelFlows removes flows that match MatchFlow from a bridge attached to Open vSwitch. If flow is nil, all flows will be deleted from the specified brid
ovs/openflow.go:188
↓ 3 callers
Method
Error
()
ovsdb/result.go:83
↓ 3 callers
Function
InPort
InPort outputs the packet on the port from which it was received.
ovs/action.go:156
↓ 3 callers
Function
Metadata
Metadata returns a Match that matches the given Metadata exactly.
ovs/match.go:1355
↓ 3 callers
Function
New
New creates a new Client with zero or more OptionFunc configurations applied.
ovs/client.go:212
↓ 3 callers
Function
NewConn
NewConn creates a new Conn with the input io.ReadWriteCloser. If a logger is specified, it is used for debug logs.
ovsdb/internal/jsonrpc/conn.go:59
↓ 3 callers
Function
Protocols
Protocols specifies one or more OpenFlow protocol versions to be used when shelling to 'ovs-ofctl'.
ovs/client.go:319
↓ 3 callers
Function
ResubmitPort
ResubmitPort resubmits a packet into the current table with its context modified to look like it originated from the specified openflow port ID.
ovs/action.go:543
↓ 3 callers
Function
UDPDestinationPort
UDPDestinationPort matches packets with a UDP destination port matching port.
ovs/match.go:930
↓ 3 callers
Function
UDPSourcePort
UDPSourcePort matches packets with a UDP source port matching port.
ovs/match.go:921
↓ 3 callers
Function
flowErrorEqual
flowErrorEqual determines if two possible FlowErrors are equal.
ovs/flow_test.go:1307
↓ 3 callers
Method
len
len returns the current length of the stack.
ovs/actionparser.go:132
↓ 3 callers
Function
parseHexUint64
parseHexUint64 parses a uint64 value from a hexadecimal string.
ovs/matchparser.go:576
↓ 3 callers
Function
parseMatch
parseMatch creates a Match function from the input string.
ovs/matchparser.go:28
↓ 3 callers
Method
rpc
rpc performs a single RPC request, and checks the response for errors.
ovsdb/client.go:203
↓ 3 callers
Function
strPtr
(s string)
ovsdb/internal/jsonrpc/conn_test.go:201
↓ 2 callers
Function
ARPOperation
ARPOperation matches packets with the specified ARP operation matching oper.
ovs/match.go:771
↓ 2 callers
Method
AddBridge
AddBridge attaches a bridge to Open vSwitch. The bridge may or may not already exist.
ovs/vswitch.go:47
↓ 2 callers
Method
Bridge
Bridge gets configuration for a bridge and returns the values through a BridgeOptions struct.
ovs/vswitch.go:164
↓ 2 callers
Method
Commit
Commit finalizes an AddFlowTransaction, returning any errors that may have occurred while adding flows. Commit must be called at the end of a success
ovs/openflow.go:131
↓ 2 callers
Function
Debug
Debug returns an OptionFunc which enables debugging output for the Client type.
ovs/client.go:267
↓ 2 callers
Method
DelCTLimits
DelCTLimits is the method used to remove a limit to a zone belonging to a datapath of a switch
ovs/datapath.go:86
↓ 2 callers
Method
DeletePort
DeletePort detaches a port from a bridge on Open vSwitch. The port may or may not already exist.
ovs/vswitch.go:68
↓ 2 callers
Function
Dial
Dial dials a connection to an OVSDB server and returns a Client.
ovsdb/client.go:97
↓ 2 callers
Method
DumpFlows
DumpFlows retrieves statistics about all flows for the specified bridge. If a table has no active flows and has not been used for a lookup or matched
ovs/openflow.go:312
↓ 2 callers
Method
DumpFlowsWithFlowArgs
DumpFlowsWithFlowArgs retrieves statistics about all flows for the specified bridge, filtering on the specified flow(s), if provided. If a table has n
ovs/openflow.go:275
↓ 2 callers
Method
DumpPort
DumpPort retrieves statistics about the specified port attached to the specified bridge.
ovs/openflow.go:221
↓ 2 callers
Method
DumpTables
DumpTables retrieves statistics about all tables for the specified bridge. If a table has no active flows and has not been used for a lookup or matche
ovs/openflow.go:242
↓ 2 callers
Method
GetCTLimits
GetCTLimits is the method used to querying conntrack limits for a datapath on a switch
ovs/datapath.go:75
↓ 2 callers
Method
GoString
GoString implements Match.
ovs/match.go:365
↓ 2 callers
Function
InPortMatch
InPortMatch matches packets ingressing from a specified OVS port
ovs/match.go:676
↓ 2 callers
Method
MaskedPorts
()
ovs/match.go:1049
↓ 2 callers
Function
New
New wraps an existing connection to an OVSDB server and returns a Client.
ovsdb/client.go:107
↓ 2 callers
Method
Parse
Parse parses a slice of Actions using the wrapped io.Reader. The raw action strings are also returned for inspection if needed.
ovs/actionparser.go:58
↓ 2 callers
Method
SetCTLimits
SetCTLimits is the method used to setup a limit for a zone belonging to a datapath of a switch
ovs/datapath.go:83
↓ 2 callers
Function
SetTunnel
SetTunnel sets the tunnel id, e.g. VNI if vxlan is the tunnel protocol.
ovs/action.go:652
↓ 2 callers
Function
TestNetConn
TestNetConn creates a net.Conn backed by a server that calls a TestFunc. Notifications can be pushed to the client using the channel. Invoke the retur
ovsdb/internal/jsonrpc/testconn.go:51
↓ 2 callers
Method
Transact
TODO(mdlayher): try to make concrete types for row values. Transact creates and executes a transaction on the specified database. Each operation is ap
ovsdb/rpc.go:57
↓ 2 callers
Function
TransportDestinationPortRange
TransportDestinationPortRange represent a port range intended for a transport protocol destination port.
ovs/match.go:1060
↓ 2 callers
Function
TransportSourcePortRange
TransportSourcePortRange represent a port range intended for a transport protocol source port.
ovs/match.go:1069
↓ 2 callers
Function
UDPDestinationPortRange
UDPDestinationPortRange represent a port range intended for a UDP protocol destination port.
ovs/match.go:973
↓ 2 callers
Function
UDPSourcePortRange
UDPSourcePortRange represent a port range intended for a UDP protocol source port.
ovs/match.go:982
↓ 2 callers
Method
UnmarshalText
UnmarshalText unmarshals the initial/final data path flows from ofproto/trace output
ovs/proto_trace.go:81
↓ 2 callers
Method
UnmarshalText
UnmarshalText unmarshals ProtoTrace text into a ProtoTrace type. Not implemented yet.
ovs/proto_trace.go:147
↓ 2 callers
Function
ctSetLimitsArgsToString
ctSetLimitsArgsToString helps formating and sanatizing an input It takes a map and output a string like this: - "zone=2,limit=10000" or "limit=10000,
ovs/datapath.go:260
↓ 2 callers
Function
dialOVSDB
(t *testing.T)
ovsdb/client_integration_test.go:120
↓ 2 callers
Method
doCallback
doCallback performs a callback for an RPC response and clears the callback on completion.
ovsdb/client.go:397
↓ 2 callers
Method
dumpPorts
dumpPorts calls 'ovs-ofctl dump-ports' with the specified arguments and parses the output into zero or more PortStats structs.
ovs/openflow.go:350
↓ 2 callers
Function
getRange
(end uint16, bitLength uint)
ovs/portrange.go:119
↓ 2 callers
Function
ipv4GoString
ipv4GoString converts a net.IP (IPv4 only) into its Go syntax representation.
ovs/codegen.go:40
↓ 2 callers
Function
isClosedNetwork
isClosedNetwork checks for errors caused by a closed network connection.
ovsdb/client.go:422
↓ 2 callers
Function
marshalFunctions
marshalFunctions marshals a slice of functions to their text form.
ovs/flow.go:497
↓ 2 callers
Function
matchIPv6AddressOrCIDR
matchIPv6AddressOrCIDR attempts to create a Match using the specified key and input string, which could be interpreted as an IPv6 address or IPv6 CIDR
ovs/match.go:1565
↓ 2 callers
Function
mustMarshalJSON
(t *testing.T, v interface{})
ovsdb/internal/jsonrpc/conn_test.go:190
↓ 2 callers
Function
newActionParser
newActionParser creates a new actionParser which wraps the input io.Reader.
ovs/actionparser.go:36
↓ 2 callers
Function
panicf
(format string, a ...interface{})
ovsdb/internal/jsonrpc/conn_test.go:205
↓ 2 callers
Function
parseAction
TODO(mdlayher): replace parsing regex with arguments parsers parseAction creates an Action function from the input string.
ovs/actionparser.go:175
↓ 2 callers
Function
parseClampInt
parseClampInt calls strconv.Atoi on s, and then ensures that s is less than or equal to the integer specified by upper.
ovs/matchparser.go:120
↓ 2 callers
Function
parseEach
parseEach parses ovs-ofctl output from the input buffer, ensuring it has the specified prefix, and invoking the input function on each two lines scann
ovs/openflow.go:444
↓ 2 callers
Function
parseHexUint32
parseHexUint32 parses a uint32 value from a hexadecimal string.
ovs/matchparser.go:567
↓ 2 callers
Method
push
push pushes zero or more encoding.TextMarshalers on to the transaction (typically a Flow or MatchFlow).
ovs/openflow.go:112
↓ 2 callers
Function
validIPv6Label
validIPv6Label indicates if an IPv6 label is out of range. It should only use the first 20 bits of the 32 bit field.
ovs/action.go:740
↓ 2 callers
Function
validVLANVID
validVLANVID indicates if a VLAN VID falls within the valid range for a VLAN VID.
ovs/action.go:746
↓ 1 callers
Method
AddDataPath
AddDataPath is the method used to add a datapath to the switch
ovs/datapath.go:65
↓ 1 callers
Method
AddPort
AddPort attaches a port to a bridge on Open vSwitch. The port may or may not already exist.
ovs/vswitch.go:54
↓ 1 callers
Function
All
All outputs the packet on all switch ports except the port on which it was received.
ovs/action.go:133
↓ 1 callers
Function
Debug
Debug enables debug logging for a Client.
ovsdb/client.go:72
↓ 1 callers
Method
DelDataPath
DelDataPath is the method used to remove a datapath from the switch
ovs/datapath.go:67
↓ 1 callers
Method
Delete
Delete pushes zero or more MatchFlows on to the transaction, to be deleted by Open vSwitch. If any of the flows are invalid, Delete becomes a no-op a
ovs/openflow.go:97
↓ 1 callers
Method
DeleteBridge
DeleteBridge detaches a bridge from Open vSwitch. The bridge may or may not already exist.
ovs/vswitch.go:61
↓ 1 callers
Method
Discard
Discard discards the contents of an AddFlowTransaction, returning an error wrapping the input error. Discard should be called if any operations fail
ovs/openflow.go:143
↓ 1 callers
Function
EchoInterval
EchoInterval specifies an interval at which the Client will send echo RPCs to an OVSDB server to keep the connection alive. Note that the OVSDB serve
ovsdb/client.go:89
↓ 1 callers
Function
Equal
TODO(mdlayher): more helper functions? Cond as an interface? Equal creates a Cond that ensures a column's value equals the specified value.
ovsdb/transact.go:29
↓ 1 callers
Function
Exec
Exec returns an OptionFunc which sets an ExecFunc for use with a Client. This function should typically only be used in tests.
ovs/client.go:275
↓ 1 callers
Method
GetController
GetController gets the controller address for this bridge.
ovs/vswitch.go:141
↓ 1 callers
Method
GetDataPaths
GetDataPaths returns the output of the command 'ovs-dpctl dump-dps'
ovs/datapath.go:124
← previous
next →
101–200 of 571, ranked by callers