vppcalls

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package vppcalls contains wrappers over VPP ACL binary APIs.

Index

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

func CheckMsgCompatibilityForACL(log logging.Logger, vppChannel *govppapi.Channel) error

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

func SetACLToInterfacesAsIngress

func SetACLToInterfacesAsIngress(aclIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, log logging.Logger,
	vppChannel *api.Channel, stopwatch *measure.Stopwatch) error

SetACLToInterfacesAsIngress sets ACL to all provided interfaces as ingress

func SetMacIPAclToInterface

func SetMacIPAclToInterface(aclIndex uint32, interfaces []string, swIfIndexes ifaceidx.SwIfIndex, log logging.Logger,
	vppChannel *api.Channel, timeLog measure.StopWatchEntry) error

SetMacIPAclToInterface adds L2 ACL to interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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