wiring

package
v0.6.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

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
)
View Source
const (
	RACK    = "rack-1"
	CONTROL = "control-1"
)

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 HydrateConfig

type HydrateConfig struct {
	Subnet       string
	SpineASN     uint32
	LeafASNStart uint32
}

type SpineLeafBuilder

type SpineLeafBuilder struct {
	Defaulted bool // true if default should be called on created objects
	Hydrated  bool // true if wiring diagram should be hydrated
	// VLAB              bool  // true if VLAB mode is enabled
	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
	// contains filtered or unexported fields
}

func (*SpineLeafBuilder) Build

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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