{"modulePath":"github.com/ligato/vpp-agent","version":"v1.4.1","isLatest":false,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package linuxcalls\n\nPackage linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or Linux interfaces in general.\n\n## Functions\n\n```go\nfunc AddInterfaceIP(log logging.Logger, ifName string, addr *net.IPNet, timeLog measure.StopWatchEntry) error\n```\nAddInterfaceIP calls AddrAdd Netlink API.\n\n```go\nfunc AddVethInterfacePair(ifName, peerIfName string, log logging.Logger, timeLog measure.StopWatchEntry) error\n```\nAddVethInterfacePair calls LinkAdd Netlink API for the Netlink.Veth interface type.\n\n```go\nfunc DelInterfaceIP(ifName string, addr *net.IPNet, timeLog measure.StopWatchEntry) error\n```\nDelInterfaceIP calls AddrDel Netlink API.\n\n```go\nfunc DelVethInterfacePair(ifName, peerIfName string, log logging.Logger, timeLog measure.StopWatchEntry) error\n```\nDelVethInterfacePair calls LinkDel Netlink API for the Netlink.Veth interface type.\n\n```go\nfunc GetInterfaceType(ifName string, timeLog measure.StopWatchEntry) (string, error)\n```\nGetInterfaceType returns the type (string representation) of a given interface.\n\n```go\nfunc GetVethPeerName(ifName string, timeLog measure.StopWatchEntry) (string, error)\n```\nGetVethPeerName return the peer name for a given VETH interface.\n\n```go\nfunc InterfaceAdminDown(ifName string, timeLog measure.StopWatchEntry) error\n```\nInterfaceAdminDown calls Netlink API LinkSetDown.\n\n```go\nfunc InterfaceAdminUp(ifName string, timeLog measure.StopWatchEntry) error\n```\nInterfaceAdminUp calls Netlink API LinkSetUp.\n\n```go\nfunc InterfaceExists(ifName string, timeLog measure.StopWatchEntry) (bool, error)\n```\nInterfaceExists checks if interface with a given name exists.\n\n```go\nfunc RenameInterface(ifName string, newName string, timeLog measure.StopWatchEntry) error\n```\nRenameInterface changes the name of the interface \\\u003cifName\u003e to \\\u003cnewName\u003e.\n\n```go\nfunc SetInterfaceMTU(ifName string, mtu int, timeLog measure.StopWatchEntry) error\n```\nSetInterfaceMTU calls LinkSetMTU Netlink API.\n\n```go\nfunc SetInterfaceMac(ifName string, macAddress string, timeLog measure.StopWatchEntry) error\n```\nSetInterfaceMac calls LinkSetHardwareAddr netlink API.\n\n","path":"github.com/ligato/vpp-agent/plugins/linuxplugin/ifplugin/linuxcalls","name":"linuxcalls","synopsis":"Package linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or Linux interfaces in general.","isRedistributable":true}
