vppcalls

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

func AddInterfaceIP(ifIdx uint32, addr *net.IPNet, vppChan *govppapi.Channel) error

AddInterfaceIP calls SwInterfaceAddDelAddress bin API with IsAdd=1

func AddLoopbackInterface

func AddLoopbackInterface(name string, vppChan *govppapi.Channel) (swIndex uint32, err error)

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

func CheckMsgCompatibilityForBfd(vppChan *govppapi.Channel) error

CheckMsgCompatibilityForBfd checks if bfd CRSs are compatible with VPP in runtime

func CheckMsgCompatibilityForInterface

func CheckMsgCompatibilityForInterface(vppChan *govppapi.Channel) error

CheckMsgCompatibilityForInterface checks if interface CRSs are compatible with VPP in runtime

func DelInterfaceIP

func DelInterfaceIP(ifIdx uint32, addr *net.IPNet, vppChan *govppapi.Channel) error

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

func DeleteBfdEchoFunction(vppChannel *govppapi.Channel) (err error)

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

func DeleteLoopbackInterface(idx uint32, vppChan *govppapi.Channel) error

DeleteLoopbackInterface calls DeleteLoopback bin API

func DeleteMemifInterface

func DeleteMemifInterface(idx uint32, vppChan *govppapi.Channel) error

DeleteMemifInterface calls MemifDelete bin API

func DeleteTapInterface

func DeleteTapInterface(idx uint32, vppChan *govppapi.Channel) error

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

func InterfaceAdminDown(ifIdx uint32, vppChan *govppapi.Channel) error

InterfaceAdminDown calls binary API SwInterfaceSetFlagsReply with AdminUpDown=0

func InterfaceAdminUp

func InterfaceAdminUp(ifIdx uint32, vppChan *govppapi.Channel) error

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

func SetInterfaceMac(ifIdx uint32, macAddress string, vppChan *govppapi.Channel) error

SetInterfaceMac calls SwInterfaceSetMacAddress bin API

Types

This section is empty.

Jump to

Keyboard shortcuts

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