bfd

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SessionPrefix bfd-session/
	SessionPrefix = "vpp/config/v1/bfd/session/"
	// AuthKeysPrefix bfd-key/
	AuthKeysPrefix = "vpp/config/v1/bfd/auth-key/"
	// EchoFunctionPrefix bfd-echo-function/
	EchoFunctionPrefix = "vpp/config/v1/bfd/echo-function/"
)

Variables

View Source
var SingleHopBFD_Key_AuthenticationType_name = map[int32]string{
	0: "KEYED_SHA1",
	1: "METICULOUS_KEYED_SHA1",
}
View Source
var SingleHopBFD_Key_AuthenticationType_value = map[string]int32{
	"KEYED_SHA1":            0,
	"METICULOUS_KEYED_SHA1": 1,
}

Functions

func AuthKeysKey

func AuthKeysKey(bfdKeyIDLabel string) string

AuthKeysKey returns the prefix used in ETCD to store vpp bfd config of a particular bfd key in selected vpp instance.

func EchoFunctionKey

func EchoFunctionKey(bfdEchoIfaceLabel string) string

EchoFunctionKey returns the prefix used in ETCD to store vpp bfd config of a particular bfd echo function in selected vpp instance.

func SessionKey

func SessionKey(bfdSessionIfaceLabel string) string

SessionKey returns the prefix used in ETCD to store vpp bfd config of a particular bfd session in selected vpp instance.

Types

type SingleHopBFD

type SingleHopBFD struct {
	Sessions             []*SingleHopBFD_Session    `protobuf:"bytes,1,rep,name=sessions" json:"sessions,omitempty"`
	Keys                 []*SingleHopBFD_Key        `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"`
	EchoFunction         *SingleHopBFD_EchoFunction `protobuf:"bytes,3,opt,name=echo_function,json=echoFunction" json:"echo_function,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*SingleHopBFD) Descriptor

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

func (*SingleHopBFD) GetEchoFunction

func (m *SingleHopBFD) GetEchoFunction() *SingleHopBFD_EchoFunction

func (*SingleHopBFD) GetKeys

func (m *SingleHopBFD) GetKeys() []*SingleHopBFD_Key

func (*SingleHopBFD) GetSessions

func (m *SingleHopBFD) GetSessions() []*SingleHopBFD_Session

func (*SingleHopBFD) ProtoMessage

func (*SingleHopBFD) ProtoMessage()

func (*SingleHopBFD) Reset

func (m *SingleHopBFD) Reset()

func (*SingleHopBFD) String

func (m *SingleHopBFD) String() string

func (*SingleHopBFD) XXX_DiscardUnknown added in v1.8.1

func (m *SingleHopBFD) XXX_DiscardUnknown()

func (*SingleHopBFD) XXX_Marshal added in v1.8.1

func (m *SingleHopBFD) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleHopBFD) XXX_Merge added in v1.8.1

func (dst *SingleHopBFD) XXX_Merge(src proto.Message)

func (*SingleHopBFD) XXX_Size added in v1.8.1

func (m *SingleHopBFD) XXX_Size() int

func (*SingleHopBFD) XXX_Unmarshal added in v1.8.1

func (m *SingleHopBFD) XXX_Unmarshal(b []byte) error

type SingleHopBFD_EchoFunction

type SingleHopBFD_EchoFunction struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	EchoSourceInterface  string   `protobuf:"bytes,2,opt,name=echo_source_interface,json=echoSourceInterface,proto3" json:"echo_source_interface,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SingleHopBFD_EchoFunction) Descriptor

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

func (*SingleHopBFD_EchoFunction) GetEchoSourceInterface

func (m *SingleHopBFD_EchoFunction) GetEchoSourceInterface() string

func (*SingleHopBFD_EchoFunction) GetName

func (m *SingleHopBFD_EchoFunction) GetName() string

func (*SingleHopBFD_EchoFunction) ProtoMessage

func (*SingleHopBFD_EchoFunction) ProtoMessage()

func (*SingleHopBFD_EchoFunction) Reset

func (m *SingleHopBFD_EchoFunction) Reset()

func (*SingleHopBFD_EchoFunction) String

func (m *SingleHopBFD_EchoFunction) String() string

func (*SingleHopBFD_EchoFunction) XXX_DiscardUnknown added in v1.8.1

func (m *SingleHopBFD_EchoFunction) XXX_DiscardUnknown()

func (*SingleHopBFD_EchoFunction) XXX_Marshal added in v1.8.1

func (m *SingleHopBFD_EchoFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleHopBFD_EchoFunction) XXX_Merge added in v1.8.1

func (dst *SingleHopBFD_EchoFunction) XXX_Merge(src proto.Message)

func (*SingleHopBFD_EchoFunction) XXX_Size added in v1.8.1

func (m *SingleHopBFD_EchoFunction) XXX_Size() int

func (*SingleHopBFD_EchoFunction) XXX_Unmarshal added in v1.8.1

func (m *SingleHopBFD_EchoFunction) XXX_Unmarshal(b []byte) error

type SingleHopBFD_Key

type SingleHopBFD_Key struct {
	Name                 string                              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AuthKeyIndex         uint32                              `protobuf:"varint,2,opt,name=auth_key_index,json=authKeyIndex,proto3" json:"auth_key_index,omitempty"`
	Id                   uint32                              `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
	AuthenticationType   SingleHopBFD_Key_AuthenticationType `` /* 161-byte string literal not displayed */
	Secret               string                              `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*SingleHopBFD_Key) Descriptor

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

func (*SingleHopBFD_Key) GetAuthKeyIndex

func (m *SingleHopBFD_Key) GetAuthKeyIndex() uint32

func (*SingleHopBFD_Key) GetAuthenticationType

func (m *SingleHopBFD_Key) GetAuthenticationType() SingleHopBFD_Key_AuthenticationType

func (*SingleHopBFD_Key) GetId

func (m *SingleHopBFD_Key) GetId() uint32

func (*SingleHopBFD_Key) GetName

func (m *SingleHopBFD_Key) GetName() string

func (*SingleHopBFD_Key) GetSecret

func (m *SingleHopBFD_Key) GetSecret() string

func (*SingleHopBFD_Key) ProtoMessage

func (*SingleHopBFD_Key) ProtoMessage()

func (*SingleHopBFD_Key) Reset

func (m *SingleHopBFD_Key) Reset()

func (*SingleHopBFD_Key) String

func (m *SingleHopBFD_Key) String() string

func (*SingleHopBFD_Key) XXX_DiscardUnknown added in v1.8.1

func (m *SingleHopBFD_Key) XXX_DiscardUnknown()

func (*SingleHopBFD_Key) XXX_Marshal added in v1.8.1

func (m *SingleHopBFD_Key) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleHopBFD_Key) XXX_Merge added in v1.8.1

func (dst *SingleHopBFD_Key) XXX_Merge(src proto.Message)

func (*SingleHopBFD_Key) XXX_Size added in v1.8.1

func (m *SingleHopBFD_Key) XXX_Size() int

func (*SingleHopBFD_Key) XXX_Unmarshal added in v1.8.1

func (m *SingleHopBFD_Key) XXX_Unmarshal(b []byte) error

type SingleHopBFD_Key_AuthenticationType

type SingleHopBFD_Key_AuthenticationType int32
const (
	SingleHopBFD_Key_KEYED_SHA1            SingleHopBFD_Key_AuthenticationType = 0
	SingleHopBFD_Key_METICULOUS_KEYED_SHA1 SingleHopBFD_Key_AuthenticationType = 1
)

func (SingleHopBFD_Key_AuthenticationType) EnumDescriptor

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

func (SingleHopBFD_Key_AuthenticationType) String

type SingleHopBFD_Session

type SingleHopBFD_Session struct {
	Interface             string                               `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"`
	DestinationAddress    string                               `protobuf:"bytes,4,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	SourceAddress         string                               `protobuf:"bytes,5,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	Enabled               bool                                 `protobuf:"varint,7,opt,name=enabled,proto3" json:"enabled,omitempty"`
	DesiredMinTxInterval  uint32                               `` /* 126-byte string literal not displayed */
	RequiredMinRxInterval uint32                               `` /* 129-byte string literal not displayed */
	DetectMultiplier      uint32                               `protobuf:"varint,10,opt,name=detect_multiplier,json=detectMultiplier,proto3" json:"detect_multiplier,omitempty"`
	Authentication        *SingleHopBFD_Session_Authentication `protobuf:"bytes,11,opt,name=authentication" json:"authentication,omitempty"`
	XXX_NoUnkeyedLiteral  struct{}                             `json:"-"`
	XXX_unrecognized      []byte                               `json:"-"`
	XXX_sizecache         int32                                `json:"-"`
}

func (*SingleHopBFD_Session) Descriptor

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

func (*SingleHopBFD_Session) GetAuthentication

func (*SingleHopBFD_Session) GetDesiredMinTxInterval

func (m *SingleHopBFD_Session) GetDesiredMinTxInterval() uint32

func (*SingleHopBFD_Session) GetDestinationAddress

func (m *SingleHopBFD_Session) GetDestinationAddress() string

func (*SingleHopBFD_Session) GetDetectMultiplier

func (m *SingleHopBFD_Session) GetDetectMultiplier() uint32

func (*SingleHopBFD_Session) GetEnabled

func (m *SingleHopBFD_Session) GetEnabled() bool

func (*SingleHopBFD_Session) GetInterface

func (m *SingleHopBFD_Session) GetInterface() string

func (*SingleHopBFD_Session) GetRequiredMinRxInterval

func (m *SingleHopBFD_Session) GetRequiredMinRxInterval() uint32

func (*SingleHopBFD_Session) GetSourceAddress

func (m *SingleHopBFD_Session) GetSourceAddress() string

func (*SingleHopBFD_Session) ProtoMessage

func (*SingleHopBFD_Session) ProtoMessage()

func (*SingleHopBFD_Session) Reset

func (m *SingleHopBFD_Session) Reset()

func (*SingleHopBFD_Session) String

func (m *SingleHopBFD_Session) String() string

func (*SingleHopBFD_Session) XXX_DiscardUnknown added in v1.8.1

func (m *SingleHopBFD_Session) XXX_DiscardUnknown()

func (*SingleHopBFD_Session) XXX_Marshal added in v1.8.1

func (m *SingleHopBFD_Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleHopBFD_Session) XXX_Merge added in v1.8.1

func (dst *SingleHopBFD_Session) XXX_Merge(src proto.Message)

func (*SingleHopBFD_Session) XXX_Size added in v1.8.1

func (m *SingleHopBFD_Session) XXX_Size() int

func (*SingleHopBFD_Session) XXX_Unmarshal added in v1.8.1

func (m *SingleHopBFD_Session) XXX_Unmarshal(b []byte) error

type SingleHopBFD_Session_Authentication

type SingleHopBFD_Session_Authentication struct {
	KeyId                uint32   `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	AdvertisedKeyId      uint32   `protobuf:"varint,2,opt,name=advertised_key_id,json=advertisedKeyId,proto3" json:"advertised_key_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SingleHopBFD_Session_Authentication) Descriptor

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

func (*SingleHopBFD_Session_Authentication) GetAdvertisedKeyId

func (m *SingleHopBFD_Session_Authentication) GetAdvertisedKeyId() uint32

func (*SingleHopBFD_Session_Authentication) GetKeyId

func (*SingleHopBFD_Session_Authentication) ProtoMessage

func (*SingleHopBFD_Session_Authentication) ProtoMessage()

func (*SingleHopBFD_Session_Authentication) Reset

func (*SingleHopBFD_Session_Authentication) String

func (*SingleHopBFD_Session_Authentication) XXX_DiscardUnknown added in v1.8.1

func (m *SingleHopBFD_Session_Authentication) XXX_DiscardUnknown()

func (*SingleHopBFD_Session_Authentication) XXX_Marshal added in v1.8.1

func (m *SingleHopBFD_Session_Authentication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SingleHopBFD_Session_Authentication) XXX_Merge added in v1.8.1

func (*SingleHopBFD_Session_Authentication) XXX_Size added in v1.8.1

func (*SingleHopBFD_Session_Authentication) XXX_Unmarshal added in v1.8.1

func (m *SingleHopBFD_Session_Authentication) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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