-
Notifications
You must be signed in to change notification settings - Fork 434
/
acl.go
43 lines (38 loc) · 1.39 KB
/
acl.go
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
35
36
37
38
39
40
41
42
43
// Code generated by "libovsdb.modelgen"
// DO NOT EDIT.
package ovnnb
const ACLTable = "ACL"
type (
ACLAction = string
ACLDirection = string
ACLSeverity = string
)
var (
ACLActionAllow ACLAction = "allow"
ACLActionAllowRelated ACLAction = "allow-related"
ACLActionAllowStateless ACLAction = "allow-stateless"
ACLActionDrop ACLAction = "drop"
ACLActionReject ACLAction = "reject"
ACLDirectionFromLport ACLDirection = "from-lport"
ACLDirectionToLport ACLDirection = "to-lport"
ACLSeverityAlert ACLSeverity = "alert"
ACLSeverityWarning ACLSeverity = "warning"
ACLSeverityNotice ACLSeverity = "notice"
ACLSeverityInfo ACLSeverity = "info"
ACLSeverityDebug ACLSeverity = "debug"
)
// ACL defines an object in ACL table
type ACL struct {
UUID string `ovsdb:"_uuid"`
Action ACLAction `ovsdb:"action"`
Direction ACLDirection `ovsdb:"direction"`
ExternalIDs map[string]string `ovsdb:"external_ids"`
Label int `ovsdb:"label"`
Log bool `ovsdb:"log"`
Match string `ovsdb:"match"`
Meter *string `ovsdb:"meter"`
Name *string `ovsdb:"name"`
Options map[string]string `ovsdb:"options"`
Priority int `ovsdb:"priority"`
Severity *ACLSeverity `ovsdb:"severity"`
}