go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/acl/acl.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/acl/acl.proto 6 7 package vpp_acl 8 9 import ( 10 _ "go.ligato.io/vpp-agent/v3/proto/ligato" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 type ACL_Rule_Action int32 25 26 const ( 27 ACL_Rule_DENY ACL_Rule_Action = 0 28 ACL_Rule_PERMIT ACL_Rule_Action = 1 29 ACL_Rule_REFLECT ACL_Rule_Action = 2 30 ) 31 32 // Enum value maps for ACL_Rule_Action. 33 var ( 34 ACL_Rule_Action_name = map[int32]string{ 35 0: "DENY", 36 1: "PERMIT", 37 2: "REFLECT", 38 } 39 ACL_Rule_Action_value = map[string]int32{ 40 "DENY": 0, 41 "PERMIT": 1, 42 "REFLECT": 2, 43 } 44 ) 45 46 func (x ACL_Rule_Action) Enum() *ACL_Rule_Action { 47 p := new(ACL_Rule_Action) 48 *p = x 49 return p 50 } 51 52 func (x ACL_Rule_Action) String() string { 53 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 54 } 55 56 func (ACL_Rule_Action) Descriptor() protoreflect.EnumDescriptor { 57 return file_ligato_vpp_acl_acl_proto_enumTypes[0].Descriptor() 58 } 59 60 func (ACL_Rule_Action) Type() protoreflect.EnumType { 61 return &file_ligato_vpp_acl_acl_proto_enumTypes[0] 62 } 63 64 func (x ACL_Rule_Action) Number() protoreflect.EnumNumber { 65 return protoreflect.EnumNumber(x) 66 } 67 68 // Deprecated: Use ACL_Rule_Action.Descriptor instead. 69 func (ACL_Rule_Action) EnumDescriptor() ([]byte, []int) { 70 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0} 71 } 72 73 // ACL defines Access Control List. 74 type ACL struct { 75 state protoimpl.MessageState 76 sizeCache protoimpl.SizeCache 77 unknownFields protoimpl.UnknownFields 78 79 // The name of an access list. A device MAY restrict the length 80 // and value of this name, possibly spaces and special 81 // characters are not allowed. 82 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 83 Rules []*ACL_Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` 84 Interfaces *ACL_Interfaces `protobuf:"bytes,3,opt,name=interfaces,proto3" json:"interfaces,omitempty"` 85 } 86 87 func (x *ACL) Reset() { 88 *x = ACL{} 89 if protoimpl.UnsafeEnabled { 90 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[0] 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 ms.StoreMessageInfo(mi) 93 } 94 } 95 96 func (x *ACL) String() string { 97 return protoimpl.X.MessageStringOf(x) 98 } 99 100 func (*ACL) ProtoMessage() {} 101 102 func (x *ACL) ProtoReflect() protoreflect.Message { 103 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[0] 104 if protoimpl.UnsafeEnabled && x != nil { 105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 106 if ms.LoadMessageInfo() == nil { 107 ms.StoreMessageInfo(mi) 108 } 109 return ms 110 } 111 return mi.MessageOf(x) 112 } 113 114 // Deprecated: Use ACL.ProtoReflect.Descriptor instead. 115 func (*ACL) Descriptor() ([]byte, []int) { 116 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0} 117 } 118 119 func (x *ACL) GetName() string { 120 if x != nil { 121 return x.Name 122 } 123 return "" 124 } 125 126 func (x *ACL) GetRules() []*ACL_Rule { 127 if x != nil { 128 return x.Rules 129 } 130 return nil 131 } 132 133 func (x *ACL) GetInterfaces() *ACL_Interfaces { 134 if x != nil { 135 return x.Interfaces 136 } 137 return nil 138 } 139 140 // List of access list entries (Rules). Each Access Control Rule has 141 // a list of match criteria and a list of actions. 142 // Access List entry that can define: 143 // - IPv4/IPv6 src ip prefix 144 // - src MAC address mask 145 // - src MAC address value 146 // - can be used only for static ACLs. 147 type ACL_Rule struct { 148 state protoimpl.MessageState 149 sizeCache protoimpl.SizeCache 150 unknownFields protoimpl.UnknownFields 151 152 Action ACL_Rule_Action `protobuf:"varint,1,opt,name=action,proto3,enum=ligato.vpp.acl.ACL_Rule_Action" json:"action,omitempty"` 153 IpRule *ACL_Rule_IpRule `protobuf:"bytes,2,opt,name=ip_rule,json=ipRule,proto3" json:"ip_rule,omitempty"` 154 MacipRule *ACL_Rule_MacIpRule `protobuf:"bytes,3,opt,name=macip_rule,json=macipRule,proto3" json:"macip_rule,omitempty"` 155 } 156 157 func (x *ACL_Rule) Reset() { 158 *x = ACL_Rule{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[1] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *ACL_Rule) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*ACL_Rule) ProtoMessage() {} 171 172 func (x *ACL_Rule) ProtoReflect() protoreflect.Message { 173 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[1] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use ACL_Rule.ProtoReflect.Descriptor instead. 185 func (*ACL_Rule) Descriptor() ([]byte, []int) { 186 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0} 187 } 188 189 func (x *ACL_Rule) GetAction() ACL_Rule_Action { 190 if x != nil { 191 return x.Action 192 } 193 return ACL_Rule_DENY 194 } 195 196 func (x *ACL_Rule) GetIpRule() *ACL_Rule_IpRule { 197 if x != nil { 198 return x.IpRule 199 } 200 return nil 201 } 202 203 func (x *ACL_Rule) GetMacipRule() *ACL_Rule_MacIpRule { 204 if x != nil { 205 return x.MacipRule 206 } 207 return nil 208 } 209 210 // The set of interfaces that has assigned this ACL on ingres or egress. 211 type ACL_Interfaces struct { 212 state protoimpl.MessageState 213 sizeCache protoimpl.SizeCache 214 unknownFields protoimpl.UnknownFields 215 216 Egress []string `protobuf:"bytes,1,rep,name=egress,proto3" json:"egress,omitempty"` 217 Ingress []string `protobuf:"bytes,2,rep,name=ingress,proto3" json:"ingress,omitempty"` 218 } 219 220 func (x *ACL_Interfaces) Reset() { 221 *x = ACL_Interfaces{} 222 if protoimpl.UnsafeEnabled { 223 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[2] 224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 225 ms.StoreMessageInfo(mi) 226 } 227 } 228 229 func (x *ACL_Interfaces) String() string { 230 return protoimpl.X.MessageStringOf(x) 231 } 232 233 func (*ACL_Interfaces) ProtoMessage() {} 234 235 func (x *ACL_Interfaces) ProtoReflect() protoreflect.Message { 236 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[2] 237 if protoimpl.UnsafeEnabled && x != nil { 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 if ms.LoadMessageInfo() == nil { 240 ms.StoreMessageInfo(mi) 241 } 242 return ms 243 } 244 return mi.MessageOf(x) 245 } 246 247 // Deprecated: Use ACL_Interfaces.ProtoReflect.Descriptor instead. 248 func (*ACL_Interfaces) Descriptor() ([]byte, []int) { 249 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 1} 250 } 251 252 func (x *ACL_Interfaces) GetEgress() []string { 253 if x != nil { 254 return x.Egress 255 } 256 return nil 257 } 258 259 func (x *ACL_Interfaces) GetIngress() []string { 260 if x != nil { 261 return x.Ingress 262 } 263 return nil 264 } 265 266 type ACL_Rule_IpRule struct { 267 state protoimpl.MessageState 268 sizeCache protoimpl.SizeCache 269 unknownFields protoimpl.UnknownFields 270 271 Ip *ACL_Rule_IpRule_Ip `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` 272 Icmp *ACL_Rule_IpRule_Icmp `protobuf:"bytes,2,opt,name=icmp,proto3" json:"icmp,omitempty"` 273 Tcp *ACL_Rule_IpRule_Tcp `protobuf:"bytes,3,opt,name=tcp,proto3" json:"tcp,omitempty"` 274 Udp *ACL_Rule_IpRule_Udp `protobuf:"bytes,4,opt,name=udp,proto3" json:"udp,omitempty"` 275 } 276 277 func (x *ACL_Rule_IpRule) Reset() { 278 *x = ACL_Rule_IpRule{} 279 if protoimpl.UnsafeEnabled { 280 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[3] 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 ms.StoreMessageInfo(mi) 283 } 284 } 285 286 func (x *ACL_Rule_IpRule) String() string { 287 return protoimpl.X.MessageStringOf(x) 288 } 289 290 func (*ACL_Rule_IpRule) ProtoMessage() {} 291 292 func (x *ACL_Rule_IpRule) ProtoReflect() protoreflect.Message { 293 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[3] 294 if protoimpl.UnsafeEnabled && x != nil { 295 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 296 if ms.LoadMessageInfo() == nil { 297 ms.StoreMessageInfo(mi) 298 } 299 return ms 300 } 301 return mi.MessageOf(x) 302 } 303 304 // Deprecated: Use ACL_Rule_IpRule.ProtoReflect.Descriptor instead. 305 func (*ACL_Rule_IpRule) Descriptor() ([]byte, []int) { 306 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0} 307 } 308 309 func (x *ACL_Rule_IpRule) GetIp() *ACL_Rule_IpRule_Ip { 310 if x != nil { 311 return x.Ip 312 } 313 return nil 314 } 315 316 func (x *ACL_Rule_IpRule) GetIcmp() *ACL_Rule_IpRule_Icmp { 317 if x != nil { 318 return x.Icmp 319 } 320 return nil 321 } 322 323 func (x *ACL_Rule_IpRule) GetTcp() *ACL_Rule_IpRule_Tcp { 324 if x != nil { 325 return x.Tcp 326 } 327 return nil 328 } 329 330 func (x *ACL_Rule_IpRule) GetUdp() *ACL_Rule_IpRule_Udp { 331 if x != nil { 332 return x.Udp 333 } 334 return nil 335 } 336 337 type ACL_Rule_MacIpRule struct { 338 state protoimpl.MessageState 339 sizeCache protoimpl.SizeCache 340 unknownFields protoimpl.UnknownFields 341 342 SourceAddress string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"` 343 SourceAddressPrefix uint32 `protobuf:"varint,2,opt,name=source_address_prefix,json=sourceAddressPrefix,proto3" json:"source_address_prefix,omitempty"` 344 // Before source-mac-address is compared with source mac address field of the packet 345 // being matched, source-mac-address-mask is applied to packet field value. 346 SourceMacAddress string `protobuf:"bytes,3,opt,name=source_mac_address,json=sourceMacAddress,proto3" json:"source_mac_address,omitempty"` 347 // Source MAC address mask. 348 // Applied as logical AND with source mac address field of the packet being matched, 349 // before it is compared with source-mac-address. 350 SourceMacAddressMask string `protobuf:"bytes,4,opt,name=source_mac_address_mask,json=sourceMacAddressMask,proto3" json:"source_mac_address_mask,omitempty"` 351 } 352 353 func (x *ACL_Rule_MacIpRule) Reset() { 354 *x = ACL_Rule_MacIpRule{} 355 if protoimpl.UnsafeEnabled { 356 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[4] 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 ms.StoreMessageInfo(mi) 359 } 360 } 361 362 func (x *ACL_Rule_MacIpRule) String() string { 363 return protoimpl.X.MessageStringOf(x) 364 } 365 366 func (*ACL_Rule_MacIpRule) ProtoMessage() {} 367 368 func (x *ACL_Rule_MacIpRule) ProtoReflect() protoreflect.Message { 369 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[4] 370 if protoimpl.UnsafeEnabled && x != nil { 371 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 372 if ms.LoadMessageInfo() == nil { 373 ms.StoreMessageInfo(mi) 374 } 375 return ms 376 } 377 return mi.MessageOf(x) 378 } 379 380 // Deprecated: Use ACL_Rule_MacIpRule.ProtoReflect.Descriptor instead. 381 func (*ACL_Rule_MacIpRule) Descriptor() ([]byte, []int) { 382 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 1} 383 } 384 385 func (x *ACL_Rule_MacIpRule) GetSourceAddress() string { 386 if x != nil { 387 return x.SourceAddress 388 } 389 return "" 390 } 391 392 func (x *ACL_Rule_MacIpRule) GetSourceAddressPrefix() uint32 { 393 if x != nil { 394 return x.SourceAddressPrefix 395 } 396 return 0 397 } 398 399 func (x *ACL_Rule_MacIpRule) GetSourceMacAddress() string { 400 if x != nil { 401 return x.SourceMacAddress 402 } 403 return "" 404 } 405 406 func (x *ACL_Rule_MacIpRule) GetSourceMacAddressMask() string { 407 if x != nil { 408 return x.SourceMacAddressMask 409 } 410 return "" 411 } 412 413 // IP used in this Access List Entry. 414 type ACL_Rule_IpRule_Ip struct { 415 state protoimpl.MessageState 416 sizeCache protoimpl.SizeCache 417 unknownFields protoimpl.UnknownFields 418 419 // Destination IPv4/IPv6 network address (<ip>/<network>) 420 DestinationNetwork string `protobuf:"bytes,1,opt,name=destination_network,json=destinationNetwork,proto3" json:"destination_network,omitempty"` 421 // Destination IPv4/IPv6 network address (<ip>/<network>) 422 SourceNetwork string `protobuf:"bytes,2,opt,name=source_network,json=sourceNetwork,proto3" json:"source_network,omitempty"` 423 // IP protocol number (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml) 424 // Zero value (i.e. undefined protocol) means that the protocol to match will be automatically 425 // selected from one of the ICMP/ICMP6/TCP/UDP based on the rule definition. For example, if "icmp" 426 // is defined and src/dst addresses are IPv6 then packets of the ICMP6 protocol will be matched, etc. 427 Protocol uint32 `protobuf:"varint,3,opt,name=protocol,proto3" json:"protocol,omitempty"` 428 } 429 430 func (x *ACL_Rule_IpRule_Ip) Reset() { 431 *x = ACL_Rule_IpRule_Ip{} 432 if protoimpl.UnsafeEnabled { 433 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[5] 434 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 435 ms.StoreMessageInfo(mi) 436 } 437 } 438 439 func (x *ACL_Rule_IpRule_Ip) String() string { 440 return protoimpl.X.MessageStringOf(x) 441 } 442 443 func (*ACL_Rule_IpRule_Ip) ProtoMessage() {} 444 445 func (x *ACL_Rule_IpRule_Ip) ProtoReflect() protoreflect.Message { 446 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[5] 447 if protoimpl.UnsafeEnabled && x != nil { 448 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 449 if ms.LoadMessageInfo() == nil { 450 ms.StoreMessageInfo(mi) 451 } 452 return ms 453 } 454 return mi.MessageOf(x) 455 } 456 457 // Deprecated: Use ACL_Rule_IpRule_Ip.ProtoReflect.Descriptor instead. 458 func (*ACL_Rule_IpRule_Ip) Descriptor() ([]byte, []int) { 459 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 0} 460 } 461 462 func (x *ACL_Rule_IpRule_Ip) GetDestinationNetwork() string { 463 if x != nil { 464 return x.DestinationNetwork 465 } 466 return "" 467 } 468 469 func (x *ACL_Rule_IpRule_Ip) GetSourceNetwork() string { 470 if x != nil { 471 return x.SourceNetwork 472 } 473 return "" 474 } 475 476 func (x *ACL_Rule_IpRule_Ip) GetProtocol() uint32 { 477 if x != nil { 478 return x.Protocol 479 } 480 return 0 481 } 482 483 type ACL_Rule_IpRule_Icmp struct { 484 state protoimpl.MessageState 485 sizeCache protoimpl.SizeCache 486 unknownFields protoimpl.UnknownFields 487 488 // ICMPv6 flag, if false ICMPv4 will be used 489 Icmpv6 bool `protobuf:"varint,1,opt,name=icmpv6,proto3" json:"icmpv6,omitempty"` 490 // Inclusive range representing icmp codes to be used. 491 IcmpCodeRange *ACL_Rule_IpRule_Icmp_Range `protobuf:"bytes,2,opt,name=icmp_code_range,json=icmpCodeRange,proto3" json:"icmp_code_range,omitempty"` 492 IcmpTypeRange *ACL_Rule_IpRule_Icmp_Range `protobuf:"bytes,3,opt,name=icmp_type_range,json=icmpTypeRange,proto3" json:"icmp_type_range,omitempty"` 493 } 494 495 func (x *ACL_Rule_IpRule_Icmp) Reset() { 496 *x = ACL_Rule_IpRule_Icmp{} 497 if protoimpl.UnsafeEnabled { 498 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[6] 499 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 500 ms.StoreMessageInfo(mi) 501 } 502 } 503 504 func (x *ACL_Rule_IpRule_Icmp) String() string { 505 return protoimpl.X.MessageStringOf(x) 506 } 507 508 func (*ACL_Rule_IpRule_Icmp) ProtoMessage() {} 509 510 func (x *ACL_Rule_IpRule_Icmp) ProtoReflect() protoreflect.Message { 511 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[6] 512 if protoimpl.UnsafeEnabled && x != nil { 513 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 514 if ms.LoadMessageInfo() == nil { 515 ms.StoreMessageInfo(mi) 516 } 517 return ms 518 } 519 return mi.MessageOf(x) 520 } 521 522 // Deprecated: Use ACL_Rule_IpRule_Icmp.ProtoReflect.Descriptor instead. 523 func (*ACL_Rule_IpRule_Icmp) Descriptor() ([]byte, []int) { 524 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 1} 525 } 526 527 func (x *ACL_Rule_IpRule_Icmp) GetIcmpv6() bool { 528 if x != nil { 529 return x.Icmpv6 530 } 531 return false 532 } 533 534 func (x *ACL_Rule_IpRule_Icmp) GetIcmpCodeRange() *ACL_Rule_IpRule_Icmp_Range { 535 if x != nil { 536 return x.IcmpCodeRange 537 } 538 return nil 539 } 540 541 func (x *ACL_Rule_IpRule_Icmp) GetIcmpTypeRange() *ACL_Rule_IpRule_Icmp_Range { 542 if x != nil { 543 return x.IcmpTypeRange 544 } 545 return nil 546 } 547 548 // Inclusive range representing destination ports to be used. When 549 // only lower-port is present, it represents a single port. 550 type ACL_Rule_IpRule_PortRange struct { 551 state protoimpl.MessageState 552 sizeCache protoimpl.SizeCache 553 unknownFields protoimpl.UnknownFields 554 555 LowerPort uint32 `protobuf:"varint,1,opt,name=lower_port,json=lowerPort,proto3" json:"lower_port,omitempty"` 556 // If upper port is set, it must 557 // be greater or equal to lower port 558 UpperPort uint32 `protobuf:"varint,2,opt,name=upper_port,json=upperPort,proto3" json:"upper_port,omitempty"` 559 } 560 561 func (x *ACL_Rule_IpRule_PortRange) Reset() { 562 *x = ACL_Rule_IpRule_PortRange{} 563 if protoimpl.UnsafeEnabled { 564 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[7] 565 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 566 ms.StoreMessageInfo(mi) 567 } 568 } 569 570 func (x *ACL_Rule_IpRule_PortRange) String() string { 571 return protoimpl.X.MessageStringOf(x) 572 } 573 574 func (*ACL_Rule_IpRule_PortRange) ProtoMessage() {} 575 576 func (x *ACL_Rule_IpRule_PortRange) ProtoReflect() protoreflect.Message { 577 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[7] 578 if protoimpl.UnsafeEnabled && x != nil { 579 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 580 if ms.LoadMessageInfo() == nil { 581 ms.StoreMessageInfo(mi) 582 } 583 return ms 584 } 585 return mi.MessageOf(x) 586 } 587 588 // Deprecated: Use ACL_Rule_IpRule_PortRange.ProtoReflect.Descriptor instead. 589 func (*ACL_Rule_IpRule_PortRange) Descriptor() ([]byte, []int) { 590 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 2} 591 } 592 593 func (x *ACL_Rule_IpRule_PortRange) GetLowerPort() uint32 { 594 if x != nil { 595 return x.LowerPort 596 } 597 return 0 598 } 599 600 func (x *ACL_Rule_IpRule_PortRange) GetUpperPort() uint32 { 601 if x != nil { 602 return x.UpperPort 603 } 604 return 0 605 } 606 607 type ACL_Rule_IpRule_Tcp struct { 608 state protoimpl.MessageState 609 sizeCache protoimpl.SizeCache 610 unknownFields protoimpl.UnknownFields 611 612 DestinationPortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,1,opt,name=destination_port_range,json=destinationPortRange,proto3" json:"destination_port_range,omitempty"` 613 SourcePortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,2,opt,name=source_port_range,json=sourcePortRange,proto3" json:"source_port_range,omitempty"` 614 // Binary mask for tcp flags to match. MSB order (FIN at position 0). 615 // Applied as logical AND to tcp flags field of the packet being matched, 616 // before it is compared with tcp-flags-value. 617 TcpFlagsMask uint32 `protobuf:"varint,3,opt,name=tcp_flags_mask,json=tcpFlagsMask,proto3" json:"tcp_flags_mask,omitempty"` 618 // Binary value for tcp flags to match. MSB order (FIN at position 0). 619 // Before tcp-flags-value is compared with tcp flags field of the packet being matched, 620 // tcp-flags-mask is applied to packet field value. 621 TcpFlagsValue uint32 `protobuf:"varint,4,opt,name=tcp_flags_value,json=tcpFlagsValue,proto3" json:"tcp_flags_value,omitempty"` 622 } 623 624 func (x *ACL_Rule_IpRule_Tcp) Reset() { 625 *x = ACL_Rule_IpRule_Tcp{} 626 if protoimpl.UnsafeEnabled { 627 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[8] 628 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 629 ms.StoreMessageInfo(mi) 630 } 631 } 632 633 func (x *ACL_Rule_IpRule_Tcp) String() string { 634 return protoimpl.X.MessageStringOf(x) 635 } 636 637 func (*ACL_Rule_IpRule_Tcp) ProtoMessage() {} 638 639 func (x *ACL_Rule_IpRule_Tcp) ProtoReflect() protoreflect.Message { 640 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[8] 641 if protoimpl.UnsafeEnabled && x != nil { 642 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 643 if ms.LoadMessageInfo() == nil { 644 ms.StoreMessageInfo(mi) 645 } 646 return ms 647 } 648 return mi.MessageOf(x) 649 } 650 651 // Deprecated: Use ACL_Rule_IpRule_Tcp.ProtoReflect.Descriptor instead. 652 func (*ACL_Rule_IpRule_Tcp) Descriptor() ([]byte, []int) { 653 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 3} 654 } 655 656 func (x *ACL_Rule_IpRule_Tcp) GetDestinationPortRange() *ACL_Rule_IpRule_PortRange { 657 if x != nil { 658 return x.DestinationPortRange 659 } 660 return nil 661 } 662 663 func (x *ACL_Rule_IpRule_Tcp) GetSourcePortRange() *ACL_Rule_IpRule_PortRange { 664 if x != nil { 665 return x.SourcePortRange 666 } 667 return nil 668 } 669 670 func (x *ACL_Rule_IpRule_Tcp) GetTcpFlagsMask() uint32 { 671 if x != nil { 672 return x.TcpFlagsMask 673 } 674 return 0 675 } 676 677 func (x *ACL_Rule_IpRule_Tcp) GetTcpFlagsValue() uint32 { 678 if x != nil { 679 return x.TcpFlagsValue 680 } 681 return 0 682 } 683 684 type ACL_Rule_IpRule_Udp struct { 685 state protoimpl.MessageState 686 sizeCache protoimpl.SizeCache 687 unknownFields protoimpl.UnknownFields 688 689 DestinationPortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,1,opt,name=destination_port_range,json=destinationPortRange,proto3" json:"destination_port_range,omitempty"` 690 SourcePortRange *ACL_Rule_IpRule_PortRange `protobuf:"bytes,2,opt,name=source_port_range,json=sourcePortRange,proto3" json:"source_port_range,omitempty"` 691 } 692 693 func (x *ACL_Rule_IpRule_Udp) Reset() { 694 *x = ACL_Rule_IpRule_Udp{} 695 if protoimpl.UnsafeEnabled { 696 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[9] 697 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 698 ms.StoreMessageInfo(mi) 699 } 700 } 701 702 func (x *ACL_Rule_IpRule_Udp) String() string { 703 return protoimpl.X.MessageStringOf(x) 704 } 705 706 func (*ACL_Rule_IpRule_Udp) ProtoMessage() {} 707 708 func (x *ACL_Rule_IpRule_Udp) ProtoReflect() protoreflect.Message { 709 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[9] 710 if protoimpl.UnsafeEnabled && x != nil { 711 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 712 if ms.LoadMessageInfo() == nil { 713 ms.StoreMessageInfo(mi) 714 } 715 return ms 716 } 717 return mi.MessageOf(x) 718 } 719 720 // Deprecated: Use ACL_Rule_IpRule_Udp.ProtoReflect.Descriptor instead. 721 func (*ACL_Rule_IpRule_Udp) Descriptor() ([]byte, []int) { 722 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 4} 723 } 724 725 func (x *ACL_Rule_IpRule_Udp) GetDestinationPortRange() *ACL_Rule_IpRule_PortRange { 726 if x != nil { 727 return x.DestinationPortRange 728 } 729 return nil 730 } 731 732 func (x *ACL_Rule_IpRule_Udp) GetSourcePortRange() *ACL_Rule_IpRule_PortRange { 733 if x != nil { 734 return x.SourcePortRange 735 } 736 return nil 737 } 738 739 type ACL_Rule_IpRule_Icmp_Range struct { 740 state protoimpl.MessageState 741 sizeCache protoimpl.SizeCache 742 unknownFields protoimpl.UnknownFields 743 744 First uint32 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` 745 Last uint32 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` 746 } 747 748 func (x *ACL_Rule_IpRule_Icmp_Range) Reset() { 749 *x = ACL_Rule_IpRule_Icmp_Range{} 750 if protoimpl.UnsafeEnabled { 751 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[10] 752 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 753 ms.StoreMessageInfo(mi) 754 } 755 } 756 757 func (x *ACL_Rule_IpRule_Icmp_Range) String() string { 758 return protoimpl.X.MessageStringOf(x) 759 } 760 761 func (*ACL_Rule_IpRule_Icmp_Range) ProtoMessage() {} 762 763 func (x *ACL_Rule_IpRule_Icmp_Range) ProtoReflect() protoreflect.Message { 764 mi := &file_ligato_vpp_acl_acl_proto_msgTypes[10] 765 if protoimpl.UnsafeEnabled && x != nil { 766 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 767 if ms.LoadMessageInfo() == nil { 768 ms.StoreMessageInfo(mi) 769 } 770 return ms 771 } 772 return mi.MessageOf(x) 773 } 774 775 // Deprecated: Use ACL_Rule_IpRule_Icmp_Range.ProtoReflect.Descriptor instead. 776 func (*ACL_Rule_IpRule_Icmp_Range) Descriptor() ([]byte, []int) { 777 return file_ligato_vpp_acl_acl_proto_rawDescGZIP(), []int{0, 0, 0, 1, 0} 778 } 779 780 func (x *ACL_Rule_IpRule_Icmp_Range) GetFirst() uint32 { 781 if x != nil { 782 return x.First 783 } 784 return 0 785 } 786 787 func (x *ACL_Rule_IpRule_Icmp_Range) GetLast() uint32 { 788 if x != nil { 789 return x.Last 790 } 791 return 0 792 } 793 794 var File_ligato_vpp_acl_acl_proto protoreflect.FileDescriptor 795 796 var file_ligato_vpp_acl_acl_proto_rawDesc = []byte{ 797 0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x63, 0x6c, 798 0x2f, 0x61, 0x63, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61, 799 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61, 800 0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 801 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3, 0x0e, 0x0a, 0x03, 0x41, 0x43, 0x4c, 0x12, 0x12, 0x0a, 0x04, 802 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 803 0x12, 0x2e, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 804 0x18, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 805 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 806 0x12, 0x3e, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 807 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 808 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 809 0x61, 0x63, 0x65, 0x73, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 810 0x1a, 0x87, 0x0d, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x61, 0x63, 0x74, 811 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 812 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 813 0x75, 0x6c, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 814 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x07, 0x69, 0x70, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 815 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 816 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 817 0x52, 0x75, 0x6c, 0x65, 0x52, 0x06, 0x69, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x41, 0x0a, 0x0a, 818 0x6d, 0x61, 0x63, 0x69, 0x70, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 819 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 820 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x4d, 0x61, 0x63, 0x49, 0x70, 821 0x52, 0x75, 0x6c, 0x65, 0x52, 0x09, 0x6d, 0x61, 0x63, 0x69, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x1a, 822 0xbc, 0x09, 0x0a, 0x06, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x02, 0x69, 0x70, 823 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 824 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 825 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x02, 0x69, 0x70, 0x12, 0x38, 826 0x0a, 0x04, 0x69, 0x63, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6c, 827 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 828 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x63, 829 0x6d, 0x70, 0x52, 0x04, 0x69, 0x63, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x03, 0x74, 0x63, 0x70, 0x18, 830 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 831 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 832 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x54, 0x63, 0x70, 0x52, 0x03, 0x74, 0x63, 0x70, 0x12, 833 0x35, 0x0a, 0x03, 0x75, 0x64, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6c, 834 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 835 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x55, 0x64, 836 0x70, 0x52, 0x03, 0x75, 0x64, 0x70, 0x1a, 0x82, 0x01, 0x0a, 0x02, 0x49, 0x70, 0x12, 0x2f, 0x0a, 837 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x65, 0x74, 838 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x64, 0x65, 0x73, 0x74, 839 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x25, 840 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 841 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x65, 842 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x24, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 843 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x08, 0x82, 0x7d, 0x05, 0x12, 0x03, 0x10, 0xff, 844 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x1a, 0x8d, 0x02, 0x0a, 0x04, 845 0x49, 0x63, 0x6d, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x63, 0x6d, 0x70, 0x76, 0x36, 0x18, 0x01, 846 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x63, 0x6d, 0x70, 0x76, 0x36, 0x12, 0x52, 0x0a, 0x0f, 847 0x69, 0x63, 0x6d, 0x70, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 848 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 849 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 850 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x63, 0x6d, 0x70, 0x2e, 0x52, 0x61, 0x6e, 0x67, 851 0x65, 0x52, 0x0d, 0x69, 0x63, 0x6d, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 852 0x12, 0x52, 0x0a, 0x0f, 0x69, 0x63, 0x6d, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x72, 0x61, 853 0x6e, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6c, 0x69, 0x67, 0x61, 854 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 855 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x63, 0x6d, 0x70, 0x2e, 856 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0d, 0x69, 0x63, 0x6d, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 857 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x45, 0x0a, 0x05, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x1e, 0x0a, 858 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x08, 0x82, 0x7d, 859 0x05, 0x12, 0x03, 0x10, 0xff, 0x01, 0x52, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12, 0x1c, 0x0a, 860 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x08, 0x82, 0x7d, 0x05, 861 0x12, 0x03, 0x10, 0xff, 0x01, 0x52, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x1a, 0x5f, 0x0a, 0x09, 0x50, 862 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x28, 0x0a, 0x0a, 0x6c, 0x6f, 0x77, 0x65, 863 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0x82, 0x7d, 864 0x06, 0x12, 0x04, 0x10, 0xff, 0xff, 0x03, 0x52, 0x09, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x50, 0x6f, 865 0x72, 0x74, 0x12, 0x28, 0x0a, 0x0a, 0x75, 0x70, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, 0x74, 866 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0x82, 0x7d, 0x06, 0x12, 0x04, 0x10, 0xff, 0xff, 867 0x03, 0x52, 0x09, 0x75, 0x70, 0x70, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x1a, 0x9f, 0x02, 0x0a, 868 0x03, 0x54, 0x63, 0x70, 0x12, 0x5f, 0x0a, 0x16, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 869 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x01, 870 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 871 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 872 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 873 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 874 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 875 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 876 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 877 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 878 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0f, 0x73, 0x6f, 0x75, 879 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2e, 0x0a, 0x0e, 880 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 881 0x20, 0x01, 0x28, 0x0d, 0x42, 0x08, 0x82, 0x7d, 0x05, 0x12, 0x03, 0x10, 0xff, 0x01, 0x52, 0x0c, 882 0x74, 0x63, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x30, 0x0a, 0x0f, 883 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 884 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x08, 0x82, 0x7d, 0x05, 0x12, 0x03, 0x10, 0xff, 0x01, 0x52, 885 0x0d, 0x74, 0x63, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xbd, 886 0x01, 0x0a, 0x03, 0x55, 0x64, 0x70, 0x12, 0x5f, 0x0a, 0x16, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 887 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 888 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 889 0x76, 0x70, 0x70, 0x2e, 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 890 0x2e, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 891 0x65, 0x52, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 892 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 893 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 894 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 895 0x61, 0x63, 0x6c, 0x2e, 0x41, 0x43, 0x4c, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x49, 0x70, 0x52, 896 0x75, 0x6c, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0f, 0x73, 897 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0xdc, 898 0x01, 0x0a, 0x09, 0x4d, 0x61, 0x63, 0x49, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x0e, 899 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 900 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x0d, 0x73, 0x6f, 0x75, 901 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x15, 0x73, 0x6f, 902 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x72, 0x65, 903 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x08, 0x82, 0x7d, 0x05, 0x12, 0x03, 904 0x10, 0x80, 0x01, 0x52, 0x13, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 905 0x73, 0x73, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x2c, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 906 0x63, 0x65, 0x5f, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 907 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x61, 0x63, 0x41, 908 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x17, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 909 0x5f, 0x6d, 0x61, 0x63, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6d, 0x61, 0x73, 910 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 911 0x61, 0x63, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x2b, 0x0a, 912 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x4e, 0x59, 0x10, 913 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x54, 0x10, 0x01, 0x12, 0x0b, 0x0a, 914 0x07, 0x52, 0x45, 0x46, 0x4c, 0x45, 0x43, 0x54, 0x10, 0x02, 0x1a, 0x3e, 0x0a, 0x0a, 0x49, 0x6e, 915 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x67, 0x72, 0x65, 916 0x73, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 917 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 918 0x09, 0x52, 0x07, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 919 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 920 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 921 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x63, 0x6c, 0x3b, 0x76, 0x70, 0x70, 922 0x5f, 0x61, 0x63, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 923 } 924 925 var ( 926 file_ligato_vpp_acl_acl_proto_rawDescOnce sync.Once 927 file_ligato_vpp_acl_acl_proto_rawDescData = file_ligato_vpp_acl_acl_proto_rawDesc 928 ) 929 930 func file_ligato_vpp_acl_acl_proto_rawDescGZIP() []byte { 931 file_ligato_vpp_acl_acl_proto_rawDescOnce.Do(func() { 932 file_ligato_vpp_acl_acl_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_acl_acl_proto_rawDescData) 933 }) 934 return file_ligato_vpp_acl_acl_proto_rawDescData 935 } 936 937 var file_ligato_vpp_acl_acl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 938 var file_ligato_vpp_acl_acl_proto_msgTypes = make([]protoimpl.MessageInfo, 11) 939 var file_ligato_vpp_acl_acl_proto_goTypes = []interface{}{ 940 (ACL_Rule_Action)(0), // 0: ligato.vpp.acl.ACL.Rule.Action 941 (*ACL)(nil), // 1: ligato.vpp.acl.ACL 942 (*ACL_Rule)(nil), // 2: ligato.vpp.acl.ACL.Rule 943 (*ACL_Interfaces)(nil), // 3: ligato.vpp.acl.ACL.Interfaces 944 (*ACL_Rule_IpRule)(nil), // 4: ligato.vpp.acl.ACL.Rule.IpRule 945 (*ACL_Rule_MacIpRule)(nil), // 5: ligato.vpp.acl.ACL.Rule.MacIpRule 946 (*ACL_Rule_IpRule_Ip)(nil), // 6: ligato.vpp.acl.ACL.Rule.IpRule.Ip 947 (*ACL_Rule_IpRule_Icmp)(nil), // 7: ligato.vpp.acl.ACL.Rule.IpRule.Icmp 948 (*ACL_Rule_IpRule_PortRange)(nil), // 8: ligato.vpp.acl.ACL.Rule.IpRule.PortRange 949 (*ACL_Rule_IpRule_Tcp)(nil), // 9: ligato.vpp.acl.ACL.Rule.IpRule.Tcp 950 (*ACL_Rule_IpRule_Udp)(nil), // 10: ligato.vpp.acl.ACL.Rule.IpRule.Udp 951 (*ACL_Rule_IpRule_Icmp_Range)(nil), // 11: ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range 952 } 953 var file_ligato_vpp_acl_acl_proto_depIdxs = []int32{ 954 2, // 0: ligato.vpp.acl.ACL.rules:type_name -> ligato.vpp.acl.ACL.Rule 955 3, // 1: ligato.vpp.acl.ACL.interfaces:type_name -> ligato.vpp.acl.ACL.Interfaces 956 0, // 2: ligato.vpp.acl.ACL.Rule.action:type_name -> ligato.vpp.acl.ACL.Rule.Action 957 4, // 3: ligato.vpp.acl.ACL.Rule.ip_rule:type_name -> ligato.vpp.acl.ACL.Rule.IpRule 958 5, // 4: ligato.vpp.acl.ACL.Rule.macip_rule:type_name -> ligato.vpp.acl.ACL.Rule.MacIpRule 959 6, // 5: ligato.vpp.acl.ACL.Rule.IpRule.ip:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Ip 960 7, // 6: ligato.vpp.acl.ACL.Rule.IpRule.icmp:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Icmp 961 9, // 7: ligato.vpp.acl.ACL.Rule.IpRule.tcp:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Tcp 962 10, // 8: ligato.vpp.acl.ACL.Rule.IpRule.udp:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Udp 963 11, // 9: ligato.vpp.acl.ACL.Rule.IpRule.Icmp.icmp_code_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range 964 11, // 10: ligato.vpp.acl.ACL.Rule.IpRule.Icmp.icmp_type_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.Icmp.Range 965 8, // 11: ligato.vpp.acl.ACL.Rule.IpRule.Tcp.destination_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange 966 8, // 12: ligato.vpp.acl.ACL.Rule.IpRule.Tcp.source_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange 967 8, // 13: ligato.vpp.acl.ACL.Rule.IpRule.Udp.destination_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange 968 8, // 14: ligato.vpp.acl.ACL.Rule.IpRule.Udp.source_port_range:type_name -> ligato.vpp.acl.ACL.Rule.IpRule.PortRange 969 15, // [15:15] is the sub-list for method output_type 970 15, // [15:15] is the sub-list for method input_type 971 15, // [15:15] is the sub-list for extension type_name 972 15, // [15:15] is the sub-list for extension extendee 973 0, // [0:15] is the sub-list for field type_name 974 } 975 976 func init() { file_ligato_vpp_acl_acl_proto_init() } 977 func file_ligato_vpp_acl_acl_proto_init() { 978 if File_ligato_vpp_acl_acl_proto != nil { 979 return 980 } 981 if !protoimpl.UnsafeEnabled { 982 file_ligato_vpp_acl_acl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 983 switch v := v.(*ACL); i { 984 case 0: 985 return &v.state 986 case 1: 987 return &v.sizeCache 988 case 2: 989 return &v.unknownFields 990 default: 991 return nil 992 } 993 } 994 file_ligato_vpp_acl_acl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 995 switch v := v.(*ACL_Rule); i { 996 case 0: 997 return &v.state 998 case 1: 999 return &v.sizeCache 1000 case 2: 1001 return &v.unknownFields 1002 default: 1003 return nil 1004 } 1005 } 1006 file_ligato_vpp_acl_acl_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1007 switch v := v.(*ACL_Interfaces); i { 1008 case 0: 1009 return &v.state 1010 case 1: 1011 return &v.sizeCache 1012 case 2: 1013 return &v.unknownFields 1014 default: 1015 return nil 1016 } 1017 } 1018 file_ligato_vpp_acl_acl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1019 switch v := v.(*ACL_Rule_IpRule); i { 1020 case 0: 1021 return &v.state 1022 case 1: 1023 return &v.sizeCache 1024 case 2: 1025 return &v.unknownFields 1026 default: 1027 return nil 1028 } 1029 } 1030 file_ligato_vpp_acl_acl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1031 switch v := v.(*ACL_Rule_MacIpRule); i { 1032 case 0: 1033 return &v.state 1034 case 1: 1035 return &v.sizeCache 1036 case 2: 1037 return &v.unknownFields 1038 default: 1039 return nil 1040 } 1041 } 1042 file_ligato_vpp_acl_acl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1043 switch v := v.(*ACL_Rule_IpRule_Ip); i { 1044 case 0: 1045 return &v.state 1046 case 1: 1047 return &v.sizeCache 1048 case 2: 1049 return &v.unknownFields 1050 default: 1051 return nil 1052 } 1053 } 1054 file_ligato_vpp_acl_acl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1055 switch v := v.(*ACL_Rule_IpRule_Icmp); i { 1056 case 0: 1057 return &v.state 1058 case 1: 1059 return &v.sizeCache 1060 case 2: 1061 return &v.unknownFields 1062 default: 1063 return nil 1064 } 1065 } 1066 file_ligato_vpp_acl_acl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1067 switch v := v.(*ACL_Rule_IpRule_PortRange); i { 1068 case 0: 1069 return &v.state 1070 case 1: 1071 return &v.sizeCache 1072 case 2: 1073 return &v.unknownFields 1074 default: 1075 return nil 1076 } 1077 } 1078 file_ligato_vpp_acl_acl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1079 switch v := v.(*ACL_Rule_IpRule_Tcp); i { 1080 case 0: 1081 return &v.state 1082 case 1: 1083 return &v.sizeCache 1084 case 2: 1085 return &v.unknownFields 1086 default: 1087 return nil 1088 } 1089 } 1090 file_ligato_vpp_acl_acl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1091 switch v := v.(*ACL_Rule_IpRule_Udp); i { 1092 case 0: 1093 return &v.state 1094 case 1: 1095 return &v.sizeCache 1096 case 2: 1097 return &v.unknownFields 1098 default: 1099 return nil 1100 } 1101 } 1102 file_ligato_vpp_acl_acl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1103 switch v := v.(*ACL_Rule_IpRule_Icmp_Range); i { 1104 case 0: 1105 return &v.state 1106 case 1: 1107 return &v.sizeCache 1108 case 2: 1109 return &v.unknownFields 1110 default: 1111 return nil 1112 } 1113 } 1114 } 1115 type x struct{} 1116 out := protoimpl.TypeBuilder{ 1117 File: protoimpl.DescBuilder{ 1118 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1119 RawDescriptor: file_ligato_vpp_acl_acl_proto_rawDesc, 1120 NumEnums: 1, 1121 NumMessages: 11, 1122 NumExtensions: 0, 1123 NumServices: 0, 1124 }, 1125 GoTypes: file_ligato_vpp_acl_acl_proto_goTypes, 1126 DependencyIndexes: file_ligato_vpp_acl_acl_proto_depIdxs, 1127 EnumInfos: file_ligato_vpp_acl_acl_proto_enumTypes, 1128 MessageInfos: file_ligato_vpp_acl_acl_proto_msgTypes, 1129 }.Build() 1130 File_ligato_vpp_acl_acl_proto = out.File 1131 file_ligato_vpp_acl_acl_proto_rawDesc = nil 1132 file_ligato_vpp_acl_acl_proto_goTypes = nil 1133 file_ligato_vpp_acl_acl_proto_depIdxs = nil 1134 }