go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/l3/vrf.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: ligato/vpp/l3/vrf.proto 6 7 package vpp_l3 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 // Protocol define IP protocol of VRF table. 24 type VrfTable_Protocol int32 25 26 const ( 27 VrfTable_IPV4 VrfTable_Protocol = 0 28 VrfTable_IPV6 VrfTable_Protocol = 1 29 ) 30 31 // Enum value maps for VrfTable_Protocol. 32 var ( 33 VrfTable_Protocol_name = map[int32]string{ 34 0: "IPV4", 35 1: "IPV6", 36 } 37 VrfTable_Protocol_value = map[string]int32{ 38 "IPV4": 0, 39 "IPV6": 1, 40 } 41 ) 42 43 func (x VrfTable_Protocol) Enum() *VrfTable_Protocol { 44 p := new(VrfTable_Protocol) 45 *p = x 46 return p 47 } 48 49 func (x VrfTable_Protocol) String() string { 50 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 51 } 52 53 func (VrfTable_Protocol) Descriptor() protoreflect.EnumDescriptor { 54 return file_ligato_vpp_l3_vrf_proto_enumTypes[0].Descriptor() 55 } 56 57 func (VrfTable_Protocol) Type() protoreflect.EnumType { 58 return &file_ligato_vpp_l3_vrf_proto_enumTypes[0] 59 } 60 61 func (x VrfTable_Protocol) Number() protoreflect.EnumNumber { 62 return protoreflect.EnumNumber(x) 63 } 64 65 // Deprecated: Use VrfTable_Protocol.Descriptor instead. 66 func (VrfTable_Protocol) EnumDescriptor() ([]byte, []int) { 67 return file_ligato_vpp_l3_vrf_proto_rawDescGZIP(), []int{0, 0} 68 } 69 70 type VrfTable struct { 71 state protoimpl.MessageState 72 sizeCache protoimpl.SizeCache 73 unknownFields protoimpl.UnknownFields 74 75 // ID is mandatory identification for VRF table. 76 // NOTE: do not confuse with fib index (shown by some VPP CLIs), 77 // which is VPP's internal offset in the vector of allocated tables. 78 Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 79 Protocol VrfTable_Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=ligato.vpp.l3.VrfTable_Protocol" json:"protocol,omitempty"` 80 // Label is an optional description for the table. 81 // - maximum allowed length is 63 characters 82 // - included in the output from the VPP CLI command "show ip fib" 83 // - if undefined, then VPP will generate label using the template "<protocol>-VRF:<id>" 84 Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"` 85 FlowHashSettings *VrfTable_FlowHashSettings `protobuf:"bytes,4,opt,name=flow_hash_settings,json=flowHashSettings,proto3" json:"flow_hash_settings,omitempty"` 86 } 87 88 func (x *VrfTable) Reset() { 89 *x = VrfTable{} 90 if protoimpl.UnsafeEnabled { 91 mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[0] 92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 93 ms.StoreMessageInfo(mi) 94 } 95 } 96 97 func (x *VrfTable) String() string { 98 return protoimpl.X.MessageStringOf(x) 99 } 100 101 func (*VrfTable) ProtoMessage() {} 102 103 func (x *VrfTable) ProtoReflect() protoreflect.Message { 104 mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[0] 105 if protoimpl.UnsafeEnabled && x != nil { 106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 107 if ms.LoadMessageInfo() == nil { 108 ms.StoreMessageInfo(mi) 109 } 110 return ms 111 } 112 return mi.MessageOf(x) 113 } 114 115 // Deprecated: Use VrfTable.ProtoReflect.Descriptor instead. 116 func (*VrfTable) Descriptor() ([]byte, []int) { 117 return file_ligato_vpp_l3_vrf_proto_rawDescGZIP(), []int{0} 118 } 119 120 func (x *VrfTable) GetId() uint32 { 121 if x != nil { 122 return x.Id 123 } 124 return 0 125 } 126 127 func (x *VrfTable) GetProtocol() VrfTable_Protocol { 128 if x != nil { 129 return x.Protocol 130 } 131 return VrfTable_IPV4 132 } 133 134 func (x *VrfTable) GetLabel() string { 135 if x != nil { 136 return x.Label 137 } 138 return "" 139 } 140 141 func (x *VrfTable) GetFlowHashSettings() *VrfTable_FlowHashSettings { 142 if x != nil { 143 return x.FlowHashSettings 144 } 145 return nil 146 } 147 148 // FlowHashSettings allows tuning of hash calculation of IP flows in the VRF table. 149 // This affects hash table size as well as the stickiness of flows by load-balancing. 150 // If not defined, default settings that are implicitly enabled are: 151 // - use_src_ip, use_dst_ip, use_src_port, use_dst_port, use_protocol 152 type VrfTable_FlowHashSettings struct { 153 state protoimpl.MessageState 154 sizeCache protoimpl.SizeCache 155 unknownFields protoimpl.UnknownFields 156 157 UseSrcIp bool `protobuf:"varint,1,opt,name=use_src_ip,json=useSrcIp,proto3" json:"use_src_ip,omitempty"` 158 UseDstIp bool `protobuf:"varint,2,opt,name=use_dst_ip,json=useDstIp,proto3" json:"use_dst_ip,omitempty"` 159 UseSrcPort bool `protobuf:"varint,3,opt,name=use_src_port,json=useSrcPort,proto3" json:"use_src_port,omitempty"` 160 UseDstPort bool `protobuf:"varint,4,opt,name=use_dst_port,json=useDstPort,proto3" json:"use_dst_port,omitempty"` 161 UseProtocol bool `protobuf:"varint,5,opt,name=use_protocol,json=useProtocol,proto3" json:"use_protocol,omitempty"` 162 Reverse bool `protobuf:"varint,6,opt,name=reverse,proto3" json:"reverse,omitempty"` 163 Symmetric bool `protobuf:"varint,7,opt,name=symmetric,proto3" json:"symmetric,omitempty"` 164 } 165 166 func (x *VrfTable_FlowHashSettings) Reset() { 167 *x = VrfTable_FlowHashSettings{} 168 if protoimpl.UnsafeEnabled { 169 mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[1] 170 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 171 ms.StoreMessageInfo(mi) 172 } 173 } 174 175 func (x *VrfTable_FlowHashSettings) String() string { 176 return protoimpl.X.MessageStringOf(x) 177 } 178 179 func (*VrfTable_FlowHashSettings) ProtoMessage() {} 180 181 func (x *VrfTable_FlowHashSettings) ProtoReflect() protoreflect.Message { 182 mi := &file_ligato_vpp_l3_vrf_proto_msgTypes[1] 183 if protoimpl.UnsafeEnabled && x != nil { 184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 185 if ms.LoadMessageInfo() == nil { 186 ms.StoreMessageInfo(mi) 187 } 188 return ms 189 } 190 return mi.MessageOf(x) 191 } 192 193 // Deprecated: Use VrfTable_FlowHashSettings.ProtoReflect.Descriptor instead. 194 func (*VrfTable_FlowHashSettings) Descriptor() ([]byte, []int) { 195 return file_ligato_vpp_l3_vrf_proto_rawDescGZIP(), []int{0, 0} 196 } 197 198 func (x *VrfTable_FlowHashSettings) GetUseSrcIp() bool { 199 if x != nil { 200 return x.UseSrcIp 201 } 202 return false 203 } 204 205 func (x *VrfTable_FlowHashSettings) GetUseDstIp() bool { 206 if x != nil { 207 return x.UseDstIp 208 } 209 return false 210 } 211 212 func (x *VrfTable_FlowHashSettings) GetUseSrcPort() bool { 213 if x != nil { 214 return x.UseSrcPort 215 } 216 return false 217 } 218 219 func (x *VrfTable_FlowHashSettings) GetUseDstPort() bool { 220 if x != nil { 221 return x.UseDstPort 222 } 223 return false 224 } 225 226 func (x *VrfTable_FlowHashSettings) GetUseProtocol() bool { 227 if x != nil { 228 return x.UseProtocol 229 } 230 return false 231 } 232 233 func (x *VrfTable_FlowHashSettings) GetReverse() bool { 234 if x != nil { 235 return x.Reverse 236 } 237 return false 238 } 239 240 func (x *VrfTable_FlowHashSettings) GetSymmetric() bool { 241 if x != nil { 242 return x.Symmetric 243 } 244 return false 245 } 246 247 var File_ligato_vpp_l3_vrf_proto protoreflect.FileDescriptor 248 249 var file_ligato_vpp_l3_vrf_proto_rawDesc = []byte{ 250 0x0a, 0x17, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f, 251 0x76, 0x72, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67, 0x61, 0x74, 252 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x22, 0xd6, 0x03, 0x0a, 0x08, 0x56, 0x72, 0x66, 253 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 254 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 255 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 256 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x56, 0x72, 0x66, 0x54, 0x61, 0x62, 0x6c, 0x65, 257 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 258 0x63, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 259 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x56, 0x0a, 0x12, 0x66, 0x6c, 0x6f, 260 0x77, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 261 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 262 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x56, 0x72, 0x66, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x46, 263 0x6c, 0x6f, 0x77, 0x48, 0x61, 0x73, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 264 0x10, 0x66, 0x6c, 0x6f, 0x77, 0x48, 0x61, 0x73, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 265 0x73, 0x1a, 0xed, 0x01, 0x0a, 0x10, 0x46, 0x6c, 0x6f, 0x77, 0x48, 0x61, 0x73, 0x68, 0x53, 0x65, 266 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x72, 267 0x63, 0x5f, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x73, 0x65, 0x53, 268 0x72, 0x63, 0x49, 0x70, 0x12, 0x1c, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x73, 0x74, 0x5f, 269 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x73, 0x65, 0x44, 0x73, 0x74, 270 0x49, 0x70, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x72, 0x63, 0x5f, 0x70, 0x6f, 271 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x53, 0x72, 0x63, 272 0x50, 0x6f, 0x72, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x5f, 0x64, 0x73, 0x74, 0x5f, 273 0x70, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x44, 274 0x73, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x72, 275 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x75, 0x73, 276 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x76, 277 0x65, 0x72, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x72, 0x65, 0x76, 0x65, 278 0x72, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x79, 0x6d, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 279 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x79, 0x6d, 0x6d, 0x65, 0x74, 0x72, 0x69, 280 0x63, 0x22, 0x1e, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x08, 0x0a, 281 0x04, 0x49, 0x50, 0x56, 0x34, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x56, 0x36, 0x10, 282 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 283 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 284 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 285 0x6c, 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 286 0x33, 287 } 288 289 var ( 290 file_ligato_vpp_l3_vrf_proto_rawDescOnce sync.Once 291 file_ligato_vpp_l3_vrf_proto_rawDescData = file_ligato_vpp_l3_vrf_proto_rawDesc 292 ) 293 294 func file_ligato_vpp_l3_vrf_proto_rawDescGZIP() []byte { 295 file_ligato_vpp_l3_vrf_proto_rawDescOnce.Do(func() { 296 file_ligato_vpp_l3_vrf_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_vrf_proto_rawDescData) 297 }) 298 return file_ligato_vpp_l3_vrf_proto_rawDescData 299 } 300 301 var file_ligato_vpp_l3_vrf_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 302 var file_ligato_vpp_l3_vrf_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 303 var file_ligato_vpp_l3_vrf_proto_goTypes = []interface{}{ 304 (VrfTable_Protocol)(0), // 0: ligato.vpp.l3.VrfTable.Protocol 305 (*VrfTable)(nil), // 1: ligato.vpp.l3.VrfTable 306 (*VrfTable_FlowHashSettings)(nil), // 2: ligato.vpp.l3.VrfTable.FlowHashSettings 307 } 308 var file_ligato_vpp_l3_vrf_proto_depIdxs = []int32{ 309 0, // 0: ligato.vpp.l3.VrfTable.protocol:type_name -> ligato.vpp.l3.VrfTable.Protocol 310 2, // 1: ligato.vpp.l3.VrfTable.flow_hash_settings:type_name -> ligato.vpp.l3.VrfTable.FlowHashSettings 311 2, // [2:2] is the sub-list for method output_type 312 2, // [2:2] is the sub-list for method input_type 313 2, // [2:2] is the sub-list for extension type_name 314 2, // [2:2] is the sub-list for extension extendee 315 0, // [0:2] is the sub-list for field type_name 316 } 317 318 func init() { file_ligato_vpp_l3_vrf_proto_init() } 319 func file_ligato_vpp_l3_vrf_proto_init() { 320 if File_ligato_vpp_l3_vrf_proto != nil { 321 return 322 } 323 if !protoimpl.UnsafeEnabled { 324 file_ligato_vpp_l3_vrf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 325 switch v := v.(*VrfTable); i { 326 case 0: 327 return &v.state 328 case 1: 329 return &v.sizeCache 330 case 2: 331 return &v.unknownFields 332 default: 333 return nil 334 } 335 } 336 file_ligato_vpp_l3_vrf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 337 switch v := v.(*VrfTable_FlowHashSettings); i { 338 case 0: 339 return &v.state 340 case 1: 341 return &v.sizeCache 342 case 2: 343 return &v.unknownFields 344 default: 345 return nil 346 } 347 } 348 } 349 type x struct{} 350 out := protoimpl.TypeBuilder{ 351 File: protoimpl.DescBuilder{ 352 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 353 RawDescriptor: file_ligato_vpp_l3_vrf_proto_rawDesc, 354 NumEnums: 1, 355 NumMessages: 2, 356 NumExtensions: 0, 357 NumServices: 0, 358 }, 359 GoTypes: file_ligato_vpp_l3_vrf_proto_goTypes, 360 DependencyIndexes: file_ligato_vpp_l3_vrf_proto_depIdxs, 361 EnumInfos: file_ligato_vpp_l3_vrf_proto_enumTypes, 362 MessageInfos: file_ligato_vpp_l3_vrf_proto_msgTypes, 363 }.Build() 364 File_ligato_vpp_l3_vrf_proto = out.File 365 file_ligato_vpp_l3_vrf_proto_rawDesc = nil 366 file_ligato_vpp_l3_vrf_proto_goTypes = nil 367 file_ligato_vpp_l3_vrf_proto_depIdxs = nil 368 }