Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Versions = map[string]HandlerVersion{}
Functions ¶
This section is empty.
Types ¶
type ExceptionDetails ¶
ExceptionDetails include punt model and socket path from VPP.
type HandlerVersion ¶
type HandlerVersion struct { Msgs []govppapi.Message New func(govppapi.Channel, ifaceidx.IfaceMetadataIndex, logging.Logger) PuntVppAPI }
type PuntDetails ¶
PuntDetails includes punt model and socket path from VPP.
type PuntVPPRead ¶
type PuntVPPRead interface { // DumpPuntRegisteredSockets returns all punt socket registrations known to the VPP agent DumpRegisteredPuntSockets() ([]*PuntDetails, error) // DumpExceptions dumps punt exceptions DumpExceptions() ([]*ExceptionDetails, error) // DumpPuntReasons returns all known punt reasons from VPP DumpPuntReasons() ([]*ReasonDetails, error) // DumpPuntRedirect dump IP redirect punts DumpPuntRedirect() ([]*punt.IPRedirect, error) }
PuntVPPRead provides read methods for punt
type PuntVppAPI ¶
type PuntVppAPI interface { PuntVPPRead // AddPunt configures new punt to the host from the VPP AddPunt(punt *punt.ToHost) error // DeletePunt removes or unregisters punt entry DeletePunt(punt *punt.ToHost) error // RegisterPuntSocket registers new punt to unix domain socket entry RegisterPuntSocket(puntCfg *punt.ToHost) (string, error) // DeregisterPuntSocket removes existing punt to socket registration DeregisterPuntSocket(puntCfg *punt.ToHost) error // AddPuntRedirect adds new punt IP redirect entry AddPuntRedirect(punt *punt.IPRedirect) error // DeletePuntRedirect removes existing redirect entry DeletePuntRedirect(punt *punt.IPRedirect) error // AddPuntException registers new punt exception AddPuntException(punt *punt.Exception) (string, error) // DeletePuntException deregisters punt exception entry DeletePuntException(punt *punt.Exception) error }
PuntVppAPI provides methods for managing VPP punt configuration.
func CompatiblePuntVppHandler ¶
func CompatiblePuntVppHandler( ch govppapi.Channel, idx ifaceidx.IfaceMetadataIndex, log logging.Logger, ) PuntVppAPI
Click to show internal directories.
Click to hide internal directories.