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 ¶
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 )
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.
Click to show internal directories.
Click to hide internal directories.