vppdump

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

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

func DumpACLs added in v1.4.0

func DumpACLs(log logging.Logger, swIfIndices ifaceidx.SwIfIndex, vppChannel vppcalls.VPPChannel,
	stopwatch *measure.Stopwatch) ([]*ACLEntry, error)

DumpACLs return a list of all configured ACLs including ruleData and interfaces

type ACLIdentifier added in v1.4.0

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 added in v1.4.0

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