Documentation
¶
Index ¶
- Variables
- func GetInfraLeaf(topo *xir.Net, node string) (*xir.Node, *xir.Endpoint, error)
- func GetLeaf(tb *xir.Net, node, ifx string) (*xir.Node, *xir.Endpoint, error)
- func MapFabrics(spec cogs.LinkSpec, amap AccessMap, topo *xir.Net) (TrunkMap, VtepMap, error)
- func MapLeaves(spec cogs.LinkSpec, topo *xir.Net) (AccessMap, TrunkMap, error)
- type AccessMap
- type AccessPort
- type CanopyOps
- type LinkPlan
- type TrunkMap
- type TrunkPort
- type Vtep
- type VtepMap
- type VxlanConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var PersistentTrunks = []int{
2,
}
Functions ¶
func GetInfraLeaf ¶ added in v0.2.10
func MapFabrics ¶
Types ¶
type AccessMap ¶
type AccessMap map[*xir.Node]map[*xir.Endpoint]AccessPort
leaf -> port -> AccessPort
func (AccessMap) Add ¶
func (m AccessMap) Add(leaf *xir.Node, ep *xir.Endpoint, value AccessPort)
type AccessPort ¶
func (AccessPort) Create ¶
func (ap AccessPort) Create() *canopy.Property
func (AccessPort) Destroy ¶
func (ap AccessPort) Destroy() *canopy.Property
type LinkPlan ¶
type LinkPlan struct {
// materialization id
Mzid string
// id of the experiment link this plan is being created for
XlinkId string
LinkKind cogs.LinkKind
AccessMap AccessMap
TrunkMap TrunkMap
VtepMap VtepMap
// contains filtered or unexported fields
}
LinkPlan defines a deployment plan for a link in terms of the ports and virtual interfaces that must be created to materialize it.
func NewLinkPlan ¶
func (*LinkPlan) GetVersion ¶ added in v0.1.13
func (*LinkPlan) SetVersion ¶ added in v0.1.13
type VxlanConfig ¶
Click to show internal directories.
Click to hide internal directories.