Documentation ¶
Index ¶
- Variables
- func GetInfraLeaf(topo *xir.Net, node string) (*xir.Node, *xir.Endpoint, error)
- func GetNodeSwitch(tb *xir.Net, node, ifx string) (*xir.Node, *xir.Endpoint, *xir.Endpoint, error)
- func MapFabrics(spec cogs.LinkSpec, amap AccessMap, ltmap TrunkMap, topo *xir.Net) (TrunkMap, VtepMap, bool, error)
- func MapNodes(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 ¶
var PersistentTrunks = []int{
2,
}
PersistentTrunks are trunks that never go away
Functions ¶
func GetInfraLeaf ¶
GetInfraLeaf finds the infrastructure leaf switch attached to the specified node. If none exists nil is returned.
func GetNodeSwitch ¶ added in v0.3.5
GetNodeSwitch finds the switch attached to the specified node. If none exists nil is returned.
Types ¶
type AccessMap ¶
type AccessMap map[string]map[string]AccessPort
AccessMap is a switch -> port -> access-port mapping
func (AccessMap) Add ¶
func (m AccessMap) Add(leaf *xir.Node, ep *xir.Endpoint, value AccessPort)
Add an access port to a switch on the specified endpoint.
type AccessPort ¶
AccessPort encapsulates access port info
func (AccessPort) Create ¶
func (ap AccessPort) Create() *canopy.Property
Create returns a canopy proerty that creates an access port
func (AccessPort) Destroy ¶
func (ap AccessPort) Destroy() *canopy.Property
Destroy returns a canopy proerty taht destroys an access port
type CanopyOps ¶
type CanopyOps map[string][]*canopy.Property
CanopyOps is a map from a target hosts to a list of canopy properties. This is used for executing many canopy operations over many hosts.
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 ListLinkPlans ¶ added in v0.2.18
ListLinkPlans lists all link plans associated with the given materialization ID.
func NewLinkPlan ¶
NewLinkPlan creates a new link plan
func (*LinkPlan) GetVersion ¶
GetVersion returns the current datastore version of the object
func (*LinkPlan) SetVersion ¶
SetVersion sets the current datastore version of the object
type TrunkMap ¶
TrunkMap is a switch -> port -> trunk-port mapping
type TrunkPort ¶
TrunkPort encapsulates access port info
type Vtep ¶
Vtep encapsulates vtep info
type VxlanConfig ¶
VxlanConfig encapsulates information about a VXLAN configuration