-
Notifications
You must be signed in to change notification settings - Fork 442
/
const.go
208 lines (165 loc) · 7.8 KB
/
const.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
package util
const (
CniTypeName = "kube-ovn"
ControllerName = "kube-ovn-controller"
AllocatedAnnotation = "ovn.kubernetes.io/allocated"
RoutedAnnotation = "ovn.kubernetes.io/routed"
MacAddressAnnotation = "ovn.kubernetes.io/mac_address"
IpAddressAnnotation = "ovn.kubernetes.io/ip_address"
CidrAnnotation = "ovn.kubernetes.io/cidr"
GatewayAnnotation = "ovn.kubernetes.io/gateway"
IpPoolAnnotation = "ovn.kubernetes.io/ip_pool"
BgpAnnotation = "ovn.kubernetes.io/bgp"
SnatAnnotation = "ovn.kubernetes.io/snat"
EipAnnotation = "ovn.kubernetes.io/eip"
EipNameAnnotation = "ovn.kubernetes.io/eip_name"
FipNameAnnotation = "ovn.kubernetes.io/fip_name"
FipEnableAnnotation = "ovn.kubernetes.io/enable_fip"
FipFinalizer = "ovn.kubernetes.io/fip"
VipAnnotation = "ovn.kubernetes.io/vip"
ChassisAnnotation = "ovn.kubernetes.io/chassis"
VpcNatGatewayAnnotation = "ovn.kubernetes.io/vpc_nat_gw"
VpcNatGatewayInitAnnotation = "ovn.kubernetes.io/vpc_nat_gw_init"
VpcEipsAnnotation = "ovn.kubernetes.io/vpc_eips"
VpcFloatingIpMd5Annotation = "ovn.kubernetes.io/vpc_floating_ips"
VpcDnatMd5Annotation = "ovn.kubernetes.io/vpc_dnat_md5"
VpcSnatMd5Annotation = "ovn.kubernetes.io/vpc_snat_md5"
VpcCIDRsAnnotation = "ovn.kubernetes.io/vpc_cidrs"
VpcLbAnnotation = "ovn.kubernetes.io/vpc_lb"
VpcExternalLabel = "ovn.kubernetes.io/vpc_external"
VpcEipLabel = "ovn.kubernetes.io/vpc_eip"
VpcEipAnnotation = "ovn.kubernetes.io/vpc_eip"
VpcDnatEPortLabel = "ovn.kubernetes.io/vpc_dnat_eport"
VpcNatLabel = "ovn.kubernetes.io/vpc_nat"
VpcNatAnnotation = "ovn.kubernetes.io/vpc_nat"
SwitchLBRuleVipsAnnotation = "ovn.kubernetes.io/switch_lb_vip"
LogicalRouterAnnotation = "ovn.kubernetes.io/logical_router"
VpcAnnotation = "ovn.kubernetes.io/vpc"
Layer2ForwardAnnotationTemplate = "%s.kubernetes.io/layer2_forward"
PortSecurityAnnotationTemplate = "%s.kubernetes.io/port_security"
PortVipAnnotationTemplate = "%s.kubernetes.io/port_vips"
PortSecurityAnnotation = "ovn.kubernetes.io/port_security"
NorthGatewayAnnotation = "ovn.kubernetes.io/north_gateway"
AllocatedAnnotationSuffix = ".kubernetes.io/allocated"
AllocatedAnnotationTemplate = "%s.kubernetes.io/allocated"
RoutedAnnotationTemplate = "%s.kubernetes.io/routed"
MacAddressAnnotationTemplate = "%s.kubernetes.io/mac_address"
IpAddressAnnotationTemplate = "%s.kubernetes.io/ip_address"
CidrAnnotationTemplate = "%s.kubernetes.io/cidr"
GatewayAnnotationTemplate = "%s.kubernetes.io/gateway"
IpPoolAnnotationTemplate = "%s.kubernetes.io/ip_pool"
LogicalSwitchAnnotationTemplate = "%s.kubernetes.io/logical_switch"
LogicalRouterAnnotationTemplate = "%s.kubernetes.io/logical_router"
VlanIdAnnotationTemplate = "%s.kubernetes.io/vlan_id"
IngressRateAnnotationTemplate = "%s.kubernetes.io/ingress_rate"
EgressRateAnnotationTemplate = "%s.kubernetes.io/egress_rate"
SecurityGroupAnnotationTemplate = "%s.kubernetes.io/security_groups"
LiveMigrationAnnotationTemplate = "%s.kubernetes.io/allow_live_migration"
DefaultRouteAnnotationTemplate = "%s.kubernetes.io/default_route"
ProviderNetworkTemplate = "%s.kubernetes.io/provider_network"
ProviderNetworkErrMessageTemplate = "%s.provider-network.kubernetes.io/err_mesg"
ProviderNetworkReadyTemplate = "%s.provider-network.kubernetes.io/ready"
ProviderNetworkExcludeTemplate = "%s.provider-network.kubernetes.io/exclude"
ProviderNetworkInterfaceTemplate = "%s.provider-network.kubernetes.io/interface"
ProviderNetworkMtuTemplate = "%s.provider-network.kubernetes.io/mtu"
MirrorControlAnnotationTemplate = "%s.kubernetes.io/mirror"
PodNicAnnotationTemplate = "%s.kubernetes.io/pod_nic_type"
VmTemplate = "%s.kubernetes.io/virtualmachine"
ExcludeIpsAnnotation = "ovn.kubernetes.io/exclude_ips"
IngressRateAnnotation = "ovn.kubernetes.io/ingress_rate"
EgressRateAnnotation = "ovn.kubernetes.io/egress_rate"
PortNameAnnotation = "ovn.kubernetes.io/port_name"
LogicalSwitchAnnotation = "ovn.kubernetes.io/logical_switch"
TunnelInterfaceAnnotation = "ovn.kubernetes.io/tunnel_interface"
OvsDpTypeLabel = "ovn.kubernetes.io/ovs_dp_type"
VpcNameLabel = "ovn.kubernetes.io/vpc"
SubnetNameLabel = "ovn.kubernetes.io/subnet"
ICGatewayLabel = "ovn.kubernetes.io/ic-gw"
ExGatewayLabel = "ovn.kubernetes.io/external-gw"
VpcNatGatewayLabel = "ovn.kubernetes.io/vpc-nat-gw"
IpReservedLabel = "ovn.kubernetes.io/ip_reserved"
VpcNatGatewayNameLabel = "ovn.kubernetes.io/vpc-nat-gw-name"
VpcLbLabel = "ovn.kubernetes.io/vpc_lb"
VpcDnsNameLabel = "ovn.kubernetes.io/vpc-dns"
NetworkPolicyLogAnnotation = "ovn.kubernetes.io/enable_log"
ProtocolTCP = "tcp"
ProtocolUDP = "udp"
ProtocolSCTP = "sctp"
NetworkTypeVlan = "vlan"
NetworkTypeGeneve = "geneve"
NetworkTypeVxlan = "vxlan"
NetworkTypeStt = "stt"
NodeNic = "ovn0"
NodeAllowPriority = "3000"
SecurityGroupHighestPriority = "2300"
SecurityGroupBasePriority = "2005"
SecurityGroupAllowPriority = "2004"
SecurityGroupDropPriority = "2003"
IngressAllowPriority = "2001"
IngressDefaultDrop = "2000"
EgressAllowPriority = "2001"
EgressDefaultDrop = "2000"
SubnetAllowPriority = "1001"
DefaultDropPriority = "1000"
DefaultMTU = 1500
GeneveHeaderLength = 100
VxlanHeaderLength = 50
SttHeaderLength = 72
TcpIpHeaderLength = 40
OvnProvider = "ovn"
AttachmentNetworkAnnotation = "k8s.v1.cni.cncf.io/networks"
DefaultNetworkAnnotation = "v1.multus-cni.io/default-network"
SRIOVResourceName = "mellanox.com/cx5_sriov_switchdev"
InterconnectionConfig = "ovn-ic-config"
ExternalGatewayConfig = "ovn-external-gw-config"
InterconnectionSwitch = "ts"
ExternalGatewaySwitch = "ovn-external"
VpcNatGatewayConfig = "ovn-vpc-nat-gw-config"
VpcLbNetworkAttachment = "ovn-vpc-lb"
VpcDnsConfig = "vpc-dns-config"
VpcDnsDepTemplate = "vpc-dns-dep"
DefaultVpc = "ovn-cluster"
DefaultSubnet = "ovn-default"
EcmpRouteType = "ecmp"
NormalRouteType = "normal"
LrpUsingEip = "lrp"
FipUsingEip = "fip"
SnatUsingEip = "snat"
DnatUsingEip = "dnat"
OvnFip = "ovn"
IptablesFip = "iptables"
U2OSubnetPolicyPriority = 29400
GatewayRouterPolicyPriority = 29000
NodeRouterPolicyPriority = 30000
SubnetRouterPolicyPriority = 31000
OvnICPolicyPriority = 29500
OffloadType = "offload-port"
InternalType = "internal-port"
DpdkType = "dpdk-port"
HostnameEnv = "KUBE_NODE_NAME"
ChasRetryTime = 5
ChasRetryIntev = 1
Vm = "VirtualMachine"
VmInstance = "VirtualMachineInstance"
MirrorControlAnnotation = "ovn.kubernetes.io/mirror"
MirrorDefaultName = "m0"
DenyAllSecurityGroup = "kubeovn_deny_all"
NetemQosLatencyAnnotation = "ovn.kubernetes.io/latency"
NetemQosLimitAnnotation = "ovn.kubernetes.io/limit"
NetemQosLossAnnotation = "ovn.kubernetes.io/loss"
NetemQosLatencyAnnotationTemplate = "%s.kubernetes.io/latency"
NetemQosLimitAnnotationTemplate = "%s.kubernetes.io/limit"
NetemQosLossAnnotationTemplate = "%s.kubernetes.io/loss"
POD_IP = "POD_IP"
ContentType = "application/vnd.kubernetes.protobuf"
AcceptContentTypes = "application/vnd.kubernetes.protobuf,application/json"
AttachmentProvider = "ovn.kubernetes.io/attachmentprovider"
LbSvcPodImg = "ovn.kubernetes.io/lb_svc_img"
OvnICKey = "origin"
OvnICConnected = "connected"
OvnICStatic = "static"
MatchV4Src = "ip4.src"
MatchV4Dst = "ip4.dst"
U2OInterconnName = "u2o-interconnection.%s.%s"
U2OExcludeIPAg = "%s.u2o_exclude_ip.%s"
)