tescale

package
v0.0.0-...-5e6ecb8 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tescale provides functions for tescale

Index

Constants

View Source
const (
	// VRFT vrf t
	VRFT = "vrf_t"
	// VRFR vrf r
	VRFR = "vrf_r"
	// VRFRD vrf rd
	VRFRD = "vrf_rd"

	// V4TunnelIPBlock tunnel IP block
	V4TunnelIPBlock = "198.18.0.1/16"
	// V4VIPIPBlock vip IP block
	V4VIPIPBlock = "198.18.196.1/22"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IDPool

type IDPool struct {
	// contains filtered or unexported fields
}

IDPool for NH and NHG IDs

func NewIDPool

func NewIDPool(base uint64) *IDPool

NewIDPool creates a new IDPool

func (*IDPool) NextNHGID

func (p *IDPool) NextNHGID() uint64

NextNHGID returns the next NHGID

func (*IDPool) NextNHID

func (p *IDPool) NextNHID() uint64

NextNHID returns the next NHID

type IPPool

type IPPool struct {
	// contains filtered or unexported fields
}

IPPool for IPs

func NewIPPool

func NewIPPool(entries []string) *IPPool

NewIPPool creates a new IPPool

func (*IPPool) AllIPs

func (p *IPPool) AllIPs() []string

AllIPs returns all IPs in the pool

func (*IPPool) NextIP

func (p *IPPool) NextIP() string

NextIP returns the next IP

type Param

type Param struct {
	V4TunnelCount         int
	V4TunnelNHGCount      int
	V4TunnelNHGSplitCount int
	EgressNHGSplitCount   int
	V4ReEncapNHGCount     int
}

Param TE holds scale parameters.

type VRFConfig

type VRFConfig struct {
	Name      string
	NHs       []fluent.GRIBIEntry
	NHGs      []fluent.GRIBIEntry
	V4Entries []fluent.GRIBIEntry
}

VRFConfig holds NH, NHG and IPv4 entries for the VRF.

func BuildVRFConfig

func BuildVRFConfig(dut *ondatra.DUTDevice, egressIPs []string, param Param) []*VRFConfig

BuildVRFConfig creates scale new scale VRF configurations.

Jump to

Keyboard shortcuts

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