go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/vpp/l3/route.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/route.proto
     6  
     7  package vpp_l3
     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 Route_RouteType int32
    25  
    26  const (
    27  	// Forwarding is being done in the specified vrf_id only, or according to
    28  	// the specified outgoing interface.
    29  	Route_INTRA_VRF Route_RouteType = 0
    30  	// Forwarding is being done by lookup into a different VRF,
    31  	// specified as via_vrf_id field. In case of these routes, the outgoing
    32  	// interface should not be specified. The next hop IP address
    33  	// does not have to be specified either, in that case VPP does full
    34  	// recursive lookup in the via_vrf_id VRF.
    35  	Route_INTER_VRF Route_RouteType = 1
    36  	// Drops the network communication designated for specific IP address.
    37  	Route_DROP Route_RouteType = 2
    38  )
    39  
    40  // Enum value maps for Route_RouteType.
    41  var (
    42  	Route_RouteType_name = map[int32]string{
    43  		0: "INTRA_VRF",
    44  		1: "INTER_VRF",
    45  		2: "DROP",
    46  	}
    47  	Route_RouteType_value = map[string]int32{
    48  		"INTRA_VRF": 0,
    49  		"INTER_VRF": 1,
    50  		"DROP":      2,
    51  	}
    52  )
    53  
    54  func (x Route_RouteType) Enum() *Route_RouteType {
    55  	p := new(Route_RouteType)
    56  	*p = x
    57  	return p
    58  }
    59  
    60  func (x Route_RouteType) String() string {
    61  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    62  }
    63  
    64  func (Route_RouteType) Descriptor() protoreflect.EnumDescriptor {
    65  	return file_ligato_vpp_l3_route_proto_enumTypes[0].Descriptor()
    66  }
    67  
    68  func (Route_RouteType) Type() protoreflect.EnumType {
    69  	return &file_ligato_vpp_l3_route_proto_enumTypes[0]
    70  }
    71  
    72  func (x Route_RouteType) Number() protoreflect.EnumNumber {
    73  	return protoreflect.EnumNumber(x)
    74  }
    75  
    76  // Deprecated: Use Route_RouteType.Descriptor instead.
    77  func (Route_RouteType) EnumDescriptor() ([]byte, []int) {
    78  	return file_ligato_vpp_l3_route_proto_rawDescGZIP(), []int{0, 0}
    79  }
    80  
    81  type Route struct {
    82  	state         protoimpl.MessageState
    83  	sizeCache     protoimpl.SizeCache
    84  	unknownFields protoimpl.UnknownFields
    85  
    86  	Type Route_RouteType `protobuf:"varint,10,opt,name=type,proto3,enum=ligato.vpp.l3.Route_RouteType" json:"type,omitempty"`
    87  	// VRF identifier, field required for remote client. This value should be
    88  	// consistent with VRF ID in static route key. If it is not, value from
    89  	// key will be preffered and this field will be overriden.
    90  	// Non-zero VRF has to be explicitly created (see api/models/vpp/l3/vrf.proto)
    91  	VrfId uint32 `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"`
    92  	// Destination network defined by IP address and prefix (format: <address>/<prefix>).
    93  	DstNetwork string `protobuf:"bytes,3,opt,name=dst_network,json=dstNetwork,proto3" json:"dst_network,omitempty"`
    94  	// Next hop address.
    95  	NextHopAddr string `protobuf:"bytes,4,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"`
    96  	// Interface name of the outgoing interface.
    97  	OutgoingInterface string `protobuf:"bytes,5,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
    98  	// Weight is used for unequal cost load balancing.
    99  	Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
   100  	// Preference defines path preference. Lower preference is preferred.
   101  	// Only paths with the best preference contribute to forwarding (a poor man's primary and backup).
   102  	Preference uint32 `protobuf:"varint,7,opt,name=preference,proto3" json:"preference,omitempty"`
   103  	// Specifies VRF ID for the next hop lookup / recursive lookup
   104  	ViaVrfId uint32 `protobuf:"varint,8,opt,name=via_vrf_id,json=viaVrfId,proto3" json:"via_vrf_id,omitempty"`
   105  }
   106  
   107  func (x *Route) Reset() {
   108  	*x = Route{}
   109  	if protoimpl.UnsafeEnabled {
   110  		mi := &file_ligato_vpp_l3_route_proto_msgTypes[0]
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		ms.StoreMessageInfo(mi)
   113  	}
   114  }
   115  
   116  func (x *Route) String() string {
   117  	return protoimpl.X.MessageStringOf(x)
   118  }
   119  
   120  func (*Route) ProtoMessage() {}
   121  
   122  func (x *Route) ProtoReflect() protoreflect.Message {
   123  	mi := &file_ligato_vpp_l3_route_proto_msgTypes[0]
   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 Route.ProtoReflect.Descriptor instead.
   135  func (*Route) Descriptor() ([]byte, []int) {
   136  	return file_ligato_vpp_l3_route_proto_rawDescGZIP(), []int{0}
   137  }
   138  
   139  func (x *Route) GetType() Route_RouteType {
   140  	if x != nil {
   141  		return x.Type
   142  	}
   143  	return Route_INTRA_VRF
   144  }
   145  
   146  func (x *Route) GetVrfId() uint32 {
   147  	if x != nil {
   148  		return x.VrfId
   149  	}
   150  	return 0
   151  }
   152  
   153  func (x *Route) GetDstNetwork() string {
   154  	if x != nil {
   155  		return x.DstNetwork
   156  	}
   157  	return ""
   158  }
   159  
   160  func (x *Route) GetNextHopAddr() string {
   161  	if x != nil {
   162  		return x.NextHopAddr
   163  	}
   164  	return ""
   165  }
   166  
   167  func (x *Route) GetOutgoingInterface() string {
   168  	if x != nil {
   169  		return x.OutgoingInterface
   170  	}
   171  	return ""
   172  }
   173  
   174  func (x *Route) GetWeight() uint32 {
   175  	if x != nil {
   176  		return x.Weight
   177  	}
   178  	return 0
   179  }
   180  
   181  func (x *Route) GetPreference() uint32 {
   182  	if x != nil {
   183  		return x.Preference
   184  	}
   185  	return 0
   186  }
   187  
   188  func (x *Route) GetViaVrfId() uint32 {
   189  	if x != nil {
   190  		return x.ViaVrfId
   191  	}
   192  	return 0
   193  }
   194  
   195  var File_ligato_vpp_l3_route_proto protoreflect.FileDescriptor
   196  
   197  var file_ligato_vpp_l3_route_proto_rawDesc = []byte{
   198  	0x0a, 0x19, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x2f,
   199  	0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6c, 0x69, 0x67,
   200  	0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x1a, 0x18, 0x6c, 0x69, 0x67, 0x61,
   201  	0x74, 0x6f, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
   202  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x02, 0x0a, 0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x32,
   203  	0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x6c,
   204  	0x69, 0x67, 0x61, 0x74, 0x6f, 0x2e, 0x76, 0x70, 0x70, 0x2e, 0x6c, 0x33, 0x2e, 0x52, 0x6f, 0x75,
   205  	0x74, 0x65, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
   206  	0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x76, 0x72, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
   207  	0x28, 0x0d, 0x52, 0x05, 0x76, 0x72, 0x66, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0b, 0x64, 0x73, 0x74,
   208  	0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05,
   209  	0x82, 0x7d, 0x02, 0x08, 0x04, 0x52, 0x0a, 0x64, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72,
   210  	0x6b, 0x12, 0x29, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x68, 0x6f, 0x70, 0x5f, 0x61, 0x64,
   211  	0x64, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x05, 0x82, 0x7d, 0x02, 0x08, 0x01, 0x52,
   212  	0x0b, 0x6e, 0x65, 0x78, 0x74, 0x48, 0x6f, 0x70, 0x41, 0x64, 0x64, 0x72, 0x12, 0x2d, 0x0a, 0x12,
   213  	0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
   214  	0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x75, 0x74, 0x67, 0x6f, 0x69,
   215  	0x6e, 0x67, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77,
   216  	0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x77, 0x65, 0x69,
   217  	0x67, 0x68, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
   218  	0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
   219  	0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x0a, 0x76, 0x69, 0x61, 0x5f, 0x76, 0x72, 0x66, 0x5f, 0x69,
   220  	0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x76, 0x69, 0x61, 0x56, 0x72, 0x66, 0x49,
   221  	0x64, 0x22, 0x33, 0x0a, 0x09, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0d,
   222  	0x0a, 0x09, 0x49, 0x4e, 0x54, 0x52, 0x41, 0x5f, 0x56, 0x52, 0x46, 0x10, 0x00, 0x12, 0x0d, 0x0a,
   223  	0x09, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x5f, 0x56, 0x52, 0x46, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
   224  	0x44, 0x52, 0x4f, 0x50, 0x10, 0x02, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x6c, 0x69, 0x67,
   225  	0x61, 0x74, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x70, 0x70, 0x2d, 0x61, 0x67, 0x65, 0x6e, 0x74,
   226  	0x2f, 0x76, 0x33, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6c, 0x69, 0x67, 0x61, 0x74, 0x6f,
   227  	0x2f, 0x76, 0x70, 0x70, 0x2f, 0x6c, 0x33, 0x3b, 0x76, 0x70, 0x70, 0x5f, 0x6c, 0x33, 0x62, 0x06,
   228  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   229  }
   230  
   231  var (
   232  	file_ligato_vpp_l3_route_proto_rawDescOnce sync.Once
   233  	file_ligato_vpp_l3_route_proto_rawDescData = file_ligato_vpp_l3_route_proto_rawDesc
   234  )
   235  
   236  func file_ligato_vpp_l3_route_proto_rawDescGZIP() []byte {
   237  	file_ligato_vpp_l3_route_proto_rawDescOnce.Do(func() {
   238  		file_ligato_vpp_l3_route_proto_rawDescData = protoimpl.X.CompressGZIP(file_ligato_vpp_l3_route_proto_rawDescData)
   239  	})
   240  	return file_ligato_vpp_l3_route_proto_rawDescData
   241  }
   242  
   243  var file_ligato_vpp_l3_route_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   244  var file_ligato_vpp_l3_route_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   245  var file_ligato_vpp_l3_route_proto_goTypes = []interface{}{
   246  	(Route_RouteType)(0), // 0: ligato.vpp.l3.Route.RouteType
   247  	(*Route)(nil),        // 1: ligato.vpp.l3.Route
   248  }
   249  var file_ligato_vpp_l3_route_proto_depIdxs = []int32{
   250  	0, // 0: ligato.vpp.l3.Route.type:type_name -> ligato.vpp.l3.Route.RouteType
   251  	1, // [1:1] is the sub-list for method output_type
   252  	1, // [1:1] is the sub-list for method input_type
   253  	1, // [1:1] is the sub-list for extension type_name
   254  	1, // [1:1] is the sub-list for extension extendee
   255  	0, // [0:1] is the sub-list for field type_name
   256  }
   257  
   258  func init() { file_ligato_vpp_l3_route_proto_init() }
   259  func file_ligato_vpp_l3_route_proto_init() {
   260  	if File_ligato_vpp_l3_route_proto != nil {
   261  		return
   262  	}
   263  	if !protoimpl.UnsafeEnabled {
   264  		file_ligato_vpp_l3_route_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   265  			switch v := v.(*Route); i {
   266  			case 0:
   267  				return &v.state
   268  			case 1:
   269  				return &v.sizeCache
   270  			case 2:
   271  				return &v.unknownFields
   272  			default:
   273  				return nil
   274  			}
   275  		}
   276  	}
   277  	type x struct{}
   278  	out := protoimpl.TypeBuilder{
   279  		File: protoimpl.DescBuilder{
   280  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   281  			RawDescriptor: file_ligato_vpp_l3_route_proto_rawDesc,
   282  			NumEnums:      1,
   283  			NumMessages:   1,
   284  			NumExtensions: 0,
   285  			NumServices:   0,
   286  		},
   287  		GoTypes:           file_ligato_vpp_l3_route_proto_goTypes,
   288  		DependencyIndexes: file_ligato_vpp_l3_route_proto_depIdxs,
   289  		EnumInfos:         file_ligato_vpp_l3_route_proto_enumTypes,
   290  		MessageInfos:      file_ligato_vpp_l3_route_proto_msgTypes,
   291  	}.Build()
   292  	File_ligato_vpp_l3_route_proto = out.File
   293  	file_ligato_vpp_l3_route_proto_rawDesc = nil
   294  	file_ligato_vpp_l3_route_proto_goTypes = nil
   295  	file_ligato_vpp_l3_route_proto_depIdxs = nil
   296  }