vppdump

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package vppdump provides helpers to dump ACLs configured in VPP - per interface and total.

Index

Constants

View Source
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

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

func DumpIPACL

func DumpIPACL(swIfIndices ifaceidx.SwIfIndex, log logging.Logger, vppChannel govppapi.Channel,
	stopwatch *measure.Stopwatch) ([]*ACLEntry, error)

func DumpMACIPACL

func DumpMACIPACL(swIfIndices ifaceidx.SwIfIndex, log logging.Logger, vppChannel govppapi.Channel,
	stopwatch *measure.Stopwatch) ([]*ACLEntry, error)

type ACLIdentifier

type ACLIdentifier struct {
	ACLIndex uint32 `json:"acl_index"`
	Tag      string `json:"acl_tag"`
}

ACLIdentifier contains fields for ACL index and Tag (used as a name in the configuration)

type ACLToInterface

type ACLToInterface struct {
	SwIfIdx    uint32
	IngressACL []uint32
	EgressACL  []uint32
}

ACLToInterface is definition of interface and all ACLs which are bound to the interface either as ingress or egress

Jump to

Keyboard shortcuts

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