Documentation ¶
Overview ¶
Package vppcalls contains wrappers over VPP ACL binary APIs.
Index ¶
- func AddIPAcl(rules []*acl.AccessLists_Acl_Rule, aclName string, log logging.Logger, ...) (uint32, error)
- func AddMacIPAcl(rules []*acl.AccessLists_Acl_Rule, aclName string, log logging.Logger, ...) (uint32, error)
- func CheckMsgCompatibilityForACL(log logging.Logger, vppChannel *govppapi.Channel) error
- func DeleteIPAcl(aclIndex uint32, log logging.Logger, vppChannel *api.Channel, ...) error
- func DeleteMacIPAcl(aclIndex uint32, log logging.Logger, vppChannel *api.Channel, ...) error
- func DumpIPAcl(log logging.Logger, vppChannel *govppapi.Channel, ...) error
- func DumpInterface(swIndex uint32, vppChannel *govppapi.Channel, timeLog measure.StopWatchEntry) (*acl.ACLInterfaceListDetails, error)
- func DumpInterfaces(swIndexes idxvpp.NameToIdxRW, log logging.Logger, vppChannel *govppapi.Channel, ...) error
- func DumpMacIPAcl(log logging.Logger, vppChannel *govppapi.Channel, ...) error
- func ModifyIPAcl(aclIndex uint32, rules []*acl.AccessLists_Acl_Rule, aclName string, ...) error
- func RemoveIPEgressACLFromInterfaces(removedACLIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, ...) error
- func RemoveIPIngressACLFromInterfaces(removedACLIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, ...) error
- func RemoveMacIPIngressACLFromInterfaces(removedACLIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, ...) error
- func SetACLToInterfacesAsEgress(aclIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, ...) error
- func SetACLToInterfacesAsIngress(aclIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, ...) error
- func SetMacIPAclToInterface(aclIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddIPAcl ¶
func AddIPAcl(rules []*acl.AccessLists_Acl_Rule, aclName string, log logging.Logger, vppChannel *api.Channel, timeLog measure.StopWatchEntry) (uint32, error)
AddIPAcl create new L3/4 ACL. Input index == 0xffffffff, VPP provides index in reply.
func AddMacIPAcl ¶
func AddMacIPAcl(rules []*acl.AccessLists_Acl_Rule, aclName string, log logging.Logger, vppChannel *api.Channel, timeLog measure.StopWatchEntry) (uint32, error)
AddMacIPAcl create new L2 MAC IP ACL. VPP provides index in reply.
func CheckMsgCompatibilityForACL ¶
CheckMsgCompatibilityForACL checks if CRSs are compatible with VPP in runtime
func DeleteIPAcl ¶
func DeleteIPAcl(aclIndex uint32, log logging.Logger, vppChannel *api.Channel, timeLog measure.StopWatchEntry) error
DeleteIPAcl removes L3/L4 ACL
func DeleteMacIPAcl ¶
func DeleteMacIPAcl(aclIndex uint32, log logging.Logger, vppChannel *api.Channel, timeLog measure.StopWatchEntry) error
DeleteMacIPAcl removes L2 ACL
func DumpIPAcl ¶
func DumpIPAcl(log logging.Logger, vppChannel *govppapi.Channel, timeLog measure.StopWatchEntry) error
DumpIPAcl test function
func DumpInterface ¶
func DumpInterface(swIndex uint32, vppChannel *govppapi.Channel, timeLog measure.StopWatchEntry) (*acl.ACLInterfaceListDetails, error)
DumpInterface finds interface in VPP and returns its ACL configuration
func DumpInterfaces ¶
func DumpInterfaces(swIndexes idxvpp.NameToIdxRW, log logging.Logger, vppChannel *govppapi.Channel, timeLog measure.StopWatchEntry) error
DumpInterfaces test function
func DumpMacIPAcl ¶
func DumpMacIPAcl(log logging.Logger, vppChannel *govppapi.Channel, timeLog measure.StopWatchEntry) error
DumpMacIPAcl test function
func ModifyIPAcl ¶
func ModifyIPAcl(aclIndex uint32, rules []*acl.AccessLists_Acl_Rule, aclName string, log logging.Logger, vppChannel *api.Channel, timeLog measure.StopWatchEntry) error
ModifyIPAcl uses index (provided by VPP) to identify ACL which is modified
func RemoveIPEgressACLFromInterfaces ¶
func RemoveIPEgressACLFromInterfaces(removedACLIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, log logging.Logger, vppChannel *api.Channel, stopwatch *measure.Stopwatch) error
RemoveIPEgressACLFromInterfaces removes ACL from interfaces
func RemoveIPIngressACLFromInterfaces ¶
func RemoveIPIngressACLFromInterfaces(removedACLIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, log logging.Logger, vppChannel *api.Channel, stopwatch *measure.Stopwatch) error
RemoveIPIngressACLFromInterfaces removes ACL from interfaces
func RemoveMacIPIngressACLFromInterfaces ¶
func RemoveMacIPIngressACLFromInterfaces(removedACLIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, log logging.Logger, vppChannel *api.Channel, timeLog measure.StopWatchEntry) error
RemoveMacIPIngressACLFromInterfaces removes L2 ACL from interfaces
func SetACLToInterfacesAsEgress ¶
func SetACLToInterfacesAsEgress(aclIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, log logging.Logger, vppChannel *api.Channel, stopwatch *measure.Stopwatch) error
SetACLToInterfacesAsEgress sets ACL to all provided interfaces as egress
Types ¶
This section is empty.