Documentation ¶
Overview ¶
Package vppcalls contains wrappers over VPP binary APIs for all supported interface types.
Index ¶
- func AddAfPacketInterface(afPacketIntf *intf.Interfaces_Interface_Afpacket, vppChan *govppapi.Channel) (swIndex uint32, err error)
- func AddBfdEchoFunction(bfdInput *bfd.SingleHopBFD_EchoFunction, swIfIndexes ifaceidx.SwIfIndex, ...) (err error)
- func AddBfdUDPSession(bfdSession *bfd.SingleHopBFD_Session, swIfIndexes ifaceidx.SwIfIndex, ...) error
- func AddBfdUDPSessionFromDetails(bfdSession *bfd_api.BfdUDPSessionDetails, bfdKeyIndexes idxvpp.NameToIdx, ...) error
- func AddDelVxlanTunnelReq(vxlanIntf *intf.Interfaces_Interface_Vxlan, add uint8) (req *vxlan.VxlanAddDelTunnel, err error)
- func AddInterfaceIP(ifIdx uint32, addr *net.IPNet, vppChan *govppapi.Channel) error
- func AddLoopbackInterface(name string, vppChan *govppapi.Channel) (swIndex uint32, err error)
- func AddMemifInterface(memIntf *intf.Interfaces_Interface_Memif, vppChan *govppapi.Channel) (swIndex uint32, err error)
- func AddTapInterface(tapIf *interfaces.Interfaces_Interface_Tap, vppChan *govppapi.Channel) (swIndex uint32, err error)
- func AddVxlanTunnel(vxlanIntf *intf.Interfaces_Interface_Vxlan, vppChan *govppapi.Channel) (swIndex uint32, err error)
- func CheckMsgCompatibilityForBfd(vppChan *govppapi.Channel) error
- func CheckMsgCompatibilityForInterface(vppChan *govppapi.Channel) error
- func DelInterfaceIP(ifIdx uint32, addr *net.IPNet, vppChan *govppapi.Channel) error
- func DeleteAfPacketInterface(afPacketIntf *intf.Interfaces_Interface_Afpacket, vppChan *govppapi.Channel) error
- func DeleteBfdEchoFunction(vppChannel *govppapi.Channel) (err error)
- func DeleteBfdUDPAuthenticationKey(bfdKey *bfd.SingleHopBFD_Key, vppChannel *govppapi.Channel) (err error)
- func DeleteBfdUDPSession(ifIndex uint32, sourceAddres string, destAddres string, ...) (err error)
- func DeleteLoopbackInterface(idx uint32, vppChan *govppapi.Channel) error
- func DeleteMemifInterface(idx uint32, vppChan *govppapi.Channel) error
- func DeleteTapInterface(idx uint32, vppChan *govppapi.Channel) error
- func DeleteVxlanTunnel(vxlanIntf *intf.Interfaces_Interface_Vxlan, vppChan *govppapi.Channel) error
- func DumpBfdUDPSessionsWithID(authKeyIndex uint32, swIfIndexes ifaceidx.SwIfIndex, ...) ([]*bfd_api.BfdUDPSessionDetails, error)
- func InterfaceAdminDown(ifIdx uint32, vppChan *govppapi.Channel) error
- func InterfaceAdminUp(ifIdx uint32, vppChan *govppapi.Channel) error
- func ModifyBfdUDPSession(bfdSession *bfd.SingleHopBFD_Session, swIfIndexes ifaceidx.SwIfIndex, ...) (err error)
- func SetBfdUDPAuthenticationKey(bfdKey *bfd.SingleHopBFD_Key, vppChannel *govppapi.Channel) (err error)
- func SetInterfaceMac(ifIdx uint32, macAddress string, vppChan *govppapi.Channel) error
- func SetInterfaceMtu(ifIdx uint32, mtu uint32, vppChan *govppapi.Channel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAfPacketInterface ¶
func AddAfPacketInterface(afPacketIntf *intf.Interfaces_Interface_Afpacket, vppChan *govppapi.Channel) (swIndex uint32, err error)
AddAfPacketInterface calls AfPacketCreate VPP binary API.
func AddBfdEchoFunction ¶
func AddBfdEchoFunction(bfdInput *bfd.SingleHopBFD_EchoFunction, swIfIndexes ifaceidx.SwIfIndex, vppChannel *govppapi.Channel) (err error)
AddBfdEchoFunction sets up echo function for interface
func AddBfdUDPSession ¶
func AddBfdUDPSession(bfdSession *bfd.SingleHopBFD_Session, swIfIndexes ifaceidx.SwIfIndex, bfdKeyIndexes idxvpp.NameToIdx, vppChannel *govppapi.Channel) error
AddBfdUDPSession adds new BFD session with authentication if available
func AddBfdUDPSessionFromDetails ¶
func AddBfdUDPSessionFromDetails(bfdSession *bfd_api.BfdUDPSessionDetails, bfdKeyIndexes idxvpp.NameToIdx, vppChannel *govppapi.Channel) error
AddBfdUDPSessionFromDetails adds new BFD session with authentication if available
func AddDelVxlanTunnelReq ¶
func AddDelVxlanTunnelReq(vxlanIntf *intf.Interfaces_Interface_Vxlan, add uint8) (req *vxlan.VxlanAddDelTunnel, err error)
AddDelVxlanTunnelReq prepare the request for bin API calls
func AddInterfaceIP ¶
AddInterfaceIP calls SwInterfaceAddDelAddress bin API with IsAdd=1
func AddLoopbackInterface ¶
AddLoopbackInterface calls CreateLoopback bin API
func AddMemifInterface ¶
func AddMemifInterface(memIntf *intf.Interfaces_Interface_Memif, vppChan *govppapi.Channel) (swIndex uint32, err error)
AddMemifInterface calls MemifCreate bin API
func AddTapInterface ¶
func AddTapInterface(tapIf *interfaces.Interfaces_Interface_Tap, vppChan *govppapi.Channel) (swIndex uint32, err error)
AddTapInterface calls TapConnect bin API
func AddVxlanTunnel ¶
func AddVxlanTunnel(vxlanIntf *intf.Interfaces_Interface_Vxlan, vppChan *govppapi.Channel) (swIndex uint32, err error)
AddVxlanTunnel calls AddDelVxlanTunnelReq with flag add=1
func CheckMsgCompatibilityForBfd ¶
CheckMsgCompatibilityForBfd checks if bfd CRSs are compatible with VPP in runtime
func CheckMsgCompatibilityForInterface ¶
CheckMsgCompatibilityForInterface checks if interface CRSs are compatible with VPP in runtime
func DelInterfaceIP ¶
DelInterfaceIP calls SwInterfaceAddDelAddress bin API with IsAdd=00
func DeleteAfPacketInterface ¶
func DeleteAfPacketInterface(afPacketIntf *intf.Interfaces_Interface_Afpacket, vppChan *govppapi.Channel) error
DeleteAfPacketInterface calls AfPacketDelete VPP binary API.
func DeleteBfdEchoFunction ¶
DeleteBfdEchoFunction removes echo function
func DeleteBfdUDPAuthenticationKey ¶
func DeleteBfdUDPAuthenticationKey(bfdKey *bfd.SingleHopBFD_Key, vppChannel *govppapi.Channel) (err error)
DeleteBfdUDPAuthenticationKey removes authentication key
func DeleteBfdUDPSession ¶
func DeleteBfdUDPSession(ifIndex uint32, sourceAddres string, destAddres string, vppChannel *govppapi.Channel) (err error)
DeleteBfdUDPSession removes existing BFD session
func DeleteLoopbackInterface ¶
DeleteLoopbackInterface calls DeleteLoopback bin API
func DeleteMemifInterface ¶
DeleteMemifInterface calls MemifDelete bin API
func DeleteTapInterface ¶
DeleteTapInterface calls TapDelete bin API
func DeleteVxlanTunnel ¶
func DeleteVxlanTunnel(vxlanIntf *intf.Interfaces_Interface_Vxlan, vppChan *govppapi.Channel) error
DeleteVxlanTunnel calls AddDelVxlanTunnelReq with flag add=0
func DumpBfdUDPSessionsWithID ¶
func DumpBfdUDPSessionsWithID(authKeyIndex uint32, swIfIndexes ifaceidx.SwIfIndex, bfdSessionIndexes idxvpp.NameToIdx, vppChannel *govppapi.Channel) ([]*bfd_api.BfdUDPSessionDetails, error)
DumpBfdUDPSessionsWithID returns a list of BFD session's metadata
func InterfaceAdminDown ¶
InterfaceAdminDown calls binary API SwInterfaceSetFlagsReply with AdminUpDown=0
func InterfaceAdminUp ¶
InterfaceAdminUp calls binary API SwInterfaceSetFlagsReply with AdminUpDown=1
func ModifyBfdUDPSession ¶
func ModifyBfdUDPSession(bfdSession *bfd.SingleHopBFD_Session, swIfIndexes ifaceidx.SwIfIndex, vppChannel *govppapi.Channel) (err error)
ModifyBfdUDPSession modifies existing BFD session excluding authentication which cannot be changed this way
func SetBfdUDPAuthenticationKey ¶
func SetBfdUDPAuthenticationKey(bfdKey *bfd.SingleHopBFD_Key, vppChannel *govppapi.Channel) (err error)
SetBfdUDPAuthenticationKey creates configures new authentication key
func SetInterfaceMac ¶
SetInterfaceMac calls SwInterfaceSetMacAddress bin API
Types ¶
This section is empty.