Documentation ¶
Overview ¶
Package vppdump provides helpers to dump ACLs configured in VPP - per interface and total.
Index ¶
- Constants
- func DumpIPACLInterfaces(indices []uint32, swIfIndices ifaceidx.SwIfIndex, log logging.Logger, ...) (map[uint32]*acl.AccessLists_Acl_Interfaces, error)
- func DumpIPAcls(log logging.Logger, vch govppapi.Channel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.ACLRule, error)
- func DumpInterfaceIPACLs(swIndex uint32, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (*acl_api.ACLInterfaceListDetails, error)
- func DumpInterfaceIPAcls(log logging.Logger, swIndex uint32, vppChannel govppapi.Channel, ...) (acl.AccessLists, error)
- func DumpInterfaceMACIPACLs(swIndex uint32, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (*acl_api.MacipACLInterfaceListDetails, error)
- func DumpInterfaceMACIPAcls(log logging.Logger, swIndex uint32, vppChannel govppapi.Channel, ...) (acl.AccessLists, error)
- func DumpInterfaces(vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) ([]*acl_api.ACLInterfaceListDetails, []*acl_api.MacipACLInterfaceListDetails, ...)
- func DumpMACIPACLInterfaces(indices []uint32, swIfIndices ifaceidx.SwIfIndex, log logging.Logger, ...) (map[uint32]*acl.AccessLists_Acl_Interfaces, error)
- func DumpMacIPAcls(log logging.Logger, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.MacipACLRule, error)
- type ACLEntry
- type ACLIdentifier
- type ACLToInterface
Constants ¶
const ( ICMPv4Proto = 1 TCPProto = 6 UDPProto = 17 ICMPv6Proto = 58 )
Protocol types that can occur in ACLs
Variables ¶
This section is empty.
Functions ¶
func DumpIPACLInterfaces ¶
func DumpIPACLInterfaces(indices []uint32, swIfIndices ifaceidx.SwIfIndex, log logging.Logger, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (map[uint32]*acl.AccessLists_Acl_Interfaces, error)
DumpACLInterfaces returns a map of IP ACL indices with interfaces
func DumpIPAcls ¶
func DumpIPAcls(log logging.Logger, vch govppapi.Channel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.ACLRule, error)
DumpIPAcls returns a list of all configured ACLs with IP-type ruleData.
func DumpInterfaceIPACLs ¶
func DumpInterfaceIPACLs(swIndex uint32, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (*acl_api.ACLInterfaceListDetails, error)
DumpInterface finds interface in VPP and returns its IP ACL configuration.
func DumpInterfaceIPAcls ¶
func DumpInterfaceIPAcls(log logging.Logger, swIndex uint32, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (acl.AccessLists, error)
DumpInterfaceAcls finds interface in VPP and returns its ACL configuration func DumpInterfaceIPAclsDetails(log logging.Logger, swIndex uint32, vppChannel api.Channel, stopwatch *measure.Stopwatch) (acl.AccessLists, error) {
func DumpInterfaceMACIPACLs ¶
func DumpInterfaceMACIPACLs(swIndex uint32, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (*acl_api.MacipACLInterfaceListDetails, error)
DumpInterface finds interface in VPP and returns its MACIP ACL configuration.
func DumpInterfaceMACIPAcls ¶
func DumpInterfaceMACIPAcls(log logging.Logger, swIndex uint32, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (acl.AccessLists, error)
DumpInterfaceMACIPAcls finds interface in VPP and returns its MACIP ACL configuration
func DumpInterfaces ¶
func DumpInterfaces(vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) ([]*acl_api.ACLInterfaceListDetails, []*acl_api.MacipACLInterfaceListDetails, error)
DumpInterfaces finds all interfaces in VPP and returns their ACL configurations
func DumpMACIPACLInterfaces ¶
func DumpMACIPACLInterfaces(indices []uint32, swIfIndices ifaceidx.SwIfIndex, log logging.Logger, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) ( map[uint32]*acl.AccessLists_Acl_Interfaces, error)
DumpMACIPACLInterfaces returns a map of MACIP ACL indices with interfaces
func DumpMacIPAcls ¶
func DumpMacIPAcls(log logging.Logger, vppChannel govppapi.Channel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.MacipACLRule, error)
DumpMacIPAcls returns a list of all configured ACL with IPMAC-type ruleData.
Types ¶
type ACLEntry ¶
type ACLEntry struct { Identifier *ACLIdentifier ACLDetails *acl.AccessLists_Acl `json:"acl_details"` }
ACLEntry is cumulative object with ACL identification and details with all ruleData and interfaces belonging to the ACL
type ACLIdentifier ¶
ACLIdentifier contains fields for ACL index and Tag (used as a name in the configuration)
type ACLToInterface ¶
ACLToInterface is definition of interface and all ACLs which are bound to the interface either as ingress or egress