realize

package
v1.1.41 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VniTable = "global-vnis"
)

Variables

This section is empty.

Functions

func Alloc

func Alloc(new, current *api.AllocationTable) (*api.AllocationTable, error)

func BuildResourceInternet

func BuildResourceInternet() (*xir.Topology, error)

func Dealloc

func Dealloc(current *api.AllocationTable, mzid string) (*api.AllocationTable, error)

func EmbeddingToRz

func EmbeddingToRz(embedding *sfe.Embedding, maplinkids bool) (*portal.Realization, error)

func GetResources

func GetResources() ([]*portal.Resource, error)

func ParseDuration added in v1.1.40

func ParseDuration(d string) (time.Time, error)

Return now + the given duration. The format of the duration is what is accepted by time.ParseDuration() with possibly prepended entries for weeks and days. Non integer weeks and days are not supported.

Format: NwNd(duration)

Where:

  • N can be any integer (within reason)
  • the week or day fields may be there or not
  • "(duration)" is valid for time.ParseDuration().

func ReadTable

func ReadTable() (*api.AllocationTable, error)

func Realize

func Realize(
	tbroot *xir.Device,
	tbx, xp *xir.Topology,
	a *portal.AllocationTable,
	resourcePool *portal.Pool,
	params RealizeParameters,
	exparams *xir.ExperimentParameters,
) (*portal.Realization, portal.Diagnostics, error)

func Relinquish

func Relinquish(rlz *portal.Realization) error

func SiteList added in v1.1.38

func SiteList(rz *portal.Realization) []string

func WriteTable

func WriteTable(a *api.AllocationTable) error

Types

type RealizeParameters

type RealizeParameters struct {
	Mzid    string
	Hash    string
	Creator string
	Vid     uint32
}

type VlanSegment

type VlanSegment struct {
	Vid uint32
	Vni uint32

	Hosts []string

	Vlans   []*portal.Endpoint
	EpVteps []*portal.Endpoint

	Access  []*portal.Waypoint
	Taps    []*portal.Waypoint
	Trunks  []*portal.Waypoint
	WpVteps []*portal.Waypoint
}

func NewVlanSegment

func NewVlanSegment() *VlanSegment

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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