Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStnHandlerVersion ¶
func AddStnHandlerVersion(version vpp.Version, msgs []govppapi.Message, h NewHandlerFunc)
Types ¶
type NewHandlerFunc ¶
type StnDetails ¶
StnDetails contains a proto-modelled STN data and VPP specific metadata
type StnMeta ¶
type StnMeta struct {
IfIdx uint32
}
StnMeta contains an index of the interface defined by name in the STN rule
type StnVppAPI ¶
type StnVppAPI interface { StnVppRead // AddSTNRule calls StnAddDelRule bin API with IsAdd=1 AddSTNRule(stnRule *stn.Rule) error // DeleteSTNRule calls StnAddDelRule bin API with IsAdd=0 DeleteSTNRule(stnRule *stn.Rule) error }
StnVppAPI provides methods for managing STN rules
func CompatibleStnVppHandler ¶
type StnVppRead ¶
type StnVppRead interface { // DumpSTNRules returns a list of all STN rules configured on the VPP DumpSTNRules() ([]*StnDetails, error) }
StnVppRead provides read methods for STN rules
Click to show internal directories.
Click to hide internal directories.