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
- func (lp LinkPlan) Create() CanopyOps
- func (lp *LinkPlan) Delete() error
- func (lp LinkPlan) Destroy() CanopyOps
- func (l *LinkPlan) GetVersion() int64
- func (l *LinkPlan) Key() string
- func (lp *LinkPlan) Save() error
- func (l *LinkPlan) SetVersion(v int64)
- func (lp LinkPlan) String() string
- func (l *LinkPlan) Value() interface{}
- 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 ¶
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 ¶
func (*LinkPlan) SetVersion ¶
type VxlanConfig ¶
Click to show internal directories.
Click to hide internal directories.