constants

package
Version: v0.0.0-...-8a7b2b5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package constants defines constants that are shared amongst multiple gRIBIgo packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AFTTypeFromAFT

func AFTTypeFromAFT(a AFT) spb.AFTType

AFTTypeFromAFT returns the gRIBI AFTType from the enumerated AFT type.

Types

type AFT

type AFT int64

AFT is an enumerated type describing the AFTs available within gRIBI.

const (

	// All specifies all AFTs.
	All AFT
	// IPv4 specifies the IPv4 AFT.
	IPv4
	// NextHop specifies the next-hop AFT.
	NextHop
	// NextHopGroup specifies the next-hop-group AFT.
	NextHopGroup
)

type OpType

type OpType int64

OpType indicates the type of operation that was performed in contexts where it is not available, such as callbacks to user-provided functions.

const (

	// Add indicates that the operation called was an Add.
	Add OpType
	// Delete indicates that the operation called was a Delete.
	Delete
	// Replace indicates that the operation called was a Modify.
	Replace
)

func OpFromAFTOp

func OpFromAFTOp(o spb.AFTOperation_Operation) OpType

OpFromAFTOp returns an OpType from the AFT operation in the gRIBI protobuf.

func (OpType) String

func (o OpType) String() string

String returns a string name for the OpType.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL