constants

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: Apache-2.0 Imports: 1 Imported by: 6

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
	// MPLS specifies the label-entry/MPLS AFT.
	MPLS
	// IPv6 speciifes the IPv6 AFT.
	IPv6
)

func (AFT) String

func (a AFT) String() string

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.

Jump to

Keyboard shortcuts

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