endpointlocation

package
v0.0.0-...-1768917 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MacType_name = map[int32]string{
		0:     "MAC_TYPE_UNSPECIFIED",
		1:     "MAC_TYPE_LEARNED_DYNAMIC",
		2:     "MAC_TYPE_LEARNED_SECURE",
		3:     "MAC_TYPE_CONFIGURED_DYNAMIC",
		4:     "MAC_TYPE_CONFIGURED_SECURE",
		5:     "MAC_TYPE_CONFIGURED_STATIC",
		6:     "MAC_TYPE_PEER_DYNAMIC",
		7:     "MAC_TYPE_PEER_STATIC",
		8:     "MAC_TYPE_PEER_SECURE",
		9:     "MAC_TYPE_LEARNED_REMOTE",
		10:    "MAC_TYPE_CONFIGURED_REMOTE",
		11:    "MAC_TYPE_RECEIVED_REMOTE",
		12:    "MAC_TYPE_PEER_LEARNED_REMOTE",
		13:    "MAC_TYPE_PEER_CONFIGURED_REMOTE",
		14:    "MAC_TYPE_PEER_RECEIVED_REMOTE",
		15:    "MAC_TYPE_EVPN_DYNAMIC_REMOTE",
		16:    "MAC_TYPE_EVPN_CONFIGURED_REMOTE",
		17:    "MAC_TYPE_PEER_EVPN_REMOTE",
		18:    "MAC_TYPE_CONFIGURED_ROUTER",
		19:    "MAC_TYPE_PEER_ROUTER",
		20:    "MAC_TYPE_EVPN_INTF_DYNAMIC",
		21:    "MAC_TYPE_EVPN_INTF_STATIC",
		22:    "MAC_TYPE_AUTHENTICATED",
		23:    "MAC_TYPE_PEER_AUTHENTICATED",
		24:    "MAC_TYPE_PENDING_SECURE",
		25:    "MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC",
		99999: "MAC_TYPE_OTHER",
	}
	MacType_value = map[string]int32{
		"MAC_TYPE_UNSPECIFIED":              0,
		"MAC_TYPE_LEARNED_DYNAMIC":          1,
		"MAC_TYPE_LEARNED_SECURE":           2,
		"MAC_TYPE_CONFIGURED_DYNAMIC":       3,
		"MAC_TYPE_CONFIGURED_SECURE":        4,
		"MAC_TYPE_CONFIGURED_STATIC":        5,
		"MAC_TYPE_PEER_DYNAMIC":             6,
		"MAC_TYPE_PEER_STATIC":              7,
		"MAC_TYPE_PEER_SECURE":              8,
		"MAC_TYPE_LEARNED_REMOTE":           9,
		"MAC_TYPE_CONFIGURED_REMOTE":        10,
		"MAC_TYPE_RECEIVED_REMOTE":          11,
		"MAC_TYPE_PEER_LEARNED_REMOTE":      12,
		"MAC_TYPE_PEER_CONFIGURED_REMOTE":   13,
		"MAC_TYPE_PEER_RECEIVED_REMOTE":     14,
		"MAC_TYPE_EVPN_DYNAMIC_REMOTE":      15,
		"MAC_TYPE_EVPN_CONFIGURED_REMOTE":   16,
		"MAC_TYPE_PEER_EVPN_REMOTE":         17,
		"MAC_TYPE_CONFIGURED_ROUTER":        18,
		"MAC_TYPE_PEER_ROUTER":              19,
		"MAC_TYPE_EVPN_INTF_DYNAMIC":        20,
		"MAC_TYPE_EVPN_INTF_STATIC":         21,
		"MAC_TYPE_AUTHENTICATED":            22,
		"MAC_TYPE_PEER_AUTHENTICATED":       23,
		"MAC_TYPE_PENDING_SECURE":           24,
		"MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC": 25,
		"MAC_TYPE_OTHER":                    99999,
	}
)

Enum value maps for MacType.

View Source
var (
	Likelihood_name = map[int32]string{
		0: "LIKELIHOOD_UNSPECIFIED",
		1: "LIKELIHOOD_VERY_LIKELY",
		2: "LIKELIHOOD_LIKELY",
		3: "LIKELIHOOD_SOMEWHAT_LIKELY",
		4: "LIKELIHOOD_LESS_LIKELY",
	}
	Likelihood_value = map[string]int32{
		"LIKELIHOOD_UNSPECIFIED":     0,
		"LIKELIHOOD_VERY_LIKELY":     1,
		"LIKELIHOOD_LIKELY":          2,
		"LIKELIHOOD_SOMEWHAT_LIKELY": 3,
		"LIKELIHOOD_LESS_LIKELY":     4,
	}
)

Enum value maps for Likelihood.

View Source
var (
	IdentifierType_name = map[int32]string{
		0:     "IDENTIFIER_TYPE_UNSPECIFIED",
		1:     "IDENTIFIER_TYPE_MAC_ADDR",
		2:     "IDENTIFIER_TYPE_IPV4_ADDR",
		3:     "IDENTIFIER_TYPE_IPV6_ADDR",
		4:     "IDENTIFIER_TYPE_INVENTORY_DEVICE_ID",
		5:     "IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP",
		6:     "IDENTIFIER_TYPE_HOSTNAME",
		7:     "IDENTIFIER_TYPE_USERNAME",
		99999: "IDENTIFIER_TYPE_OTHER",
	}
	IdentifierType_value = map[string]int32{
		"IDENTIFIER_TYPE_UNSPECIFIED":           0,
		"IDENTIFIER_TYPE_MAC_ADDR":              1,
		"IDENTIFIER_TYPE_IPV4_ADDR":             2,
		"IDENTIFIER_TYPE_IPV6_ADDR":             3,
		"IDENTIFIER_TYPE_INVENTORY_DEVICE_ID":   4,
		"IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP": 5,
		"IDENTIFIER_TYPE_HOSTNAME":              6,
		"IDENTIFIER_TYPE_USERNAME":              7,
		"IDENTIFIER_TYPE_OTHER":                 99999,
	}
)

Enum value maps for IdentifierType.

View Source
var (
	IdentifierSource_name = map[int32]string{
		0: "IDENTIFIER_SOURCE_UNSPECIFIED",
		1: "IDENTIFIER_SOURCE_FDB",
		2: "IDENTIFIER_SOURCE_ARP",
		3: "IDENTIFIER_SOURCE_NEIGHBOR",
		4: "IDENTIFIER_SOURCE_DEVICE_INVENTORY",
		5: "IDENTIFIER_SOURCE_LLDP",
		6: "IDENTIFIER_SOURCE_DHCP",
		7: "IDENTIFIER_SOURCE_WIFI",
	}
	IdentifierSource_value = map[string]int32{
		"IDENTIFIER_SOURCE_UNSPECIFIED":      0,
		"IDENTIFIER_SOURCE_FDB":              1,
		"IDENTIFIER_SOURCE_ARP":              2,
		"IDENTIFIER_SOURCE_NEIGHBOR":         3,
		"IDENTIFIER_SOURCE_DEVICE_INVENTORY": 4,
		"IDENTIFIER_SOURCE_LLDP":             5,
		"IDENTIFIER_SOURCE_DHCP":             6,
		"IDENTIFIER_SOURCE_WIFI":             7,
	}
)

Enum value maps for IdentifierSource.

View Source
var (
	Explanation_name = map[int32]string{
		0:  "EXPLANATION_UNSPECIFIED",
		1:  "EXPLANATION_DIRECT_CONNECTION",
		2:  "EXPLANATION_NON_INVENTORY_CONNECTION",
		3:  "EXPLANATION_NO_CONNECTION",
		4:  "EXPLANATION_INVENTORY_CONNECTION",
		5:  "EXPLANATION_OWN_PORT_INVENTORY_DEVICE",
		6:  "EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE",
		7:  "EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE",
		8:  "EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE",
		9:  "EXPLANATION_VIRTUAL",
		10: "EXPLANATION_WIRELESS_CONNECTION",
		11: "EXPLANATION_ACCESS_PORT",
	}
	Explanation_value = map[string]int32{
		"EXPLANATION_UNSPECIFIED":                        0,
		"EXPLANATION_DIRECT_CONNECTION":                  1,
		"EXPLANATION_NON_INVENTORY_CONNECTION":           2,
		"EXPLANATION_NO_CONNECTION":                      3,
		"EXPLANATION_INVENTORY_CONNECTION":               4,
		"EXPLANATION_OWN_PORT_INVENTORY_DEVICE":          5,
		"EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE": 6,
		"EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE":     7,
		"EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE":  8,
		"EXPLANATION_VIRTUAL":                            9,
		"EXPLANATION_WIRELESS_CONNECTION":                10,
		"EXPLANATION_ACCESS_PORT":                        11,
	}
)

Enum value maps for Explanation.

View Source
var (
	DeviceType_name = map[int32]string{
		0: "DEVICE_TYPE_UNSPECIFIED",
		1: "DEVICE_TYPE_INVENTORY",
		2: "DEVICE_TYPE_ENDPOINT",
		3: "DEVICE_TYPE_WIFI_ENDPOINT",
	}
	DeviceType_value = map[string]int32{
		"DEVICE_TYPE_UNSPECIFIED":   0,
		"DEVICE_TYPE_INVENTORY":     1,
		"DEVICE_TYPE_ENDPOINT":      2,
		"DEVICE_TYPE_WIFI_ENDPOINT": 3,
	}
)

Enum value maps for DeviceType.

View Source
var (
	DeviceStatus_name = map[int32]string{
		0: "DEVICE_STATUS_UNSPECIFIED",
		1: "DEVICE_STATUS_ACTIVE",
		2: "DEVICE_STATUS_INACTIVE",
	}
	DeviceStatus_value = map[string]int32{
		"DEVICE_STATUS_UNSPECIFIED": 0,
		"DEVICE_STATUS_ACTIVE":      1,
		"DEVICE_STATUS_INACTIVE":    2,
	}
)

Enum value maps for DeviceStatus.

View Source
var EndpointLocationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "arista.endpointlocation.v1.EndpointLocationService",
	HandlerType: (*EndpointLocationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOne",
			Handler:    _EndpointLocationService_GetOne_Handler,
		},
		{
			MethodName: "GetMeta",
			Handler:    _EndpointLocationService_GetMeta_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetSome",
			Handler:       _EndpointLocationService_GetSome_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetAll",
			Handler:       _EndpointLocationService_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Subscribe",
			Handler:       _EndpointLocationService_Subscribe_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeMeta",
			Handler:       _EndpointLocationService_SubscribeMeta_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "arista/endpointlocation.v1/services.gen.proto",
}

EndpointLocationService_ServiceDesc is the grpc.ServiceDesc for EndpointLocationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_arista_endpointlocation_v1_endpointlocation_proto protoreflect.FileDescriptor
View Source
var File_arista_endpointlocation_v1_services_gen_proto protoreflect.FileDescriptor

Functions

func RegisterEndpointLocationServiceServer

func RegisterEndpointLocationServiceServer(s grpc.ServiceRegistrar, srv EndpointLocationServiceServer)

Types

type Device

type Device struct {

	// identifier_list holds the unique identifiers for the device.
	IdentifierList *IdentifierList `protobuf:"bytes,1,opt,name=identifier_list,json=identifierList,proto3" json:"identifier_list,omitempty"`
	// device_type is the broad category of the device.
	DeviceType DeviceType `` /* 135-byte string literal not displayed */
	// location_list is the list of possible locations of the device.
	// It is ordered from most likely to least likely.
	LocationList *LocationList `protobuf:"bytes,3,opt,name=location_list,json=locationList,proto3" json:"location_list,omitempty"`
	// device_status is the network status of the device.
	DeviceStatus DeviceStatus `` /* 143-byte string literal not displayed */
	// device_info holds various attributes of the device.
	DeviceInfo *DeviceInfo `protobuf:"bytes,5,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
	// contains filtered or unexported fields
}

Device holds information for a device matching a search term.

func (*Device) Descriptor deprecated

func (*Device) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetDeviceInfo

func (x *Device) GetDeviceInfo() *DeviceInfo

func (*Device) GetDeviceStatus

func (x *Device) GetDeviceStatus() DeviceStatus

func (*Device) GetDeviceType

func (x *Device) GetDeviceType() DeviceType

func (*Device) GetIdentifierList

func (x *Device) GetIdentifierList() *IdentifierList

func (*Device) GetLocationList

func (x *Device) GetLocationList() *LocationList

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DeviceInfo

type DeviceInfo struct {

	// device_name is the name of the device.
	DeviceName *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
	// mobile indicates whether the device is a mobile.
	Mobile *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// tablet indicates whether the device is a tablet.
	Tablet *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=tablet,proto3" json:"tablet,omitempty"`
	// score is a value from 0 to 100 that indicates how confident we are
	// that the device has device_name.
	// Fingerbank API documentation of score: https://api.fingerbank.org/api_doc/2/combinations.html
	Score *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=score,proto3" json:"score,omitempty"`
	// version is the version of device_name.
	Version *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
	// mac_vendor is the enterprise that assigns the MAC address of the device.
	MacVendor *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=mac_vendor,json=macVendor,proto3" json:"mac_vendor,omitempty"`
	// classification is the broadest category to which device_name belongs.
	// This is the highest level in hierarchy.
	Classification *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=classification,proto3" json:"classification,omitempty"`
	// hierarchy is a list of categorizations of the device from most broad
	// to most specific. The first element is always classification and the
	// last element is always device_name.
	//
	// For example,
	//
	// ["VoIP Device", "FooInc VoIP", "FooInc PhoneSet IP", "FooInc PhoneSet IP Model123"]
	//
	// In this hierarchy, "VoIP Device" is classification and "FooInc PhoneSet IP Model123"
	// is device_name.
	Hierarchy *fmp.RepeatedString `protobuf:"bytes,8,opt,name=hierarchy,proto3" json:"hierarchy,omitempty"`
	// contains filtered or unexported fields
}

DeviceInfo holds various attributes of a device (typically an endpoint) from Fingerbank.

func (*DeviceInfo) Descriptor deprecated

func (*DeviceInfo) Descriptor() ([]byte, []int)

Deprecated: Use DeviceInfo.ProtoReflect.Descriptor instead.

func (*DeviceInfo) GetClassification

func (x *DeviceInfo) GetClassification() *wrapperspb.StringValue

func (*DeviceInfo) GetDeviceName

func (x *DeviceInfo) GetDeviceName() *wrapperspb.StringValue

func (*DeviceInfo) GetHierarchy

func (x *DeviceInfo) GetHierarchy() *fmp.RepeatedString

func (*DeviceInfo) GetMacVendor

func (x *DeviceInfo) GetMacVendor() *wrapperspb.StringValue

func (*DeviceInfo) GetMobile

func (x *DeviceInfo) GetMobile() *wrapperspb.BoolValue

func (*DeviceInfo) GetScore

func (x *DeviceInfo) GetScore() *wrapperspb.UInt32Value

func (*DeviceInfo) GetTablet

func (x *DeviceInfo) GetTablet() *wrapperspb.BoolValue

func (*DeviceInfo) GetVersion

func (x *DeviceInfo) GetVersion() *wrapperspb.StringValue

func (*DeviceInfo) ProtoMessage

func (*DeviceInfo) ProtoMessage()

func (*DeviceInfo) ProtoReflect

func (x *DeviceInfo) ProtoReflect() protoreflect.Message

func (*DeviceInfo) Reset

func (x *DeviceInfo) Reset()

func (*DeviceInfo) String

func (x *DeviceInfo) String() string

type DeviceMap

type DeviceMap struct {

	// values is a map from most specific identifier to Device.
	// The key could be device serial number or MAC address.
	Values map[string]*Device `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

DeviceMap is a collection of Device.

func (*DeviceMap) Descriptor deprecated

func (*DeviceMap) Descriptor() ([]byte, []int)

Deprecated: Use DeviceMap.ProtoReflect.Descriptor instead.

func (*DeviceMap) GetValues

func (x *DeviceMap) GetValues() map[string]*Device

func (*DeviceMap) ProtoMessage

func (*DeviceMap) ProtoMessage()

func (*DeviceMap) ProtoReflect

func (x *DeviceMap) ProtoReflect() protoreflect.Message

func (*DeviceMap) Reset

func (x *DeviceMap) Reset()

func (*DeviceMap) String

func (x *DeviceMap) String() string

type DeviceStatus

type DeviceStatus int32

DeviceStatus is the network status of a device.

const (
	// DEVICE_STATUS_UNSPECIFIED is the default unspecified device status.
	DeviceStatus_DEVICE_STATUS_UNSPECIFIED DeviceStatus = 0
	// DEVICE_STATUS_ACTIVE indicates a device is streaming its telemetry data
	// to CloudVision.
	DeviceStatus_DEVICE_STATUS_ACTIVE DeviceStatus = 1
	// DEVICE_STATUS_INACTIVE indicates a device is either not streaming its
	// telemetry data to CloudVision or has been decommissioned from CloudVision.
	DeviceStatus_DEVICE_STATUS_INACTIVE DeviceStatus = 2
)

func (DeviceStatus) Descriptor

func (DeviceStatus) Enum

func (x DeviceStatus) Enum() *DeviceStatus

func (DeviceStatus) EnumDescriptor deprecated

func (DeviceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceStatus.Descriptor instead.

func (DeviceStatus) Number

func (DeviceStatus) String

func (x DeviceStatus) String() string

func (DeviceStatus) Type

type DeviceType

type DeviceType int32

DeviceType defines a broad set of categories for all queried devices.

const (
	// DEVICE_TYPE_UNSPECIFIED is the default unspecified device type.
	DeviceType_DEVICE_TYPE_UNSPECIFIED DeviceType = 0
	// DEVICE_TYPE_INVENTORY indicates a device in the CloudVision inventory.
	DeviceType_DEVICE_TYPE_INVENTORY DeviceType = 1
	// DEVICE_TYPE_ENDPOINT indicates a non-WiFi endpoint that does not exist
	// in the CloudVision inventory.
	DeviceType_DEVICE_TYPE_ENDPOINT DeviceType = 2
	// DEVICE_TYPE_WIFI_ENDPOINT indicates a WiFi client/endpoint that does not
	// exist in the CloudVision inventory.
	DeviceType_DEVICE_TYPE_WIFI_ENDPOINT DeviceType = 3
)

func (DeviceType) Descriptor

func (DeviceType) Descriptor() protoreflect.EnumDescriptor

func (DeviceType) Enum

func (x DeviceType) Enum() *DeviceType

func (DeviceType) EnumDescriptor deprecated

func (DeviceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceType.Descriptor instead.

func (DeviceType) Number

func (x DeviceType) Number() protoreflect.EnumNumber

func (DeviceType) String

func (x DeviceType) String() string

func (DeviceType) Type

type EndpointLocation

type EndpointLocation struct {

	// key holds a search term used to locate an endpoint.
	Key *EndpointLocationKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// device_map holds the devices (and their potential locations)
	// that match the search term.
	DeviceMap *DeviceMap `protobuf:"bytes,2,opt,name=device_map,json=deviceMap,proto3" json:"device_map,omitempty"`
	// contains filtered or unexported fields
}

EndpointLocation is the entrypoint to searching for endpoints.

func (*EndpointLocation) Descriptor deprecated

func (*EndpointLocation) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocation.ProtoReflect.Descriptor instead.

func (*EndpointLocation) GetDeviceMap

func (x *EndpointLocation) GetDeviceMap() *DeviceMap

func (*EndpointLocation) GetKey

func (*EndpointLocation) ProtoMessage

func (*EndpointLocation) ProtoMessage()

func (*EndpointLocation) ProtoReflect

func (x *EndpointLocation) ProtoReflect() protoreflect.Message

func (*EndpointLocation) Reset

func (x *EndpointLocation) Reset()

func (*EndpointLocation) String

func (x *EndpointLocation) String() string

type EndpointLocationKey

type EndpointLocationKey struct {

	// search_term is used to match against identifiers on devices.
	// This could be a MAC/IP address, hostname, etc.
	SearchTerm *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=search_term,json=searchTerm,proto3" json:"search_term,omitempty"`
	// contains filtered or unexported fields
}

EndpointLocationKey holds a search term used to locate an endpoint.

func (*EndpointLocationKey) Descriptor deprecated

func (*EndpointLocationKey) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationKey.ProtoReflect.Descriptor instead.

func (*EndpointLocationKey) GetSearchTerm

func (x *EndpointLocationKey) GetSearchTerm() *wrapperspb.StringValue

func (*EndpointLocationKey) ProtoMessage

func (*EndpointLocationKey) ProtoMessage()

func (*EndpointLocationKey) ProtoReflect

func (x *EndpointLocationKey) ProtoReflect() protoreflect.Message

func (*EndpointLocationKey) Reset

func (x *EndpointLocationKey) Reset()

func (*EndpointLocationKey) String

func (x *EndpointLocationKey) String() string

type EndpointLocationRequest

type EndpointLocationRequest struct {

	// Key uniquely identifies a EndpointLocation instance to retrieve.
	// This value must be populated.
	Key *EndpointLocationKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Time indicates the time for which you are interested in the data.
	// If no time is given, the server will use the time at which it makes the request.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointLocationRequest) Descriptor deprecated

func (*EndpointLocationRequest) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationRequest.ProtoReflect.Descriptor instead.

func (*EndpointLocationRequest) GetKey

func (*EndpointLocationRequest) GetTime

func (*EndpointLocationRequest) ProtoMessage

func (*EndpointLocationRequest) ProtoMessage()

func (*EndpointLocationRequest) ProtoReflect

func (x *EndpointLocationRequest) ProtoReflect() protoreflect.Message

func (*EndpointLocationRequest) Reset

func (x *EndpointLocationRequest) Reset()

func (*EndpointLocationRequest) String

func (x *EndpointLocationRequest) String() string

type EndpointLocationResponse

type EndpointLocationResponse struct {

	// Value is the value requested.
	// This structure will be fully-populated as it exists in the datastore. If
	// optional fields were not given at creation, these fields will be empty or
	// set to default values.
	Value *EndpointLocation `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Time carries the (UTC) timestamp of the last-modification of the
	// EndpointLocation instance in this response.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointLocationResponse) Descriptor deprecated

func (*EndpointLocationResponse) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationResponse.ProtoReflect.Descriptor instead.

func (*EndpointLocationResponse) GetTime

func (*EndpointLocationResponse) GetValue

func (*EndpointLocationResponse) ProtoMessage

func (*EndpointLocationResponse) ProtoMessage()

func (*EndpointLocationResponse) ProtoReflect

func (x *EndpointLocationResponse) ProtoReflect() protoreflect.Message

func (*EndpointLocationResponse) Reset

func (x *EndpointLocationResponse) Reset()

func (*EndpointLocationResponse) String

func (x *EndpointLocationResponse) String() string

type EndpointLocationServiceClient

EndpointLocationServiceClient is the client API for EndpointLocationService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EndpointLocationServiceServer

EndpointLocationServiceServer is the server API for EndpointLocationService service. All implementations must embed UnimplementedEndpointLocationServiceServer for forward compatibility

type EndpointLocationService_GetAllClient

type EndpointLocationService_GetAllClient interface {
	Recv() (*EndpointLocationStreamResponse, error)
	grpc.ClientStream
}

type EndpointLocationService_GetAllServer

type EndpointLocationService_GetAllServer interface {
	Send(*EndpointLocationStreamResponse) error
	grpc.ServerStream
}

type EndpointLocationService_GetSomeClient

type EndpointLocationService_GetSomeClient interface {
	Recv() (*EndpointLocationSomeResponse, error)
	grpc.ClientStream
}

type EndpointLocationService_GetSomeServer

type EndpointLocationService_GetSomeServer interface {
	Send(*EndpointLocationSomeResponse) error
	grpc.ServerStream
}

type EndpointLocationService_SubscribeClient

type EndpointLocationService_SubscribeClient interface {
	Recv() (*EndpointLocationStreamResponse, error)
	grpc.ClientStream
}

type EndpointLocationService_SubscribeMetaClient

type EndpointLocationService_SubscribeMetaClient interface {
	Recv() (*MetaResponse, error)
	grpc.ClientStream
}

type EndpointLocationService_SubscribeMetaServer

type EndpointLocationService_SubscribeMetaServer interface {
	Send(*MetaResponse) error
	grpc.ServerStream
}

type EndpointLocationService_SubscribeServer

type EndpointLocationService_SubscribeServer interface {
	Send(*EndpointLocationStreamResponse) error
	grpc.ServerStream
}

type EndpointLocationSomeRequest

type EndpointLocationSomeRequest struct {
	Keys []*EndpointLocationKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// Time indicates the time for which you are interested in the data.
	// If no time is given, the server will use the time at which it makes the request.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointLocationSomeRequest) Descriptor deprecated

func (*EndpointLocationSomeRequest) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationSomeRequest.ProtoReflect.Descriptor instead.

func (*EndpointLocationSomeRequest) GetKeys

func (*EndpointLocationSomeRequest) GetTime

func (*EndpointLocationSomeRequest) ProtoMessage

func (*EndpointLocationSomeRequest) ProtoMessage()

func (*EndpointLocationSomeRequest) ProtoReflect

func (*EndpointLocationSomeRequest) Reset

func (x *EndpointLocationSomeRequest) Reset()

func (*EndpointLocationSomeRequest) String

func (x *EndpointLocationSomeRequest) String() string

type EndpointLocationSomeResponse

type EndpointLocationSomeResponse struct {

	// Value is the value requested.
	// This structure will be fully-populated as it exists in the datastore. If
	// optional fields were not given at creation, these fields will be empty or
	// set to default values.
	Value *EndpointLocation `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Error is an optional field.
	// It should be filled when there is an error in the GetSome process.
	Error *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Time  *timestamppb.Timestamp  `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointLocationSomeResponse) Descriptor deprecated

func (*EndpointLocationSomeResponse) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationSomeResponse.ProtoReflect.Descriptor instead.

func (*EndpointLocationSomeResponse) GetError

func (*EndpointLocationSomeResponse) GetTime

func (*EndpointLocationSomeResponse) GetValue

func (*EndpointLocationSomeResponse) ProtoMessage

func (*EndpointLocationSomeResponse) ProtoMessage()

func (*EndpointLocationSomeResponse) ProtoReflect

func (*EndpointLocationSomeResponse) Reset

func (x *EndpointLocationSomeResponse) Reset()

func (*EndpointLocationSomeResponse) String

type EndpointLocationStreamRequest

type EndpointLocationStreamRequest struct {

	// PartialEqFilter provides a way to server-side filter a GetAll/Subscribe.
	// This requires all provided fields to be equal to the response.
	//
	// While transparent to users, this field also allows services to optimize internal
	// subscriptions if filter(s) are sufficiently specific.
	PartialEqFilter []*EndpointLocation `protobuf:"bytes,1,rep,name=partial_eq_filter,json=partialEqFilter,proto3" json:"partial_eq_filter,omitempty"`
	// TimeRange allows limiting response data to within a specified time window.
	// If this field is populated, at least one of the two time fields are required.
	//
	// For GetAll, the fields start and end can be used as follows:
	//
	//   * end: Returns the state of each EndpointLocation at end.
	//     * Each EndpointLocation response is fully-specified (all fields set).
	//   * start: Returns the state of each EndpointLocation at start, followed by updates until now.
	//     * Each EndpointLocation response at start is fully-specified, but updates may be partial.
	//   * start and end: Returns the state of each EndpointLocation at start, followed by updates
	//     until end.
	//     * Each EndpointLocation response at start is fully-specified, but updates until end may
	//       be partial.
	//
	// This field is not allowed in the Subscribe RPC.
	Time *time.TimeBounds `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointLocationStreamRequest) Descriptor deprecated

func (*EndpointLocationStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationStreamRequest.ProtoReflect.Descriptor instead.

func (*EndpointLocationStreamRequest) GetPartialEqFilter

func (x *EndpointLocationStreamRequest) GetPartialEqFilter() []*EndpointLocation

func (*EndpointLocationStreamRequest) GetTime

func (*EndpointLocationStreamRequest) ProtoMessage

func (*EndpointLocationStreamRequest) ProtoMessage()

func (*EndpointLocationStreamRequest) ProtoReflect

func (*EndpointLocationStreamRequest) Reset

func (x *EndpointLocationStreamRequest) Reset()

func (*EndpointLocationStreamRequest) String

type EndpointLocationStreamResponse

type EndpointLocationStreamResponse struct {

	// Value is a value deemed relevant to the initiating request.
	// This structure will always have its key-field populated. Which other fields are
	// populated, and why, depends on the value of Operation and what triggered this notification.
	Value *EndpointLocation `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Time holds the timestamp of this EndpointLocation's last modification.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// Operation indicates how the EndpointLocation value in this response should be considered.
	// Under non-subscribe requests, this value should always be INITIAL. In a subscription,
	// once all initial data is streamed and the client begins to receive modification updates,
	// you should not see INITIAL again.
	Type subscriptions.Operation `protobuf:"varint,3,opt,name=type,proto3,enum=arista.subscriptions.Operation" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointLocationStreamResponse) Descriptor deprecated

func (*EndpointLocationStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use EndpointLocationStreamResponse.ProtoReflect.Descriptor instead.

func (*EndpointLocationStreamResponse) GetTime

func (*EndpointLocationStreamResponse) GetType

func (*EndpointLocationStreamResponse) GetValue

func (*EndpointLocationStreamResponse) ProtoMessage

func (*EndpointLocationStreamResponse) ProtoMessage()

func (*EndpointLocationStreamResponse) ProtoReflect

func (*EndpointLocationStreamResponse) Reset

func (x *EndpointLocationStreamResponse) Reset()

func (*EndpointLocationStreamResponse) String

type Explanation

type Explanation int32

Explanation defines the set of reasons for why a location has a certain likelihood. Some explanations apply to queried endpoints while others apply to queried devices in the CloudVision device inventory.

const (
	// EXPLANATION_UNSPECIFIED is the default unspecified explanation.
	Explanation_EXPLANATION_UNSPECIFIED Explanation = 0
	// EXPLANATION_DIRECT_CONNECTION indicates a direct connection to the queried
	// endpoint device discovered via LLDP.
	Explanation_EXPLANATION_DIRECT_CONNECTION Explanation = 1
	// EXPLANATION_NON_INVENTORY_CONNECTION indicates a direct connection to at least
	// one non-inventory device (likely discovered via LLDP).
	Explanation_EXPLANATION_NON_INVENTORY_CONNECTION Explanation = 2
	// EXPLANATION_NO_CONNECTION indicates that a location has no direct connection to
	// any known device.
	Explanation_EXPLANATION_NO_CONNECTION Explanation = 3
	// EXPLANATION_INVENTORY_CONNECTION indicates that all of a location's known connections
	// are to devices in the inventory.
	Explanation_EXPLANATION_INVENTORY_CONNECTION Explanation = 4
	// EXPLANATION_OWN_PORT_INVENTORY_DEVICE indicates a location on the queried inventory
	// device itself.
	Explanation_EXPLANATION_OWN_PORT_INVENTORY_DEVICE Explanation = 5
	// EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE indicates a direct connection to the
	// queried inventory device discovered via LLDP.
	Explanation_EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE Explanation = 6
	// EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE indicates that a location has no direct
	// connection to any known device (for queried inventory devices).
	Explanation_EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE Explanation = 7
	// EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE indicates that a location only has
	// connections to other devices besides the queried inventory device.
	Explanation_EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE Explanation = 8
	// EXPLANATION_VIRTUAL indicates that a location contains a virtual interface.
	Explanation_EXPLANATION_VIRTUAL Explanation = 9
	// EXPLANATION_WIRELESS_CONNECTION indicates a direct connection from a wireless access
	// point in the device inventory to a wireless client.
	Explanation_EXPLANATION_WIRELESS_CONNECTION Explanation = 10
	// EXPLANATION_ACCESS_PORT indicates that a location is an access port.
	Explanation_EXPLANATION_ACCESS_PORT Explanation = 11
)

func (Explanation) Descriptor

func (Explanation) Enum

func (x Explanation) Enum() *Explanation

func (Explanation) EnumDescriptor deprecated

func (Explanation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Explanation.Descriptor instead.

func (Explanation) Number

func (x Explanation) Number() protoreflect.EnumNumber

func (Explanation) String

func (x Explanation) String() string

func (Explanation) Type

type ExplanationList

type ExplanationList struct {

	// values is a list of unique Explanation. Currently, this will
	// always contain one value, but in the future it may contain
	// more.
	Values []Explanation `protobuf:"varint,1,rep,packed,name=values,proto3,enum=arista.endpointlocation.v1.Explanation" json:"values,omitempty"`
	// contains filtered or unexported fields
}

ExplanationList is a list of Explanation.

func (*ExplanationList) Descriptor deprecated

func (*ExplanationList) Descriptor() ([]byte, []int)

Deprecated: Use ExplanationList.ProtoReflect.Descriptor instead.

func (*ExplanationList) GetValues

func (x *ExplanationList) GetValues() []Explanation

func (*ExplanationList) ProtoMessage

func (*ExplanationList) ProtoMessage()

func (*ExplanationList) ProtoReflect

func (x *ExplanationList) ProtoReflect() protoreflect.Message

func (*ExplanationList) Reset

func (x *ExplanationList) Reset()

func (*ExplanationList) String

func (x *ExplanationList) String() string

type Identifier

type Identifier struct {

	// type is the identifier type corresponding to value.
	Type IdentifierType `protobuf:"varint,1,opt,name=type,proto3,enum=arista.endpointlocation.v1.IdentifierType" json:"type,omitempty"`
	// value is the string representation of the identifier. Its interpretation
	// depends on type.
	Value *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// source_list is the set of sources where this identifier was discovered.
	SourceList *IdentifierSourceList `protobuf:"bytes,3,opt,name=source_list,json=sourceList,proto3" json:"source_list,omitempty"`
	// contains filtered or unexported fields
}

Identifier holds device identification information.

func (*Identifier) Descriptor deprecated

func (*Identifier) Descriptor() ([]byte, []int)

Deprecated: Use Identifier.ProtoReflect.Descriptor instead.

func (*Identifier) GetSourceList

func (x *Identifier) GetSourceList() *IdentifierSourceList

func (*Identifier) GetType

func (x *Identifier) GetType() IdentifierType

func (*Identifier) GetValue

func (x *Identifier) GetValue() *wrapperspb.StringValue

func (*Identifier) ProtoMessage

func (*Identifier) ProtoMessage()

func (*Identifier) ProtoReflect

func (x *Identifier) ProtoReflect() protoreflect.Message

func (*Identifier) Reset

func (x *Identifier) Reset()

func (*Identifier) String

func (x *Identifier) String() string

type IdentifierList

type IdentifierList struct {

	// values is an unordered list of Identifier where each Identifier has a
	// unique type and value combination.
	Values []*Identifier `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

IdentifierList is a list of Identifier.

func (*IdentifierList) Descriptor deprecated

func (*IdentifierList) Descriptor() ([]byte, []int)

Deprecated: Use IdentifierList.ProtoReflect.Descriptor instead.

func (*IdentifierList) GetValues

func (x *IdentifierList) GetValues() []*Identifier

func (*IdentifierList) ProtoMessage

func (*IdentifierList) ProtoMessage()

func (*IdentifierList) ProtoReflect

func (x *IdentifierList) ProtoReflect() protoreflect.Message

func (*IdentifierList) Reset

func (x *IdentifierList) Reset()

func (*IdentifierList) String

func (x *IdentifierList) String() string

type IdentifierSource

type IdentifierSource int32

IdentifierSource defines the set of network protocols and other information sources where an identifier was found.

const (
	// IDENTIFIER_SOURCE_UNSPECIFIED is the default unspecified identifier source.
	IdentifierSource_IDENTIFIER_SOURCE_UNSPECIFIED IdentifierSource = 0
	// IDENTIFIER_SOURCE_FDB indicates a forwarding table.
	IdentifierSource_IDENTIFIER_SOURCE_FDB IdentifierSource = 1
	// IDENTIFIER_SOURCE_ARP indicates ARP (IPv4).
	IdentifierSource_IDENTIFIER_SOURCE_ARP IdentifierSource = 2
	// IDENTIFIER_SOURCE_NEIGHBOR indicates NDP (IPv6).
	IdentifierSource_IDENTIFIER_SOURCE_NEIGHBOR IdentifierSource = 3
	// IDENTIFIER_SOURCE_DEVICE_INVENTORY indicates that an endpoint is in the
	// CloudVision inventory.
	IdentifierSource_IDENTIFIER_SOURCE_DEVICE_INVENTORY IdentifierSource = 4
	// IDENTIFIER_SOURCE_LLDP indicates LLDP.
	IdentifierSource_IDENTIFIER_SOURCE_LLDP IdentifierSource = 5
	// IDENTIFIER_SOURCE_DHCP indicates DHCP.
	IdentifierSource_IDENTIFIER_SOURCE_DHCP IdentifierSource = 6
	// IDENTIFIER_SOURCE_WIFI indicates a WiFi endpoint that was learned through
	// a wireless manager.
	IdentifierSource_IDENTIFIER_SOURCE_WIFI IdentifierSource = 7
)

func (IdentifierSource) Descriptor

func (IdentifierSource) Enum

func (IdentifierSource) EnumDescriptor deprecated

func (IdentifierSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use IdentifierSource.Descriptor instead.

func (IdentifierSource) Number

func (IdentifierSource) String

func (x IdentifierSource) String() string

func (IdentifierSource) Type

type IdentifierSourceList

type IdentifierSourceList struct {

	// values is an unordered list of unique IdentifierSource.
	Values []IdentifierSource `protobuf:"varint,1,rep,packed,name=values,proto3,enum=arista.endpointlocation.v1.IdentifierSource" json:"values,omitempty"`
	// contains filtered or unexported fields
}

IdentifierSourceList is a list of IdentifierSource.

func (*IdentifierSourceList) Descriptor deprecated

func (*IdentifierSourceList) Descriptor() ([]byte, []int)

Deprecated: Use IdentifierSourceList.ProtoReflect.Descriptor instead.

func (*IdentifierSourceList) GetValues

func (x *IdentifierSourceList) GetValues() []IdentifierSource

func (*IdentifierSourceList) ProtoMessage

func (*IdentifierSourceList) ProtoMessage()

func (*IdentifierSourceList) ProtoReflect

func (x *IdentifierSourceList) ProtoReflect() protoreflect.Message

func (*IdentifierSourceList) Reset

func (x *IdentifierSourceList) Reset()

func (*IdentifierSourceList) String

func (x *IdentifierSourceList) String() string

type IdentifierType

type IdentifierType int32

IdentifierType defines the set of ways for identifying endpoints.

const (
	// IDENTIFIER_TYPE_UNSPECIFIED is the default unspecified identifier.
	IdentifierType_IDENTIFIER_TYPE_UNSPECIFIED IdentifierType = 0
	// IDENTIFIER_TYPE_MAC_ADDR indicates a MAC address identifier.
	IdentifierType_IDENTIFIER_TYPE_MAC_ADDR IdentifierType = 1
	// IDENTIFIER_TYPE_IPV4_ADDR indicates an IPv4 address identifier.
	IdentifierType_IDENTIFIER_TYPE_IPV4_ADDR IdentifierType = 2
	// IDENTIFIER_TYPE_IPV6_ADDR indicates an IPv6 address identifier.
	IdentifierType_IDENTIFIER_TYPE_IPV6_ADDR IdentifierType = 3
	// IDENTIFIER_TYPE_INVENTORY_DEVICE_ID indicates an inventory device identifier.
	IdentifierType_IDENTIFIER_TYPE_INVENTORY_DEVICE_ID IdentifierType = 4
	// IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP indicates a primary management IP identifier.
	IdentifierType_IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP IdentifierType = 5
	// IDENTIFIER_TYPE_HOSTNAME indicates a hostname identifier.
	IdentifierType_IDENTIFIER_TYPE_HOSTNAME IdentifierType = 6
	// IDENTIFIER_TYPE_USERNAME indicates a username identifier.
	IdentifierType_IDENTIFIER_TYPE_USERNAME IdentifierType = 7
	// IDENTIFIER_TYPE_OTHER is used for an unknown identifier.
	IdentifierType_IDENTIFIER_TYPE_OTHER IdentifierType = 99999
)

func (IdentifierType) Descriptor

func (IdentifierType) Enum

func (x IdentifierType) Enum() *IdentifierType

func (IdentifierType) EnumDescriptor deprecated

func (IdentifierType) EnumDescriptor() ([]byte, []int)

Deprecated: Use IdentifierType.Descriptor instead.

func (IdentifierType) Number

func (IdentifierType) String

func (x IdentifierType) String() string

func (IdentifierType) Type

type Likelihood

type Likelihood int32

Likelihood indicates a level of confidence.

const (
	// LIKELIHOOD_UNSPECIFIED is the default unspecified likelihood.
	Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0
	// LIKELIHOOD_VERY_LIKELY indicates very high confidence.
	Likelihood_LIKELIHOOD_VERY_LIKELY Likelihood = 1
	// LIKELIHOOD_LIKELY indicates high confidence.
	Likelihood_LIKELIHOOD_LIKELY Likelihood = 2
	// LIKELIHOOD_SOMEWHAT_LIKELY indicates medium confidence.
	Likelihood_LIKELIHOOD_SOMEWHAT_LIKELY Likelihood = 3
	// LIKELIHOOD_LESS_LIKELY indicates low confidence.
	Likelihood_LIKELIHOOD_LESS_LIKELY Likelihood = 4
)

func (Likelihood) Descriptor

func (Likelihood) Descriptor() protoreflect.EnumDescriptor

func (Likelihood) Enum

func (x Likelihood) Enum() *Likelihood

func (Likelihood) EnumDescriptor deprecated

func (Likelihood) EnumDescriptor() ([]byte, []int)

Deprecated: Use Likelihood.Descriptor instead.

func (Likelihood) Number

func (x Likelihood) Number() protoreflect.EnumNumber

func (Likelihood) String

func (x Likelihood) String() string

func (Likelihood) Type

type Location

type Location struct {

	// device_id identifies the device of the port.
	DeviceId *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// device_status is the status of the device identified by device_id.
	DeviceStatus DeviceStatus `` /* 143-byte string literal not displayed */
	// interface is the interface of the port.
	Interface *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"`
	// vlan_id identifies the VLAN of the port.
	VlanId *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"`
	// learned_time is when the port learned its identifiers.
	LearnedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=learned_time,json=learnedTime,proto3" json:"learned_time,omitempty"`
	// mac_type is how the port learned its MAC address identifier.
	MacType MacType `protobuf:"varint,6,opt,name=mac_type,json=macType,proto3,enum=arista.endpointlocation.v1.MacType" json:"mac_type,omitempty"`
	// likelihood is the probability level that the port is directly connected
	// to the queried endpoint.
	Likelihood Likelihood `protobuf:"varint,7,opt,name=likelihood,proto3,enum=arista.endpointlocation.v1.Likelihood" json:"likelihood,omitempty"`
	// explanation_list holds the reasons that the port was assigned likelihood.
	ExplanationList *ExplanationList `protobuf:"bytes,8,opt,name=explanation_list,json=explanationList,proto3" json:"explanation_list,omitempty"`
	// identifier_list holds the discovered identifiers of the port.
	IdentifierList *IdentifierList `protobuf:"bytes,9,opt,name=identifier_list,json=identifierList,proto3" json:"identifier_list,omitempty"`
	// contains filtered or unexported fields
}

Location is a port (device_id, interface, vlan_id) on which at least one identifier has been discovered.

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetDeviceId

func (x *Location) GetDeviceId() *wrapperspb.StringValue

func (*Location) GetDeviceStatus

func (x *Location) GetDeviceStatus() DeviceStatus

func (*Location) GetExplanationList

func (x *Location) GetExplanationList() *ExplanationList

func (*Location) GetIdentifierList

func (x *Location) GetIdentifierList() *IdentifierList

func (*Location) GetInterface

func (x *Location) GetInterface() *wrapperspb.StringValue

func (*Location) GetLearnedTime

func (x *Location) GetLearnedTime() *timestamppb.Timestamp

func (*Location) GetLikelihood

func (x *Location) GetLikelihood() Likelihood

func (*Location) GetMacType

func (x *Location) GetMacType() MacType

func (*Location) GetVlanId

func (x *Location) GetVlanId() *wrapperspb.UInt32Value

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type LocationList

type LocationList struct {

	// values is a list of unique Location.
	Values []*Location `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

LocationList is a list of Location.

func (*LocationList) Descriptor deprecated

func (*LocationList) Descriptor() ([]byte, []int)

Deprecated: Use LocationList.ProtoReflect.Descriptor instead.

func (*LocationList) GetValues

func (x *LocationList) GetValues() []*Location

func (*LocationList) ProtoMessage

func (*LocationList) ProtoMessage()

func (*LocationList) ProtoReflect

func (x *LocationList) ProtoReflect() protoreflect.Message

func (*LocationList) Reset

func (x *LocationList) Reset()

func (*LocationList) String

func (x *LocationList) String() string

type MacType

type MacType int32

MacType describes how the MAC address was learned on the port location.

const (
	// MAC_TYPE_UNSPECIFIED is the default unspecified MAC type.
	MacType_MAC_TYPE_UNSPECIFIED MacType = 0
	// MAC_TYPE_LEARNED_DYNAMIC indicates a MAC that is dynamically learned in hardware.
	MacType_MAC_TYPE_LEARNED_DYNAMIC MacType = 1
	// MAC_TYPE_LEARNED_SECURE indicates a MAC that is learned in hardware on a port-security protect interface.
	MacType_MAC_TYPE_LEARNED_SECURE MacType = 2
	// MAC_TYPE_CONFIGURED_DYNAMIC indicates a configured dynamic MAC.
	MacType_MAC_TYPE_CONFIGURED_DYNAMIC MacType = 3
	// MAC_TYPE_CONFIGURED_SECURE indicates a MAC configured on an interface with Port Security: Protect mode enabled
	MacType_MAC_TYPE_CONFIGURED_SECURE MacType = 4
	// MAC_TYPE_CONFIGURED_STATIC indicates a statically configured MAC.
	MacType_MAC_TYPE_CONFIGURED_STATIC MacType = 5
	// MAC_TYPE_PEER_DYNAMIC indicates a dynamically learned MAC discovered via an MLAG peer.
	MacType_MAC_TYPE_PEER_DYNAMIC MacType = 6
	// MAC_TYPE_PEER_STATIC indicates a statically configured MAC discovered via an MLAG peer.
	MacType_MAC_TYPE_PEER_STATIC MacType = 7
	// MAC_TYPE_PEER_SECURE indicates a secure MAC learned from an MLAG peer.
	MacType_MAC_TYPE_PEER_SECURE MacType = 8
	// MAC_TYPE_LEARNED_REMOTE indicates a MAC learned remotely behind a VxLAN VTEP.
	MacType_MAC_TYPE_LEARNED_REMOTE MacType = 9
	// MAC_TYPE_CONFIGURED_REMOTE indicates a MAC configured behind a VxLAN VTEP.
	MacType_MAC_TYPE_CONFIGURED_REMOTE MacType = 10
	// MAC_TYPE_RECEIVED_REMOTE indicates a MAC received from a VxLAN controller.
	MacType_MAC_TYPE_RECEIVED_REMOTE MacType = 11
	// MAC_TYPE_PEER_LEARNED_REMOTE indicates a remote MAC learned on a peer VTEP.
	MacType_MAC_TYPE_PEER_LEARNED_REMOTE MacType = 12
	// MAC_TYPE_PEER_CONFIGURED_REMOTE indicates an MLAG peer configured remote MAC.
	MacType_MAC_TYPE_PEER_CONFIGURED_REMOTE MacType = 13
	// MAC_TYPE_PEER_RECEIVED_REMOTE indicates a remote MAC received from a VxLAN controller by the MLAG peer.
	MacType_MAC_TYPE_PEER_RECEIVED_REMOTE MacType = 14
	// MAC_TYPE_EVPN_DYNAMIC_REMOTE indicates an EVPN dynamic remote MAC.
	MacType_MAC_TYPE_EVPN_DYNAMIC_REMOTE MacType = 15
	// MAC_TYPE_EVPN_CONFIGURED_REMOTE indicates an EVPN configured remote MAC.
	MacType_MAC_TYPE_EVPN_CONFIGURED_REMOTE MacType = 16
	// MAC_TYPE_PEER_EVPN_REMOTE indicates an MLAG peer EVPN remote MAC.
	MacType_MAC_TYPE_PEER_EVPN_REMOTE MacType = 17
	// MAC_TYPE_CONFIGURED_ROUTER indicates a configured MAC used in routing.
	MacType_MAC_TYPE_CONFIGURED_ROUTER MacType = 18
	// MAC_TYPE_PEER_ROUTER indicates an MLAG peer specific router MAC.
	MacType_MAC_TYPE_PEER_ROUTER MacType = 19
	// MAC_TYPE_EVPN_INTF_DYNAMIC indicates a MAC advertised by EVPN when a dynamic MAC is learned on ESI (Ethernet Segment Identifier).
	MacType_MAC_TYPE_EVPN_INTF_DYNAMIC MacType = 20
	// MAC_TYPE_EVPN_INTF_STATIC indicates a MAC configured on EVPN ESI.
	MacType_MAC_TYPE_EVPN_INTF_STATIC MacType = 21
	// MAC_TYPE_AUTHENTICATED indicates a MAC authenticated via 802.1X.
	MacType_MAC_TYPE_AUTHENTICATED MacType = 22
	// MAC_TYPE_PEER_AUTHENTICATED indicates a MAC authenticated by 802.1X and learned on an MLAG peer.
	MacType_MAC_TYPE_PEER_AUTHENTICATED MacType = 23
	// MAC_TYPE_PENDING_SECURE indicates a secure MAC in a pending state.
	MacType_MAC_TYPE_PENDING_SECURE MacType = 24
	// MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC indicates a MAC learned behind VTEP in software in the case of a VxLAN remote MAC.
	MacType_MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC MacType = 25
	// MAC_TYPE_OTHER is used for capturing future MAC types.
	MacType_MAC_TYPE_OTHER MacType = 99999
)

func (MacType) Descriptor

func (MacType) Descriptor() protoreflect.EnumDescriptor

func (MacType) Enum

func (x MacType) Enum() *MacType

func (MacType) EnumDescriptor deprecated

func (MacType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MacType.Descriptor instead.

func (MacType) Number

func (x MacType) Number() protoreflect.EnumNumber

func (MacType) String

func (x MacType) String() string

func (MacType) Type

func (MacType) Type() protoreflect.EnumType

type MetaResponse

type MetaResponse struct {

	// Time holds the timestamp of the last item included in the metadata calculation.
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// Operation indicates how the value in this response should be considered.
	// Under non-subscribe requests, this value should always be INITIAL. In a subscription,
	// once all initial data is streamed and the client begins to receive modification updates,
	// you should not see INITIAL again.
	Type subscriptions.Operation `protobuf:"varint,2,opt,name=type,proto3,enum=arista.subscriptions.Operation" json:"type,omitempty"`
	// Count is the number of items present under the conditions of the request.
	Count *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaResponse) Descriptor deprecated

func (*MetaResponse) Descriptor() ([]byte, []int)

Deprecated: Use MetaResponse.ProtoReflect.Descriptor instead.

func (*MetaResponse) GetCount

func (x *MetaResponse) GetCount() *wrapperspb.UInt32Value

func (*MetaResponse) GetTime

func (x *MetaResponse) GetTime() *timestamppb.Timestamp

func (*MetaResponse) GetType

func (x *MetaResponse) GetType() subscriptions.Operation

func (*MetaResponse) ProtoMessage

func (*MetaResponse) ProtoMessage()

func (*MetaResponse) ProtoReflect

func (x *MetaResponse) ProtoReflect() protoreflect.Message

func (*MetaResponse) Reset

func (x *MetaResponse) Reset()

func (*MetaResponse) String

func (x *MetaResponse) String() string

type UnimplementedEndpointLocationServiceServer

type UnimplementedEndpointLocationServiceServer struct {
}

UnimplementedEndpointLocationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedEndpointLocationServiceServer) GetMeta

func (UnimplementedEndpointLocationServiceServer) GetOne

type UnsafeEndpointLocationServiceServer

type UnsafeEndpointLocationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEndpointLocationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EndpointLocationServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL