forked from MFALHI/netplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathovsconstants.go
More file actions
34 lines (29 loc) · 947 Bytes
/
ovsconstants.go
File metadata and controls
34 lines (29 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package drivers
import "github.com/contiv/netplugin/netmaster/mastercfg"
const (
operCreateBridge oper = iota
operDeleteBridge
operCreatePort
operDeletePort
)
const (
ovsDataBase = "Open_vSwitch"
rootTable = "Open_vSwitch"
bridgeTable = "Bridge"
portTable = "Port"
interfaceTable = "Interface"
vlanBridgeName = "contivVlanBridge"
vxlanBridgeName = "contivVxlanBridge"
portNameFmt = "port%d"
vxlanIfNameFmt = "vxif%s"
getPortName = true
getIntfName = false
// StateOperPath is the path to the operations stored in state.
StateOperPath = mastercfg.StateBasePath + "oper/"
ovsOperPathPrefix = StateOperPath + "ovs-driver/"
ovsOperPath = ovsOperPathPrefix + "%s"
networkOperPathPrefix = StateOperPath + "nets/"
endpointOperPathPrefix = StateOperPath + "eps/"
networkOperPath = networkOperPathPrefix + "%s"
endpointOperPath = endpointOperPathPrefix + "%s"
)