wiring

package
v0.6.19 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RACK    = "rack-1"
	CONTROL = "control-1"
)
View Source
const (
	SPINE_OFFSET = 200
	LEAF_OFFSET  = 100

	// 1 is reserved for the control VIP
	MCLAG_SESSION_IP_NET = 5
	SWITCH_IP_NET        = 10
	PROTOCOL_IP_NET      = 11
	VTEP_IP_NET          = 12
	CONTROL_IP_NET       = 20 // single /24 is more than enough
	FABRIC_IP_NET        = 30 // can take more than one /24, let's book 10
)

Variables

This section is empty.

Functions

func Hydrate

func Hydrate(data *wiring.Data, cfg *HydrateConfig) error

func HydratePath

func HydratePath(wiringPath string) error

func IsHydrated

func IsHydrated(data *wiring.Data) error

func Visualize

func Visualize(wiringPath string) (string, error)

Types

type Builder added in v0.6.12

type Builder struct {
	Defaulted         bool              // true if default should be called on created objects
	Hydrated          bool              // true if wiring diagram should be hydrated
	FabricMode        config.FabricMode // fabric mode
	ChainControlLink  bool              // true if not all switches attached directly to control node
	ControlLinksCount uint8             // number of control links to generate
	SpinesCount       uint8             // number of spines to generate
	FabricLinksCount  uint8             // number of links for each spine <> leaf pair
	MCLAGLeafsCount   uint8             // number of MCLAG server-leafs to generate
	OrphanLeafsCount  uint8             // number of non-MCLAG server-leafs to generate
	MCLAGSessionLinks uint8             // number of MCLAG session links to generate
	MCLAGPeerLinks    uint8             // number of MCLAG peer links to generate
	VPCLoopbacks      uint8             // number of VPC loopbacks to generate per leaf switch
	// contains filtered or unexported fields
}

func (*Builder) Build added in v0.6.12

func (b *Builder) Build() (*wiring.Data, error)

type HydrateConfig

type HydrateConfig struct {
	Subnet       string
	SpineASN     uint32
	LeafASNStart uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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