-
Notifications
You must be signed in to change notification settings - Fork 438
/
service_monitor.go
33 lines (28 loc) · 1.13 KB
/
service_monitor.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
// Code generated by "libovsdb.modelgen"
// DO NOT EDIT.
package ovnsb
const ServiceMonitorTable = "Service_Monitor"
type (
ServiceMonitorProtocol = string
ServiceMonitorStatus = string
)
var (
ServiceMonitorProtocolTCP ServiceMonitorProtocol = "tcp"
ServiceMonitorProtocolUDP ServiceMonitorProtocol = "udp"
ServiceMonitorStatusOnline ServiceMonitorStatus = "online"
ServiceMonitorStatusOffline ServiceMonitorStatus = "offline"
ServiceMonitorStatusError ServiceMonitorStatus = "error"
)
// ServiceMonitor defines an object in Service_Monitor table
type ServiceMonitor struct {
UUID string `ovsdb:"_uuid"`
ExternalIDs map[string]string `ovsdb:"external_ids"`
IP string `ovsdb:"ip"`
LogicalPort string `ovsdb:"logical_port"`
Options map[string]string `ovsdb:"options"`
Port int `ovsdb:"port"`
Protocol *ServiceMonitorProtocol `ovsdb:"protocol"`
SrcIP string `ovsdb:"src_ip"`
SrcMAC string `ovsdb:"src_mac"`
Status *ServiceMonitorStatus `ovsdb:"status"`
}