go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/abf/abf.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/abf/abf.proto
     6  
     7  package vpp_abf
     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  // ABF defines ACL based forwarding.
    25  type ABF struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	Index              uint32                   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`                   // ABF index (unique identifier)
    31  	AclName            string                   `protobuf:"bytes,2,opt,name=acl_name,json=aclName,proto3" json:"acl_name,omitempty"` // Name of the associated access list
    32  	AttachedInterfaces []*ABF_AttachedInterface `protobuf:"bytes,3,rep,name=attached_interfaces,json=attachedInterfaces,proto3" json:"attached_interfaces,omitempty"`
    33  	ForwardingPaths    []*ABF_ForwardingPath    `protobuf:"bytes,4,rep,name=forwarding_paths,json=forwardingPaths,proto3" json:"forwarding_paths,omitempty"`
    34  }
    35  
    36  func (x *ABF) Reset() {
    37  	*x = ABF{}
    38  	if protoimpl.UnsafeEnabled {
    39  		mi := &file_ligato_vpp_abf_abf_proto_msgTypes[0]
    40  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  		ms.StoreMessageInfo(mi)
    42  	}
    43  }
    44  
    45  func (x *ABF) String() string {
    46  	return protoimpl.X.MessageStringOf(x)
    47  }
    48  
    49  func (*ABF) ProtoMessage() {}
    50  
    51  func (x *ABF) ProtoReflect() protoreflect.Message {
    52  	mi := &file_ligato_vpp_abf_abf_proto_msgTypes[0]
    53  	if protoimpl.UnsafeEnabled && x != nil {
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		if ms.LoadMessageInfo() == nil {
    56  			ms.StoreMessageInfo(mi)
    57  		}
    58  		return ms
    59  	}
    60  	return mi.MessageOf(x)
    61  }
    62  
    63  // Deprecated: Use ABF.ProtoReflect.Descriptor instead.
    64  func (*ABF) Descriptor() ([]byte, []int) {
    65  	return file_ligato_vpp_abf_abf_proto_rawDescGZIP(), []int{0}
    66  }
    67  
    68  func (x *ABF) GetIndex() uint32 {
    69  	if x != nil {
    70  		return x.Index
    71  	}
    72  	return 0
    73  }
    74  
    75  func (x *ABF) GetAclName() string {
    76  	if x != nil {
    77  		return x.AclName
    78  	}
    79  	return ""
    80  }
    81  
    82  func (x *ABF) GetAttachedInterfaces() []*ABF_AttachedInterface {
    83  	if x != nil {
    84  		return x.AttachedInterfaces
    85  	}
    86  	return nil
    87  }
    88  
    89  func (x *ABF) GetForwardingPaths() []*ABF_ForwardingPath {
    90  	if x != nil {
    91  		return x.ForwardingPaths
    92  	}
    93  	return nil
    94  }
    95  
    96  // List of interfaces attached to the ABF
    97  type ABF_AttachedInterface struct {
    98  	state         protoimpl.MessageState
    99  	sizeCache     protoimpl.SizeCache
   100  	unknownFields protoimpl.UnknownFields
   101  
   102  	InputInterface string `protobuf:"bytes,1,opt,name=input_interface,json=inputInterface,proto3" json:"input_interface,omitempty"`
   103  	Priority       uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"`
   104  	IsIpv6         bool   `protobuf:"varint,3,opt,name=is_ipv6,json=isIpv6,proto3" json:"is_ipv6,omitempty"`
   105  }
   106  
   107  func (x *ABF_AttachedInterface) Reset() {
   108  	*x = ABF_AttachedInterface{}
   109  	if protoimpl.UnsafeEnabled {
   110  		mi := &file_ligato_vpp_abf_abf_proto_msgTypes[1]
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		ms.StoreMessageInfo(mi)
   113  	}
   114  }
   115  
   116  func (x *ABF_AttachedInterface) String() string {
   117  	return protoimpl.X.MessageStringOf(x)
   118  }
   119  
   120  func (*ABF_AttachedInterface) ProtoMessage() {}
   121  
   122  func (x *ABF_AttachedInterface) ProtoReflect() protoreflect.Message {
   123  	mi := &file_ligato_vpp_abf_abf_proto_msgTypes[1]
   124  	if protoimpl.UnsafeEnabled && x != nil {
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		if ms.LoadMessageInfo() == nil {
   127  			ms.StoreMessageInfo(mi)
   128  		}
   129  		return ms
   130  	}
   131  	return mi.MessageOf(x)
   132  }
   133  
   134  // Deprecated: Use ABF_AttachedInterface.ProtoReflect.Descriptor instead.
   135  func (*ABF_AttachedInterface) Descriptor() ([]byte, []int) {
   136  	return file_ligato_vpp_abf_abf_proto_rawDescGZIP(), []int{0, 0}
   137  }
   138  
   139  func (x *ABF_AttachedInterface) GetInputInterface() string {
   140  	if x != nil {
   141  		return x.InputInterface
   142  	}
   143  	return ""
   144  }
   145  
   146  func (x *ABF_AttachedInterface) GetPriority() uint32 {
   147  	if x != nil {
   148  		return x.Priority
   149  	}
   150  	return 0
   151  }
   152  
   153  func (x *ABF_AttachedInterface) GetIsIpv6() bool {
   154  	if x != nil {
   155  		return x.IsIpv6
   156  	}
   157  	return false
   158  }
   159  
   160  // List of forwarding paths added to the ABF policy (via)
   161  type ABF_ForwardingPath struct {
   162  	state         protoimpl.MessageState
   163  	sizeCache     protoimpl.SizeCache
   164  	unknownFields protoimpl.UnknownFields
   165  
   166  	NextHopIp     string `protobuf:"bytes,1,opt,name=next_hop_ip,json=nextHopIp,proto3" json:"next_hop_ip,omitempty"`
   167  	InterfaceName string `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
   168  	Weight        uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
   169  	Preference    uint32 `protobuf:"varint,4,opt,name=preference,proto3" json:"preference,omitempty"`
   170  	Dvr           bool   `protobuf:"varint,5,opt,name=dvr,proto3" json:"dvr,omitempty"`
   171  }
   172  
   173  func (x *ABF_ForwardingPath) Reset() {
   174  	*x = ABF_ForwardingPath{}
   175  	if protoimpl.UnsafeEnabled {
   176  		mi := &file_ligato_vpp_abf_abf_proto_msgTypes[2]
   177  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   178  		ms.StoreMessageInfo(mi)
   179  	}
   180  }
   181  
   182  func (x *ABF_ForwardingPath) String() string {
   183  	return protoimpl.X.MessageStringOf(x)
   184  }
   185  
   186  func (*ABF_ForwardingPath) ProtoMessage() {}
   187  
   188  func (x *ABF_ForwardingPath) ProtoReflect() protoreflect.Message {
   189  	mi := &file_ligato_vpp_abf_abf_proto_msgTypes[2]
   190  	if protoimpl.UnsafeEnabled && x != nil {
   191  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   192  		if ms.LoadMessageInfo() == nil {
   193  			ms.StoreMessageInfo(mi)
   194  		}
   195  		return ms
   196  	}
   197  	return mi.MessageOf(x)
   198  }
   199  
   200  // Deprecated: Use ABF_ForwardingPath.ProtoReflect.Descriptor instead.
   201  func (*ABF_ForwardingPath) Descriptor() ([]byte, []int) {
   202  	return file_ligato_vpp_abf_abf_proto_rawDescGZIP(), []int{0, 1}
   203  }
   204  
   205  func (x *ABF_ForwardingPath) GetNextHopIp() string {
   206  	if x != nil {
   207  		return x.NextHopIp
   208  	}
   209  	return ""
   210  }
   211  
   212  func (x *ABF_ForwardingPath) GetInterfaceName() string {
   213  	if x != nil {
   214  		return x.InterfaceName
   215  	}
   216  	return ""
   217  }
   218  
   219  func (x *ABF_ForwardingPath) GetWeight() uint32 {
   220  	if x != nil {
   221  		return x.Weight
   222  	}
   223  	return 0
   224  }
   225  
   226  func (x *ABF_ForwardingPath) GetPreference() uint32 {
   227  	if x != nil {
   228  		return x.Preference
   229  	}
   230  	return 0
   231  }
   232  
   233  func (x *ABF_ForwardingPath) GetDvr() bool {
   234  	if x != nil {
   235  		return x.Dvr
   236  	}
   237  	return false
   238  }
   239  
   240  var File_ligato_vpp_abf_abf_proto protoreflect.FileDescriptor
   241  
   242  var file_ligato_vpp_abf_abf_proto_rawDesc = []byte{
   243  	0x0a, 0x18, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x61, 0x62, 0x66,
   244  	0x2f, 0x61, 0x62, 0x66, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x6c, 0x69, 0x67, 0x61,
   245  	0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x62, 0x66, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61,
   246  	0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
   247  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfb, 0x03, 0x0a, 0x03, 0x41, 0x42, 0x46, 0x12, 0x14, 0x0a, 0x05,
   248  	0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64,
   249  	0x65, 0x78, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x63, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
   250  	0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x56, 0x0a,
   251  	0x13, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66,
   252  	0x61, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6c, 0x69, 0x67,
   253  	0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x62, 0x66, 0x2e, 0x41, 0x42, 0x46, 0x2e,
   254  	0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63,
   255  	0x65, 0x52, 0x12, 0x61, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72,
   256  	0x66, 0x61, 0x63, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x10, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64,
   257  	0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
   258  	0x22, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x61, 0x62, 0x66,
   259  	0x2e, 0x41, 0x42, 0x46, 0x2e, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x50,
   260  	0x61, 0x74, 0x68, 0x52, 0x0f, 0x66, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x50,
   261  	0x61, 0x74, 0x68, 0x73, 0x1a, 0x71, 0x0a, 0x11, 0x41, 0x74, 0x74, 0x61, 0x63, 0x68, 0x65, 0x64,
   262  	0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x70,
   263  	0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01,
   264  	0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
   265  	0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, 0x02,
   266  	0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x17,
   267  	0x0a, 0x07, 0x69, 0x73, 0x5f, 0x69, 0x70, 0x76, 0x36, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
   268  	0x06, 0x69, 0x73, 0x49, 0x70, 0x76, 0x36, 0x1a, 0xa8, 0x01, 0x0a, 0x0e, 0x46, 0x6f, 0x72, 0x77,
   269  	0x61, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0b, 0x6e, 0x65,
   270  	0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
   271  	0x05, 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x49,
   272  	0x70, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x6e,
   273  	0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72,
   274  	0x66, 0x61, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67,
   275  	0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74,
   276  	0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04,
   277  	0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
   278  	0x12, 0x10, 0x0a, 0x03, 0x64, 0x76, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x64,
   279  	0x76, 0x72, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e,
   280  	0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x33, 0x2f,
   281  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70,
   282  	0x2f, 0x61, 0x62, 0x66, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x61, 0x62, 0x66, 0x62, 0x06, 0x70, 0x72,
   283  	0x6f, 0x74, 0x6f, 0x33,
   284  }
   285  
   286  var (
   287  	file_ligato_vpp_abf_abf_proto_rawDescOnce sync.Once
   288  	file_ligato_vpp_abf_abf_proto_rawDescData = file_ligato_vpp_abf_abf_proto_rawDesc
   289  )
   290  
   291  func file_ligato_vpp_abf_abf_proto_rawDescGZIP() []byte {
   292  	file_ligato_vpp_abf_abf_proto_rawDescOnce.Do(func() {
   293  		file_ligato_vpp_abf_abf_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_abf_abf_proto_rawDescData)
   294  	})
   295  	return file_ligato_vpp_abf_abf_proto_rawDescData
   296  }
   297  
   298  var file_ligato_vpp_abf_abf_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   299  var file_ligato_vpp_abf_abf_proto_goTypes = []interface{}{
   300  	(*ABF)(nil),                   // 0: ligato.vpp.abf.ABF
   301  	(*ABF_AttachedInterface)(nil), // 1: ligato.vpp.abf.ABF.AttachedInterface
   302  	(*ABF_ForwardingPath)(nil),    // 2: ligato.vpp.abf.ABF.ForwardingPath
   303  }
   304  var file_ligato_vpp_abf_abf_proto_depIdxs = []int32{
   305  	1, // 0: ligato.vpp.abf.ABF.attached_interfaces:type_name -> ligato.vpp.abf.ABF.AttachedInterface
   306  	2, // 1: ligato.vpp.abf.ABF.forwarding_paths:type_name -> ligato.vpp.abf.ABF.ForwardingPath
   307  	2, // [2:2] is the sub-list for method output_type
   308  	2, // [2:2] is the sub-list for method input_type
   309  	2, // [2:2] is the sub-list for extension type_name
   310  	2, // [2:2] is the sub-list for extension extendee
   311  	0, // [0:2] is the sub-list for field type_name
   312  }
   313  
   314  func init() { file_ligato_vpp_abf_abf_proto_init() }
   315  func file_ligato_vpp_abf_abf_proto_init() {
   316  	if File_ligato_vpp_abf_abf_proto != nil {
   317  		return
   318  	}
   319  	if !protoimpl.UnsafeEnabled {
   320  		file_ligato_vpp_abf_abf_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   321  			switch v := v.(*ABF); i {
   322  			case 0:
   323  				return &v.state
   324  			case 1:
   325  				return &v.sizeCache
   326  			case 2:
   327  				return &v.unknownFields
   328  			default:
   329  				return nil
   330  			}
   331  		}
   332  		file_ligato_vpp_abf_abf_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   333  			switch v := v.(*ABF_AttachedInterface); i {
   334  			case 0:
   335  				return &v.state
   336  			case 1:
   337  				return &v.sizeCache
   338  			case 2:
   339  				return &v.unknownFields
   340  			default:
   341  				return nil
   342  			}
   343  		}
   344  		file_ligato_vpp_abf_abf_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   345  			switch v := v.(*ABF_ForwardingPath); i {
   346  			case 0:
   347  				return &v.state
   348  			case 1:
   349  				return &v.sizeCache
   350  			case 2:
   351  				return &v.unknownFields
   352  			default:
   353  				return nil
   354  			}
   355  		}
   356  	}
   357  	type x struct{}
   358  	out := protoimpl.TypeBuilder{
   359  		File: protoimpl.DescBuilder{
   360  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   361  			RawDescriptor: file_ligato_vpp_abf_abf_proto_rawDesc,
   362  			NumEnums:      0,
   363  			NumMessages:   3,
   364  			NumExtensions: 0,
   365  			NumServices:   0,
   366  		},
   367  		GoTypes:           file_ligato_vpp_abf_abf_proto_goTypes,
   368  		DependencyIndexes: file_ligato_vpp_abf_abf_proto_depIdxs,
   369  		MessageInfos:      file_ligato_vpp_abf_abf_proto_msgTypes,
   370  	}.Build()
   371  	File_ligato_vpp_abf_abf_proto = out.File
   372  	file_ligato_vpp_abf_abf_proto_rawDesc = nil
   373  	file_ligato_vpp_abf_abf_proto_goTypes = nil
   374  	file_ligato_vpp_abf_abf_proto_depIdxs = nil
   375  }