Documentation ¶
Overview ¶
Package vppdump provides helpers to dump ACLs configured in VPP - per interface and total.
Index ¶
- func DumpACLInterfaces(indices []uint32, swIfIndices ifaceidx.SwIfIndex, log logging.Logger, ...) (map[uint32]*acl.AccessLists_Acl_Interfaces, error)
- func DumpACLRules(log logging.Logger, vppChannel vppcalls.VPPChannel, ...) (map[ACLIdentifier][]*acl.AccessLists_Acl_Rule, error)
- func DumpIPAcls(log logging.Logger, vch vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.ACLRule, error)
- func DumpInterfaceAcls(log logging.Logger, swIndex uint32, vppChannel vppcalls.VPPChannel, ...) (acl.AccessLists, uint8, error)
- func DumpMacIPAcls(log logging.Logger, vppChannel vppcalls.VPPChannel, ...) (map[ACLIdentifier][]acl_api.MacipACLRule, error)
- type ACLEntry
- type ACLIdentifier
- type ACLToInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpACLInterfaces ¶ added in v1.4.0
func DumpACLInterfaces(indices []uint32, swIfIndices ifaceidx.SwIfIndex, log logging.Logger, vppChannel vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[uint32]*acl.AccessLists_Acl_Interfaces, error)
DumpACLInterfaces returns a map of ACL indices with interfaces
func DumpACLRules ¶ added in v1.4.0
func DumpACLRules(log logging.Logger, vppChannel vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]*acl.AccessLists_Acl_Rule, error)
DumpACLRules returns all ruleData for every ACL
func DumpIPAcls ¶ added in v1.4.0
func DumpIPAcls(log logging.Logger, vch vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.ACLRule, error)
DumpIPAcls returns a list of all configured ACLs with IP-type ruleData.
func DumpInterfaceAcls ¶
func DumpInterfaceAcls(log logging.Logger, swIndex uint32, vppChannel vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (acl.AccessLists, uint8, error)
DumpInterfaceAcls finds interface in VPP and returns its ACL configuration
func DumpMacIPAcls ¶ added in v1.4.0
func DumpMacIPAcls(log logging.Logger, vppChannel vppcalls.VPPChannel, stopwatch *measure.Stopwatch) (map[ACLIdentifier][]acl_api.MacipACLRule, error)
DumpMacIPAcls returns a list of all configured ACL with IPMAC-type ruleData.
Types ¶
type ACLEntry ¶ added in v1.4.0
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 ¶ added in v1.4.0
ACLIdentifier contains fields for ACL index and Tag (used as a name in the configuration)
type ACLToInterface ¶ added in v1.4.0
ACLToInterface is definition of interface and all ACLs which are bound to the interface either as ingress or egress