constraints.js The constraints library is a list of rules for components. It is defining the network topology validation.
- Source:
Methods
(inner) checkFiberPro()
check the fiber properties rules.
- Source:
(inner) checkLink()
Check the ROADM, transceiver link and type rules.
- Source:
(inner) checkMisLink()
check the limits of amplifier, attenuator link rules.
- Source:
(inner) checkTypeForce()
To check the node type force rules.
- Source:
(inner) edgeStyleOnImportJSON()
Set fiber/patch/service smooth while on import network JSON file.
- Source:
(inner) nodeRule(from, to, nodeType)
Check connections rules between nodes.
Parameters:
| Name | Type | Description |
|---|---|---|
from |
string | Source node. |
to |
string | Destination node. |
nodeType |
string | Node type. |
- Source:
(inner) nodeRuleOnImportJSON()
Check the node link and type rules on import network JSON file.
- Source:
(inner) nodeValidationInEdge(cfrom, cto)
Check the node connections and fiber/patch/service rules on import network JSON file.
Parameters:
| Name | Type | Description |
|---|---|---|
cfrom |
string | Source node. |
cto |
string | Destination node. |
- Source: