vpp_srv6

package
v2.2.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 6 Imported by: 82

Documentation

Index

Constants

View Source
const (
	ModuleName = "vpp.srv6"
)

ModuleName is the module name used for models.

Variables

View Source
var (
	// ModelLocalSID is registered NB model of LocalSID
	ModelLocalSID = models.Register(&LocalSID{}, models.Spec{
		Module:  ModuleName,
		Type:    "localsid",
		Version: "v2",
	}, models.WithNameTemplate("{{.Sid}}"))

	// ModelPolicy is registered NB model of Policy
	ModelPolicy = models.Register(&Policy{}, models.Spec{
		Module:  ModuleName,
		Type:    "policy",
		Version: "v2",
	}, models.WithNameTemplate("{{.Bsid}}"))

	// ModelSteering is registered NB model of Steering
	ModelSteering = models.Register(&Steering{}, models.Spec{
		Module:  ModuleName,
		Type:    "steering",
		Version: "v2",
	}, models.WithNameTemplate("{{.Name}}"))
)

Functions

func PolicyKey

func PolicyKey(bsid string) string

PolicyKey returns the key used in ETCD to store vpp sr policy for vpp instance.

Types

type LocalSID

type LocalSID struct {
	Sid               string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"`
	InstallationVrfId uint32 `protobuf:"varint,2,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"`
	// Configuration for end functions (all end functions are mutually exclusive)
	//
	// Types that are valid to be assigned to EndFunction:
	//	*LocalSID_BaseEndFunction
	//	*LocalSID_EndFunction_X
	//	*LocalSID_EndFunction_T
	//	*LocalSID_EndFunction_DX2
	//	*LocalSID_EndFunction_DX4
	//	*LocalSID_EndFunction_DX6
	//	*LocalSID_EndFunction_DT4
	//	*LocalSID_EndFunction_DT6
	//	*LocalSID_EndFunction_AD
	EndFunction          isLocalSID_EndFunction `protobuf_oneof:"end_function"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*LocalSID) Descriptor

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

func (*LocalSID) GetBaseEndFunction

func (m *LocalSID) GetBaseEndFunction() *LocalSID_End

func (*LocalSID) GetEndFunction

func (m *LocalSID) GetEndFunction() isLocalSID_EndFunction

func (*LocalSID) GetEndFunction_AD

func (m *LocalSID) GetEndFunction_AD() *LocalSID_EndAD

func (*LocalSID) GetEndFunction_DT4

func (m *LocalSID) GetEndFunction_DT4() *LocalSID_EndDT4

func (*LocalSID) GetEndFunction_DT6

func (m *LocalSID) GetEndFunction_DT6() *LocalSID_EndDT6

func (*LocalSID) GetEndFunction_DX2

func (m *LocalSID) GetEndFunction_DX2() *LocalSID_EndDX2

func (*LocalSID) GetEndFunction_DX4

func (m *LocalSID) GetEndFunction_DX4() *LocalSID_EndDX4

func (*LocalSID) GetEndFunction_DX6

func (m *LocalSID) GetEndFunction_DX6() *LocalSID_EndDX6

func (*LocalSID) GetEndFunction_T

func (m *LocalSID) GetEndFunction_T() *LocalSID_EndT

func (*LocalSID) GetEndFunction_X

func (m *LocalSID) GetEndFunction_X() *LocalSID_EndX

func (*LocalSID) GetInstallationVrfId

func (m *LocalSID) GetInstallationVrfId() uint32

func (*LocalSID) GetSid

func (m *LocalSID) GetSid() string

func (*LocalSID) ProtoMessage

func (*LocalSID) ProtoMessage()

func (*LocalSID) Reset

func (m *LocalSID) Reset()

func (*LocalSID) String

func (m *LocalSID) String() string

func (*LocalSID) XXX_DiscardUnknown

func (m *LocalSID) XXX_DiscardUnknown()

func (*LocalSID) XXX_Marshal

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

func (*LocalSID) XXX_Merge

func (m *LocalSID) XXX_Merge(src proto.Message)

func (*LocalSID) XXX_MessageName

func (*LocalSID) XXX_MessageName() string

func (*LocalSID) XXX_OneofFuncs

func (*LocalSID) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*LocalSID) XXX_Size

func (m *LocalSID) XXX_Size() int

func (*LocalSID) XXX_Unmarshal

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

type LocalSID_BaseEndFunction

type LocalSID_BaseEndFunction struct {
	BaseEndFunction *LocalSID_End `protobuf:"bytes,3,opt,name=base_end_function,json=baseEndFunction,proto3,oneof"`
}

type LocalSID_End

type LocalSID_End struct {
	Psp                  bool     `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of simple endpoint

func (*LocalSID_End) Descriptor

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

func (*LocalSID_End) GetPsp

func (m *LocalSID_End) GetPsp() bool

func (*LocalSID_End) ProtoMessage

func (*LocalSID_End) ProtoMessage()

func (*LocalSID_End) Reset

func (m *LocalSID_End) Reset()

func (*LocalSID_End) String

func (m *LocalSID_End) String() string

func (*LocalSID_End) XXX_DiscardUnknown

func (m *LocalSID_End) XXX_DiscardUnknown()

func (*LocalSID_End) XXX_Marshal

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

func (*LocalSID_End) XXX_Merge

func (m *LocalSID_End) XXX_Merge(src proto.Message)

func (*LocalSID_End) XXX_MessageName

func (*LocalSID_End) XXX_MessageName() string

func (*LocalSID_End) XXX_Size

func (m *LocalSID_End) XXX_Size() int

func (*LocalSID_End) XXX_Unmarshal

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

type LocalSID_EndAD

type LocalSID_EndAD struct {
	OutgoingInterface    string   `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
	IncomingInterface    string   `protobuf:"bytes,3,opt,name=incoming_interface,json=incomingInterface,proto3" json:"incoming_interface,omitempty"`
	L3ServiceAddress     string   `protobuf:"bytes,4,opt,name=l3_service_address,json=l3ServiceAddress,proto3" json:"l3_service_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of dynamic segment routing proxy endpoint

func (*LocalSID_EndAD) Descriptor

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

func (*LocalSID_EndAD) GetIncomingInterface

func (m *LocalSID_EndAD) GetIncomingInterface() string

func (*LocalSID_EndAD) GetL3ServiceAddress

func (m *LocalSID_EndAD) GetL3ServiceAddress() string

func (*LocalSID_EndAD) GetOutgoingInterface

func (m *LocalSID_EndAD) GetOutgoingInterface() string

func (*LocalSID_EndAD) ProtoMessage

func (*LocalSID_EndAD) ProtoMessage()

func (*LocalSID_EndAD) Reset

func (m *LocalSID_EndAD) Reset()

func (*LocalSID_EndAD) String

func (m *LocalSID_EndAD) String() string

func (*LocalSID_EndAD) XXX_DiscardUnknown

func (m *LocalSID_EndAD) XXX_DiscardUnknown()

func (*LocalSID_EndAD) XXX_Marshal

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

func (*LocalSID_EndAD) XXX_Merge

func (m *LocalSID_EndAD) XXX_Merge(src proto.Message)

func (*LocalSID_EndAD) XXX_MessageName

func (*LocalSID_EndAD) XXX_MessageName() string

func (*LocalSID_EndAD) XXX_Size

func (m *LocalSID_EndAD) XXX_Size() int

func (*LocalSID_EndAD) XXX_Unmarshal

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

type LocalSID_EndDT4

type LocalSID_EndDT4 struct {
	VrfId                uint32   `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with decapsulation and specific IPv4 table lookup

func (*LocalSID_EndDT4) Descriptor

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

func (*LocalSID_EndDT4) GetVrfId

func (m *LocalSID_EndDT4) GetVrfId() uint32

func (*LocalSID_EndDT4) ProtoMessage

func (*LocalSID_EndDT4) ProtoMessage()

func (*LocalSID_EndDT4) Reset

func (m *LocalSID_EndDT4) Reset()

func (*LocalSID_EndDT4) String

func (m *LocalSID_EndDT4) String() string

func (*LocalSID_EndDT4) XXX_DiscardUnknown

func (m *LocalSID_EndDT4) XXX_DiscardUnknown()

func (*LocalSID_EndDT4) XXX_Marshal

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

func (*LocalSID_EndDT4) XXX_Merge

func (m *LocalSID_EndDT4) XXX_Merge(src proto.Message)

func (*LocalSID_EndDT4) XXX_MessageName

func (*LocalSID_EndDT4) XXX_MessageName() string

func (*LocalSID_EndDT4) XXX_Size

func (m *LocalSID_EndDT4) XXX_Size() int

func (*LocalSID_EndDT4) XXX_Unmarshal

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

type LocalSID_EndDT6

type LocalSID_EndDT6 struct {
	VrfId                uint32   `protobuf:"varint,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with decapsulation and specific IPv6 table lookup

func (*LocalSID_EndDT6) Descriptor

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

func (*LocalSID_EndDT6) GetVrfId

func (m *LocalSID_EndDT6) GetVrfId() uint32

func (*LocalSID_EndDT6) ProtoMessage

func (*LocalSID_EndDT6) ProtoMessage()

func (*LocalSID_EndDT6) Reset

func (m *LocalSID_EndDT6) Reset()

func (*LocalSID_EndDT6) String

func (m *LocalSID_EndDT6) String() string

func (*LocalSID_EndDT6) XXX_DiscardUnknown

func (m *LocalSID_EndDT6) XXX_DiscardUnknown()

func (*LocalSID_EndDT6) XXX_Marshal

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

func (*LocalSID_EndDT6) XXX_Merge

func (m *LocalSID_EndDT6) XXX_Merge(src proto.Message)

func (*LocalSID_EndDT6) XXX_MessageName

func (*LocalSID_EndDT6) XXX_MessageName() string

func (*LocalSID_EndDT6) XXX_Size

func (m *LocalSID_EndDT6) XXX_Size() int

func (*LocalSID_EndDT6) XXX_Unmarshal

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

type LocalSID_EndDX2

type LocalSID_EndDX2 struct {
	VlanTag              uint32   `protobuf:"varint,1,opt,name=vlan_tag,json=vlanTag,proto3" json:"vlan_tag,omitempty"`
	OutgoingInterface    string   `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with decapsulation and Layer-2 cross-connect (or DX2 with egress VLAN rewrite when VLAN notzero - not supported this variant yet)

func (*LocalSID_EndDX2) Descriptor

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

func (*LocalSID_EndDX2) GetOutgoingInterface

func (m *LocalSID_EndDX2) GetOutgoingInterface() string

func (*LocalSID_EndDX2) GetVlanTag

func (m *LocalSID_EndDX2) GetVlanTag() uint32

func (*LocalSID_EndDX2) ProtoMessage

func (*LocalSID_EndDX2) ProtoMessage()

func (*LocalSID_EndDX2) Reset

func (m *LocalSID_EndDX2) Reset()

func (*LocalSID_EndDX2) String

func (m *LocalSID_EndDX2) String() string

func (*LocalSID_EndDX2) XXX_DiscardUnknown

func (m *LocalSID_EndDX2) XXX_DiscardUnknown()

func (*LocalSID_EndDX2) XXX_Marshal

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

func (*LocalSID_EndDX2) XXX_Merge

func (m *LocalSID_EndDX2) XXX_Merge(src proto.Message)

func (*LocalSID_EndDX2) XXX_MessageName

func (*LocalSID_EndDX2) XXX_MessageName() string

func (*LocalSID_EndDX2) XXX_Size

func (m *LocalSID_EndDX2) XXX_Size() int

func (*LocalSID_EndDX2) XXX_Unmarshal

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

type LocalSID_EndDX4

type LocalSID_EndDX4 struct {
	OutgoingInterface    string   `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
	NextHop              string   `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with decapsulation and IPv4 cross-connect

func (*LocalSID_EndDX4) Descriptor

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

func (*LocalSID_EndDX4) GetNextHop

func (m *LocalSID_EndDX4) GetNextHop() string

func (*LocalSID_EndDX4) GetOutgoingInterface

func (m *LocalSID_EndDX4) GetOutgoingInterface() string

func (*LocalSID_EndDX4) ProtoMessage

func (*LocalSID_EndDX4) ProtoMessage()

func (*LocalSID_EndDX4) Reset

func (m *LocalSID_EndDX4) Reset()

func (*LocalSID_EndDX4) String

func (m *LocalSID_EndDX4) String() string

func (*LocalSID_EndDX4) XXX_DiscardUnknown

func (m *LocalSID_EndDX4) XXX_DiscardUnknown()

func (*LocalSID_EndDX4) XXX_Marshal

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

func (*LocalSID_EndDX4) XXX_Merge

func (m *LocalSID_EndDX4) XXX_Merge(src proto.Message)

func (*LocalSID_EndDX4) XXX_MessageName

func (*LocalSID_EndDX4) XXX_MessageName() string

func (*LocalSID_EndDX4) XXX_Size

func (m *LocalSID_EndDX4) XXX_Size() int

func (*LocalSID_EndDX4) XXX_Unmarshal

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

type LocalSID_EndDX6

type LocalSID_EndDX6 struct {
	OutgoingInterface    string   `protobuf:"bytes,1,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
	NextHop              string   `protobuf:"bytes,2,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with decapsulation and IPv6 cross-connect

func (*LocalSID_EndDX6) Descriptor

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

func (*LocalSID_EndDX6) GetNextHop

func (m *LocalSID_EndDX6) GetNextHop() string

func (*LocalSID_EndDX6) GetOutgoingInterface

func (m *LocalSID_EndDX6) GetOutgoingInterface() string

func (*LocalSID_EndDX6) ProtoMessage

func (*LocalSID_EndDX6) ProtoMessage()

func (*LocalSID_EndDX6) Reset

func (m *LocalSID_EndDX6) Reset()

func (*LocalSID_EndDX6) String

func (m *LocalSID_EndDX6) String() string

func (*LocalSID_EndDX6) XXX_DiscardUnknown

func (m *LocalSID_EndDX6) XXX_DiscardUnknown()

func (*LocalSID_EndDX6) XXX_Marshal

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

func (*LocalSID_EndDX6) XXX_Merge

func (m *LocalSID_EndDX6) XXX_Merge(src proto.Message)

func (*LocalSID_EndDX6) XXX_MessageName

func (*LocalSID_EndDX6) XXX_MessageName() string

func (*LocalSID_EndDX6) XXX_Size

func (m *LocalSID_EndDX6) XXX_Size() int

func (*LocalSID_EndDX6) XXX_Unmarshal

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

type LocalSID_EndFunction_AD

type LocalSID_EndFunction_AD struct {
	EndFunction_AD *LocalSID_EndAD `protobuf:"bytes,11,opt,name=end_function_AD,json=endFunctionAD,proto3,oneof"`
}

type LocalSID_EndFunction_DT4

type LocalSID_EndFunction_DT4 struct {
	EndFunction_DT4 *LocalSID_EndDT4 `protobuf:"bytes,9,opt,name=end_function_DT4,json=endFunctionDT4,proto3,oneof"`
}

type LocalSID_EndFunction_DT6

type LocalSID_EndFunction_DT6 struct {
	EndFunction_DT6 *LocalSID_EndDT6 `protobuf:"bytes,10,opt,name=end_function_DT6,json=endFunctionDT6,proto3,oneof"`
}

type LocalSID_EndFunction_DX2

type LocalSID_EndFunction_DX2 struct {
	EndFunction_DX2 *LocalSID_EndDX2 `protobuf:"bytes,6,opt,name=end_function_DX2,json=endFunctionDX2,proto3,oneof"`
}

type LocalSID_EndFunction_DX4

type LocalSID_EndFunction_DX4 struct {
	EndFunction_DX4 *LocalSID_EndDX4 `protobuf:"bytes,7,opt,name=end_function_DX4,json=endFunctionDX4,proto3,oneof"`
}

type LocalSID_EndFunction_DX6

type LocalSID_EndFunction_DX6 struct {
	EndFunction_DX6 *LocalSID_EndDX6 `protobuf:"bytes,8,opt,name=end_function_DX6,json=endFunctionDX6,proto3,oneof"`
}

type LocalSID_EndFunction_T

type LocalSID_EndFunction_T struct {
	EndFunction_T *LocalSID_EndT `protobuf:"bytes,5,opt,name=end_function_T,json=endFunctionT,proto3,oneof"`
}

type LocalSID_EndFunction_X

type LocalSID_EndFunction_X struct {
	EndFunction_X *LocalSID_EndX `protobuf:"bytes,4,opt,name=end_function_X,json=endFunctionX,proto3,oneof"`
}

type LocalSID_EndT

type LocalSID_EndT struct {
	Psp                  bool     `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"`
	VrfId                uint32   `protobuf:"varint,2,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with specific IPv6 table lookup

func (*LocalSID_EndT) Descriptor

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

func (*LocalSID_EndT) GetPsp

func (m *LocalSID_EndT) GetPsp() bool

func (*LocalSID_EndT) GetVrfId

func (m *LocalSID_EndT) GetVrfId() uint32

func (*LocalSID_EndT) ProtoMessage

func (*LocalSID_EndT) ProtoMessage()

func (*LocalSID_EndT) Reset

func (m *LocalSID_EndT) Reset()

func (*LocalSID_EndT) String

func (m *LocalSID_EndT) String() string

func (*LocalSID_EndT) XXX_DiscardUnknown

func (m *LocalSID_EndT) XXX_DiscardUnknown()

func (*LocalSID_EndT) XXX_Marshal

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

func (*LocalSID_EndT) XXX_Merge

func (m *LocalSID_EndT) XXX_Merge(src proto.Message)

func (*LocalSID_EndT) XXX_MessageName

func (*LocalSID_EndT) XXX_MessageName() string

func (*LocalSID_EndT) XXX_Size

func (m *LocalSID_EndT) XXX_Size() int

func (*LocalSID_EndT) XXX_Unmarshal

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

type LocalSID_EndX

type LocalSID_EndX struct {
	Psp                  bool     `protobuf:"varint,1,opt,name=psp,proto3" json:"psp,omitempty"`
	OutgoingInterface    string   `protobuf:"bytes,2,opt,name=outgoing_interface,json=outgoingInterface,proto3" json:"outgoing_interface,omitempty"`
	NextHop              string   `protobuf:"bytes,3,opt,name=next_hop,json=nextHop,proto3" json:"next_hop,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

End function behavior of endpoint with Layer-3 cross-connect (IPv6)

func (*LocalSID_EndX) Descriptor

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

func (*LocalSID_EndX) GetNextHop

func (m *LocalSID_EndX) GetNextHop() string

func (*LocalSID_EndX) GetOutgoingInterface

func (m *LocalSID_EndX) GetOutgoingInterface() string

func (*LocalSID_EndX) GetPsp

func (m *LocalSID_EndX) GetPsp() bool

func (*LocalSID_EndX) ProtoMessage

func (*LocalSID_EndX) ProtoMessage()

func (*LocalSID_EndX) Reset

func (m *LocalSID_EndX) Reset()

func (*LocalSID_EndX) String

func (m *LocalSID_EndX) String() string

func (*LocalSID_EndX) XXX_DiscardUnknown

func (m *LocalSID_EndX) XXX_DiscardUnknown()

func (*LocalSID_EndX) XXX_Marshal

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

func (*LocalSID_EndX) XXX_Merge

func (m *LocalSID_EndX) XXX_Merge(src proto.Message)

func (*LocalSID_EndX) XXX_MessageName

func (*LocalSID_EndX) XXX_MessageName() string

func (*LocalSID_EndX) XXX_Size

func (m *LocalSID_EndX) XXX_Size() int

func (*LocalSID_EndX) XXX_Unmarshal

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

type Policy

type Policy struct {
	Bsid                 string                `protobuf:"bytes,1,opt,name=bsid,proto3" json:"bsid,omitempty"`
	InstallationVrfId    uint32                `protobuf:"varint,2,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"`
	SrhEncapsulation     bool                  `protobuf:"varint,3,opt,name=srh_encapsulation,json=srhEncapsulation,proto3" json:"srh_encapsulation,omitempty"`
	SprayBehaviour       bool                  `protobuf:"varint,4,opt,name=spray_behaviour,json=sprayBehaviour,proto3" json:"spray_behaviour,omitempty"`
	SegmentLists         []*Policy_SegmentList `protobuf:"bytes,5,rep,name=segment_lists,json=segmentLists,proto3" json:"segment_lists,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Model for SRv6 policy (policy without at least one policy segment is only cached in ligato and not written to VPP)

func (*Policy) Descriptor

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

func (*Policy) GetBsid

func (m *Policy) GetBsid() string

func (*Policy) GetInstallationVrfId

func (m *Policy) GetInstallationVrfId() uint32

func (*Policy) GetSegmentLists

func (m *Policy) GetSegmentLists() []*Policy_SegmentList

func (*Policy) GetSprayBehaviour

func (m *Policy) GetSprayBehaviour() bool

func (*Policy) GetSrhEncapsulation

func (m *Policy) GetSrhEncapsulation() bool

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) String

func (m *Policy) String() string

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

func (m *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_MessageName

func (*Policy) XXX_MessageName() string

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

type Policy_SegmentList

type Policy_SegmentList struct {
	Weight               uint32   `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
	Segments             []string `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Model for SRv6 Segment List

func (*Policy_SegmentList) Descriptor

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

func (*Policy_SegmentList) GetSegments

func (m *Policy_SegmentList) GetSegments() []string

func (*Policy_SegmentList) GetWeight

func (m *Policy_SegmentList) GetWeight() uint32

func (*Policy_SegmentList) ProtoMessage

func (*Policy_SegmentList) ProtoMessage()

func (*Policy_SegmentList) Reset

func (m *Policy_SegmentList) Reset()

func (*Policy_SegmentList) String

func (m *Policy_SegmentList) String() string

func (*Policy_SegmentList) XXX_DiscardUnknown

func (m *Policy_SegmentList) XXX_DiscardUnknown()

func (*Policy_SegmentList) XXX_Marshal

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

func (*Policy_SegmentList) XXX_Merge

func (m *Policy_SegmentList) XXX_Merge(src proto.Message)

func (*Policy_SegmentList) XXX_MessageName

func (*Policy_SegmentList) XXX_MessageName() string

func (*Policy_SegmentList) XXX_Size

func (m *Policy_SegmentList) XXX_Size() int

func (*Policy_SegmentList) XXX_Unmarshal

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

type SID

type SID = net.IP

SID (in srv6 package) is SRv6's segment id. It is always represented as IPv6 address

type Steering

type Steering struct {
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// Referencing policy that should be used for steering traffic into (all policy references are mutual exclusive)
	//
	// Types that are valid to be assigned to PolicyRef:
	//	*Steering_PolicyBsid
	//	*Steering_PolicyIndex
	PolicyRef isSteering_PolicyRef `protobuf_oneof:"policy_ref"`
	// Traffic configuration (all traffic messages are mutual exclusive)
	//
	// Types that are valid to be assigned to Traffic:
	//	*Steering_L2Traffic_
	//	*Steering_L3Traffic_
	Traffic              isSteering_Traffic `protobuf_oneof:"traffic"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Model for steering traffic to SRv6 policy

func (*Steering) Descriptor

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

func (*Steering) GetL2Traffic

func (m *Steering) GetL2Traffic() *Steering_L2Traffic

func (*Steering) GetL3Traffic

func (m *Steering) GetL3Traffic() *Steering_L3Traffic

func (*Steering) GetName

func (m *Steering) GetName() string

func (*Steering) GetPolicyBsid

func (m *Steering) GetPolicyBsid() string

func (*Steering) GetPolicyIndex

func (m *Steering) GetPolicyIndex() uint32

func (*Steering) GetPolicyRef

func (m *Steering) GetPolicyRef() isSteering_PolicyRef

func (*Steering) GetTraffic

func (m *Steering) GetTraffic() isSteering_Traffic

func (*Steering) ProtoMessage

func (*Steering) ProtoMessage()

func (*Steering) Reset

func (m *Steering) Reset()

func (*Steering) String

func (m *Steering) String() string

func (*Steering) XXX_DiscardUnknown

func (m *Steering) XXX_DiscardUnknown()

func (*Steering) XXX_Marshal

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

func (*Steering) XXX_Merge

func (m *Steering) XXX_Merge(src proto.Message)

func (*Steering) XXX_MessageName

func (*Steering) XXX_MessageName() string

func (*Steering) XXX_OneofFuncs

func (*Steering) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Steering) XXX_Size

func (m *Steering) XXX_Size() int

func (*Steering) XXX_Unmarshal

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

type Steering_L2Traffic

type Steering_L2Traffic struct {
	InterfaceName        string   `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Steering_L2Traffic) Descriptor

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

func (*Steering_L2Traffic) GetInterfaceName

func (m *Steering_L2Traffic) GetInterfaceName() string

func (*Steering_L2Traffic) ProtoMessage

func (*Steering_L2Traffic) ProtoMessage()

func (*Steering_L2Traffic) Reset

func (m *Steering_L2Traffic) Reset()

func (*Steering_L2Traffic) String

func (m *Steering_L2Traffic) String() string

func (*Steering_L2Traffic) XXX_DiscardUnknown

func (m *Steering_L2Traffic) XXX_DiscardUnknown()

func (*Steering_L2Traffic) XXX_Marshal

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

func (*Steering_L2Traffic) XXX_Merge

func (m *Steering_L2Traffic) XXX_Merge(src proto.Message)

func (*Steering_L2Traffic) XXX_MessageName

func (*Steering_L2Traffic) XXX_MessageName() string

func (*Steering_L2Traffic) XXX_Size

func (m *Steering_L2Traffic) XXX_Size() int

func (*Steering_L2Traffic) XXX_Unmarshal

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

type Steering_L2Traffic_

type Steering_L2Traffic_ struct {
	L2Traffic *Steering_L2Traffic `protobuf:"bytes,3,opt,name=l2_traffic,json=l2Traffic,proto3,oneof"`
}

type Steering_L3Traffic

type Steering_L3Traffic struct {
	InstallationVrfId    uint32   `protobuf:"varint,1,opt,name=installation_vrf_id,json=installationVrfId,proto3" json:"installation_vrf_id,omitempty"`
	PrefixAddress        string   `protobuf:"bytes,2,opt,name=prefix_address,json=prefixAddress,proto3" json:"prefix_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Steering_L3Traffic) Descriptor

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

func (*Steering_L3Traffic) GetInstallationVrfId

func (m *Steering_L3Traffic) GetInstallationVrfId() uint32

func (*Steering_L3Traffic) GetPrefixAddress

func (m *Steering_L3Traffic) GetPrefixAddress() string

func (*Steering_L3Traffic) ProtoMessage

func (*Steering_L3Traffic) ProtoMessage()

func (*Steering_L3Traffic) Reset

func (m *Steering_L3Traffic) Reset()

func (*Steering_L3Traffic) String

func (m *Steering_L3Traffic) String() string

func (*Steering_L3Traffic) XXX_DiscardUnknown

func (m *Steering_L3Traffic) XXX_DiscardUnknown()

func (*Steering_L3Traffic) XXX_Marshal

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

func (*Steering_L3Traffic) XXX_Merge

func (m *Steering_L3Traffic) XXX_Merge(src proto.Message)

func (*Steering_L3Traffic) XXX_MessageName

func (*Steering_L3Traffic) XXX_MessageName() string

func (*Steering_L3Traffic) XXX_Size

func (m *Steering_L3Traffic) XXX_Size() int

func (*Steering_L3Traffic) XXX_Unmarshal

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

type Steering_L3Traffic_

type Steering_L3Traffic_ struct {
	L3Traffic *Steering_L3Traffic `protobuf:"bytes,4,opt,name=l3_traffic,json=l3Traffic,proto3,oneof"`
}

type Steering_PolicyBsid

type Steering_PolicyBsid struct {
	PolicyBsid string `protobuf:"bytes,1,opt,name=policy_bsid,json=policyBsid,proto3,oneof"`
}

type Steering_PolicyIndex

type Steering_PolicyIndex struct {
	PolicyIndex uint32 `protobuf:"varint,2,opt,name=policy_index,json=policyIndex,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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