vpp_stn

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const ModuleName = "vpp.stn"

ModuleName is the module name used for models.

Variables

View Source
var File_ligato_vpp_stn_stn_proto protoreflect.FileDescriptor
View Source
var (
	ModelRule = models.Register(&Rule{}, models.Spec{
		Module:  ModuleName,
		Type:    "rule",
		Version: "v2",
	}, models.WithNameTemplate("{{.Interface}}/ip/{{.IpAddress}}"))
)

Functions

func Key

func Key(ifName, ipAddr string) string

Key returns the prefix used in the ETCD to store a VPP STN config of a particular STN rule in selected VPP instance.

Types

type Rule

type Rule struct {
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Interface string `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"`
	// contains filtered or unexported fields
}

func (*Rule) Descriptor deprecated

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

Deprecated: Use Rule.ProtoReflect.Descriptor instead.

func (*Rule) GetInterface

func (x *Rule) GetInterface() string

func (*Rule) GetIpAddress

func (x *Rule) GetIpAddress() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) ProtoReflect added in v3.2.0

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

func (*Rule) Reset

func (x *Rule) Reset()

func (*Rule) String

func (x *Rule) String() string

Jump to

Keyboard shortcuts

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