Documentation ¶
Index ¶
- Constants
- Variables
- func DifferentNicWrapper(config export.L2Info, if1, if2 int) bool
- func DifferentNodeWrapper(config export.L2Info, if1, if2 int) bool
- func GetAllGraphVertices(count int) (l []int)
- func IsPTP(config export.L2Info, aInterface *l2lib.PtpIf) bool
- func IsPTPWrapper(config export.L2Info, if1 int) bool
- func NilWrapper() bool
- func PermutationsWithConstraints(config export.L2Info, algo [][][]int, l []int, s, e, n int, result bool, ...)
- func PrintSolution(config export.L2Info, p []int)
- func SameLan2(config export.L2Info, if1, if2 int, lans *[][]int) bool
- func SameLan2Wrapper(config export.L2Info, if1, if2 int) bool
- func SameLan3(config export.L2Info, if1, if2, if3 int, lans *[][]int) bool
- func SameLan3Wrapper(config export.L2Info, if1, if2, if3 int) bool
- func SameNic(ifaceName1, ifaceName2 *l2lib.PtpIf) bool
- func SameNicWrapper(config export.L2Info, if1, if2 int) bool
- func SameNode(if1, if2 *l2lib.PtpIf) bool
- func SameNodeWrapper(config export.L2Info, if1, if2 int) bool
- type AlgoFunction0
- type AlgoFunction1
- type AlgoFunction2
- type AlgoFunction3
- type Algorithm
- type ConfigFunc
- type ConfigFunc0
- type ConfigFunc1
- type ConfigFunc2
- type ConfigFunc3
Constants ¶
View Source
const WPCNICSubsystemID = "E810-XXV-4T"
Variables ¶
View Source
var GlobalConfig = configObject{}
Functions ¶
func DifferentNicWrapper ¶
Algo wrapper for !SameNic
func DifferentNodeWrapper ¶
algo wrapper for !SameNode
func GetAllGraphVertices ¶
func IsPTPWrapper ¶
Checks that an if an interface receives ptp frames
func PermutationsWithConstraints ¶
func PermutationsWithConstraints(config export.L2Info, algo [][][]int, l []int, s, e, n int, result bool, solutions *[][]int)
Recursive solver function. Creates a set of permutations and applies contraints at each step to reduce the solution graph and speed up execution
func SameLan2Wrapper ¶
wrapper for SameLan2
func SameLan3Wrapper ¶
algo wrapper for SameLan3
func SameNicWrapper ¶
wrapper for SameNic
Types ¶
type AlgoFunction0 ¶
type AlgoFunction0 int
list of Algorithm functions with zero params
const ( // same node StepNil AlgoFunction0 = iota )
See applyStep
type AlgoFunction1 ¶
type AlgoFunction1 int
list of Algorithm function with 1 params
const ( // same node StepIsPTP AlgoFunction1 = iota StepIsWPCNic )
See applyStep
type AlgoFunction2 ¶
type AlgoFunction2 int
list of Algorithm function with 2 params
const ( StepSameLan2 AlgoFunction2 = iota StepSameNic StepSameNode StepDifferentNode StepDifferentNic )
See applyStep
type AlgoFunction3 ¶
type AlgoFunction3 int
list of Algorithm function with 3 params
const (
StepSameLan3 AlgoFunction3 = iota
)
See applyStep
type Algorithm ¶
type Algorithm struct { // number of interfaces to solve IfCount int // Function to run algo TestSolution ConfigFunc }
type ConfigFunc1 ¶
Signature for algorithm functions with 1 params
type ConfigFunc2 ¶
Signature for algorithm functions with 2 params
Click to show internal directories.
Click to hide internal directories.