Documentation ¶
Index ¶
- Constants
- Variables
- func Key(ifName, ipAddr string) string
- type Rule
- func (*Rule) Descriptor() ([]byte, []int)
- func (m *Rule) GetInterface() string
- func (m *Rule) GetIpAddress() string
- func (*Rule) ProtoMessage()
- func (m *Rule) Reset()
- func (m *Rule) String() string
- func (m *Rule) XXX_DiscardUnknown()
- func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Rule) XXX_Merge(src proto.Message)
- func (*Rule) XXX_MessageName() string
- func (m *Rule) XXX_Size() int
- func (m *Rule) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ModuleName = "vpp.stn"
ModuleName is the module name used for models.
Variables ¶
View Source
var ( ModelRule = models.Register(&Rule{}, models.Spec{ Module: ModuleName, Type: "rule", Version: "v2", }, models.WithNameTemplate("{{.Interface}}/ip/{{.IpAddress}}")) )
Functions ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Click to show internal directories.
Click to hide internal directories.