Documentation ¶
Index ¶
- Constants
- func Alloc(new, current *api.AllocationTable) (*api.AllocationTable, error)
- func BuildResourceInternet() (*xir.Topology, error)
- func Dealloc(current *api.AllocationTable, mzid string) (*api.AllocationTable, error)
- func EmbeddingToRz(embedding *sfe.Embedding, maplinkids bool) (*portal.Realization, error)
- func GetResources() ([]*portal.Resource, error)
- func ParseDuration(d string) (time.Time, error)
- func ReadTable() (*api.AllocationTable, error)
- func Realize(tbroot *xir.Device, tbx, xp *xir.Topology, a *portal.AllocationTable, ...) (*portal.Realization, portal.Diagnostics, error)
- func Relinquish(rlz *portal.Realization) error
- func SiteList(rz *portal.Realization) []string
- func WriteTable(a *api.AllocationTable) error
- type RealizeParameters
- type VlanSegment
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 Dealloc ¶
func Dealloc(current *api.AllocationTable, mzid string) (*api.AllocationTable, error)
func EmbeddingToRz ¶
func GetResources ¶
func ParseDuration ¶ added in v1.1.40
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 ¶
Click to show internal directories.
Click to hide internal directories.