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
↓ 1 callers
Method
GetFailMode
GetFailMode gets the FailMode for the specified bridge.
ovs/vswitch.go:118
↓ 1 callers
Function
IsPortNotExist
IsPortNotExist checks if err is of type Error and is caused by asking OVS for information regarding a non-existent port.
ovs/ovs.go:81
↓ 1 callers
Method
ListBridges
ListBridges lists the bridges in Open vSwitch.
ovs/vswitch.go:90
↓ 1 callers
Method
ListPorts
ListPorts lists the ports in Open vSwitch.
ovs/vswitch.go:74
↓ 1 callers
Method
MarshalText
MarshalText implements Action.
ovs/action.go:224
↓ 1 callers
Method
MatchFlow
MatchFlow converts Flow into MatchFlow.
ovs/flow.go:466
↓ 1 callers
Function
MetadataWithMask
MetadataWithMask returns a Match with specified Metadata and mask.
ovs/match.go:1363
↓ 1 callers
Method
ModPort
ModPort modifies the specified characteristics for the specified port.
ovs/openflow.go:210
↓ 1 callers
Function
Multipath
Multipath returns a MultipathAction instance. Hashes fields using `basis` as a universal hash parameter, then applies multipath link selection `algor
ovs/action.go:462
↓ 1 callers
Function
NetworkECN
NetworkECN creates a new networkECN
ovs/match.go:298
↓ 1 callers
Function
NetworkTOS
NetworkTOS returns a new networkTOS type
ovs/match.go:322
↓ 1 callers
Function
NetworkTTL
NetworkTTL returns a new networkTTL
ovs/match.go:418
↓ 1 callers
Function
New
New creates a new Linux Open vSwitch generic netlink client. If no OvS generic netlink families are available on this system, an error will be return
ovsnl/client.go:38
↓ 1 callers
Function
Pipe
Pipe returns an OptionFunc which sets a PipeFunc for use with a Client. This function should typically only be used in tests.
ovs/client.go:283
↓ 1 callers
Method
PortToBridge
PortToBridge attempts to determine which bridge a port is attached to. If port does not exist, an error will be returned, which can be checked using I
ovs/vswitch.go:108
↓ 1 callers
Method
Read
(b []byte)
ovsdb/internal/jsonrpc/conn.go:136
↓ 1 callers
Method
SetController
SetController sets the controller for this bridge so that ovs-ofctl can use this address to communicate.
ovs/vswitch.go:135
↓ 1 callers
Method
SetFailMode
SetFailMode sets the specified FailMode for the specified bridge.
ovs/vswitch.go:128
↓ 1 callers
Function
SetSSLParam
SetSSLParam configures SSL authentication using a private key, certificate, and CA certificate for use with ovs-ofctl.
ovs/client.go:329
↓ 1 callers
Function
SetTCPParam
SetTCPParam configures the OVSDB connection using a TCP format ip:port for use with all ovs-vsctl commands.
ovs/client.go:338
↓ 1 callers
Function
TunnelFlags
TunnelFlags returns a new tunnelFlags
ovs/match.go:394
↓ 1 callers
Function
TunnelGBP
TunnelGBP returns a new tunnelGBP
ovs/match.go:346
↓ 1 callers
Function
TunnelGbpFlags
TunnelGbpFlags returns a new tunnelFlags
ovs/match.go:370
↓ 1 callers
Function
TunnelTOS
TunnelTOS returns a new tunnelTOS
ovs/match.go:474
↓ 1 callers
Function
TunnelTTL
TunnelTTL returns a new tunnelTTL
ovs/match.go:442
↓ 1 callers
Method
UnmarshalText
UnmarshalText unmarshals a FlowStats from textual form.
ovs/flowstats.go:38
↓ 1 callers
Method
Version
Version is the method used to get the version of ovs-dpctl
ovs/datapath.go:55
↓ 1 callers
Method
Write
(p []byte)
ovs/client.go:354
↓ 1 callers
Method
addCallback
addCallback registers a callback for an RPC response for the specified ID.
ovsdb/client.go:383
↓ 1 callers
Method
dumpAggregate
dumpAggregate calls 'ovs-ofctl dump-aggregate' with the specified arguments and parses the output into zero or more FlowStat structs.
ovs/openflow.go:384
↓ 1 callers
Method
echoLoop
echoLoop starts a loop that sends echo RPCs when requested via channel.
ovsdb/client.go:342
↓ 1 callers
Method
echoTicker
echoTicker starts a loop that triggers echo RPCs via channel at a fixed time interval.
ovsdb/client.go:315
↓ 1 callers
Method
exec
exec executes 'ovs-appctl' + args passed in
ovs/app.go:66
↓ 1 callers
Method
exec
exec executes an ExecFunc using the values from cmd and args. The ExecFunc may shell out to an appropriate binary, or may be swapped for testing.
ovs/client.go:76
↓ 1 callers
Function
getMask
(bitLength uint)
ovs/portrange.go:114
↓ 1 callers
Function
getZoneString
getZoneString takes the zones as []uint64 to return a formated string usable in different ovs-dpctl commands Example a slice: var zones = []uint64{2,
ovs/datapath.go:302
↓ 1 callers
Method
init
init initializes the generic netlink family service of Client.
ovsnl/client.go:73
↓ 1 callers
Method
initFamily
initFamily initializes a single generic netlink family service.
ovsnl/client.go:97
↓ 1 callers
Method
listen
listen starts an RPC receive loop that can return RPC results to clients via a callback.
ovsdb/client.go:270
↓ 1 callers
Method
marshalFunctions
marshalFunctions marshals a slice of functions to their text form.
ovs/matchflow.go:150
↓ 1 callers
Method
marshalMatches
marshalMatches marshals all Matches in a MatchFlow to their text form.
ovs/matchflow.go:140
↓ 1 callers
Function
matchFlowErrorEqual
matchFlowErrorEqual determines if two possible MatchFlowErrors are equal.
ovs/matchflow_test.go:272
↓ 1 callers
Function
matchTransportPort
matchTransportPort is the common implementation for Transport{Source,Destination}Port.
ovs/match.go:1601
↓ 1 callers
Function
matchUDPPort
matchUDPPort is the common implementation for Udp{Source,Destination}Port.
ovs/match.go:1612
↓ 1 callers
Function
mustMarshalDatapath
(t *testing.T, dp Datapath)
ovsnl/datapath_linux_test.go:176
↓ 1 callers
Function
mustVerifyFlowBundle
(t *testing.T, stdin io.Reader, flows []*Flow, matchFlows []*MatchFlow)
ovs/openflow_test.go:1357
↓ 1 callers
Method
parseAction
parseAction parses a single Action and its raw text from the wrapped io.Reader.
ovs/actionparser.go:82
↓ 1 callers
Function
parseArpOp
parseArpOp parses a ArpOp Match from value.
ovs/matchparser.go:442
↓ 1 callers
Function
parseCTMark
parseCTMark parses a CTMark Match from value.
ovs/matchparser.go:459
↓ 1 callers
Function
parseCTState
parseCTState parses a series of connection tracking values into a Match.
ovs/matchparser.go:249
↓ 1 callers
Function
parseDPMegaflowStats
parseDPMegaflowStats converts a byte slice into DatapathMegaflowStats.
ovsnl/datapath.go:190
↓ 1 callers
Function
parseDPStats
parseDPStats converts a byte slice into DatapathStats.
ovsnl/datapath.go:174
↓ 1 callers
Function
parseDataLinkVLAN
parseDataLinkVLAN parses a DataLinkVLAN Match from value.
ovs/matchparser.go:305
↓ 1 callers
Function
parseDataLinkVLANPCP
parseDataLinkVLANPCP parses a DataLinkVLANPCP Match from value.
ovs/matchparser.go:324
↓ 1 callers
Function
parseDatapaths
parseDatapaths parses a slice of Datapaths from a slice of generic netlink messages.
ovsnl/datapath.go:127
↓ 1 callers
Function
parseEachLine
parseEachLine parses ovs-ofctl output from the input buffer, ensuring it has the specified prefix, and invoking the input function on each line scanne
ovs/openflow.go:415
↓ 1 callers
Function
parseHeader
parseHeader converts a byte slice into ovsh.Header.
ovsnl/datapath.go:204
↓ 1 callers
Function
parseIPv6Label
parseIPv6Label parses a IPv6Label Match from value.
ovs/matchparser.go:409
↓ 1 callers
Function
parseMACMatch
parseMACMatch parses a MAC address Match value from the input key and value.
ovs/matchparser.go:228
↓ 1 callers
Function
parseMetadata
parseMetadata parses a Metadata Match from value.
ovs/matchparser.go:492
↓ 1 callers
Function
parsePort
parsePort parses a port or port/mask Match value from the input key and value, with a maximum possible value of upper.
ovs/matchparser.go:180
↓ 1 callers
Function
parseTCPFlags
parseTCPFlags parses a series of TCP flags into a Match. Open vSwitch's representation of These TCP flags are outlined in the ovs-field(7) man page,
ovs/matchparser.go:275
↓ 1 callers
Function
parseTunID
parseTunID parses a tunID Match from value.
ovs/matchparser.go:525
↓ 1 callers
Function
parseVLANTCI
parseVLANTCI parses a VLANTCI Match from value.
ovs/matchparser.go:343
↓ 1 callers
Function
parseVLANTCI1
parseVLANTCI1 parses a VLANTCI1 Match from value.
ovs/matchparser.go:376
↓ 1 callers
Method
pipe
pipe executes a PipeFunc using 'ovs-ofctl'.
ovs/openflow.go:506
↓ 1 callers
Method
pop
pop removes an element from the stack.
ovs/actionparser.go:142
↓ 1 callers
Method
push
push adds an element to the stack.
ovs/actionparser.go:137
↓ 1 callers
Method
read
read reads a single rune from the wrapped io.Reader. It returns eof if no more runes are present.
ovs/actionparser.go:48
↓ 1 callers
Method
requestID
requestID returns the next available request ID for an RPC.
ovsdb/client.go:158
↓ 1 callers
Function
rpcResult
rpcResult handles any errors from an rpcResponse and unmarshals results into a result.
ovsdb/result.go:37
↓ 1 callers
Function
shellPipe
shellPipe is a PipeFunc which shells out to the binary cmd using the arguments args, and writing to the command's stdin using stdin.
ovs/client.go:113
↓ 1 callers
Function
testClientDatabases
(ctx context.Context, t *testing.T, c *ovsdb.Client)
ovsdb/client_integration_test.go:85
↓ 1 callers
Function
testClientDatapath
(t *testing.T, c *ovsnl.Client, datapath string)
ovsnl/client_linux_integration_test.go:56
↓ 1 callers
Function
testClientEcho
(ctx context.Context, t *testing.T, c *ovsdb.Client)
ovsdb/client_integration_test.go:114
↓ 1 callers
Function
validARPOP
validARPOP indicates if an ARP OP is out of range. It should be in the range 1-4.
ovs/action.go:734
↓ 1 callers
Function
validVLANPCP
validVLANVPCP indicates if a VLAN VID falls within the valid range for a VLAN VID.
ovs/action.go:752
Method
AddDataPath
AddDataPath create a Datapath with the command 'ovs-dpctl add-dp <DP>' It takes one argument, the required DataPath Name and returns an error if it fa
ovs/datapath.go:136
Method
Bridge
Bridge sets configuration for a bridge using the values from a BridgeOptions struct.
ovs/vswitch.go:191
Method
Close
()
ovsdb/internal/jsonrpc/conn.go:156
Method
DelCTLimits
DelCTLimits deletes limits setup for zones. It takes the Datapath name and zones to delete the limits. sudo ovs-dpctl ct-del-limits system@ovs-system
ovs/datapath.go:234
Method
DelDataPath
DelDataPath create a Datapath with the command 'ovs-dpctl del-dp <DP>' It takes one argument, the required DataPath Name and returns an error if it fa
ovs/datapath.go:144
Method
DumpAggregate
DumpAggregate retrieves statistics about the specified flow attached to the specified bridge.
ovs/openflow.go:318
Method
Error
Error returns the string representation of a FlowError.
ovs/flow.go:100
Method
Error
Error returns the string representation of a pipeError.
ovs/client.go:197
Method
Error
Error returns the string representation of a MatchFlowError.
ovs/matchflow.go:68
Function
ExampleClient_listDatabases
This example demonstrates basic usage of a Client. The Client connects to ovsdb-server and requests a list of all databases known to the server.
ovsdb/example_test.go:28
Method
Exec
(args ...string)
ovs/datapath_test.go:33
Method
Exec
Exec executes 'ovs-dpctl' + args passed in argument
ovs/datapath.go:332
Method
GetCTLimits
GetCTLimits returns the conntrack limits for a given datapath equivalent to running: 'sudo ovs-dpctl ct-get-limits <datapath_name> zone=<#1>,<#2>,...
ovs/datapath.go:152
Method
GetDataPath
GetDataPath is the method that returns all DataPaths setup for an ovs switch
ovs/datapath.go:58
Method
GoString
GoString implements Match.
ovs/match.go:126
Method
GoString
GoString implements Match.
ovs/match.go:185
Method
GoString
GoString implements Match.
ovs/match.go:221
Method
GoString
GoString implements Match.
ovs/match.go:253
Method
GoString
GoString implements Match.
ovs/match.go:289
Method
GoString
GoString implements Match.
ovs/match.go:317
Method
GoString
GoString implements Match.
ovs/match.go:341
Method
GoString
GoString implements Match.
ovs/match.go:389
Method
GoString
GoString implements Match.
ovs/match.go:413
← previous
next →
201–300 of 571, ranked by callers