Class BridgeProtocol
- java.lang.Object
-
- org.opennms.enlinkd.generator.protocol.Protocol<BridgeBridgeLink>
-
- org.opennms.enlinkd.generator.protocol.BridgeProtocol
-
public class BridgeProtocol extends Protocol<BridgeBridgeLink>
Creates a topology with Bridges and Segments. Call with: opennms:generate-topology --protocol bridge --nodes 10 will result in: bridge0 ------------------------------------ | | | | | bridge1 bridge3 bridge4 bridge5 Macs/Ip | | | no node ------- -------- ...subtree... | | | Segment host8 host9 ----------- | | Macs/Ip bridge2 no node | Segment If more than 10 nodes are requested then the tree repeats itself with bridge5 as the root node of the new subtree.
-
-
Constructor Summary
Constructors Constructor Description BridgeProtocol(TopologySettings topologySettings, TopologyContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TopologySettings
adoptAndVerifySettings(TopologySettings topologySettings)
protected void
createAndPersistProtocolSpecificEntities(java.util.List<OnmsNode> nodes)
protected TopologyGenerator.Protocol
getProtocol()
protected void
printProtocolSpecificMessage()
-
Methods inherited from class org.opennms.enlinkd.generator.protocol.Protocol
createAndPersistNetwork, createCategory, createIpInterface, createIpInterfaces, createNode, createNodes, createPairGenerator, createSnmpInterface, createSnmpInterfaces
-
-
-
-
Constructor Detail
-
BridgeProtocol
public BridgeProtocol(TopologySettings topologySettings, TopologyContext context)
-
-
Method Detail
-
printProtocolSpecificMessage
protected void printProtocolSpecificMessage()
- Overrides:
printProtocolSpecificMessage
in classProtocol<BridgeBridgeLink>
-
adoptAndVerifySettings
protected TopologySettings adoptAndVerifySettings(TopologySettings topologySettings)
- Overrides:
adoptAndVerifySettings
in classProtocol<BridgeBridgeLink>
-
getProtocol
protected TopologyGenerator.Protocol getProtocol()
- Specified by:
getProtocol
in classProtocol<BridgeBridgeLink>
-
createAndPersistProtocolSpecificEntities
protected void createAndPersistProtocolSpecificEntities(java.util.List<OnmsNode> nodes)
- Specified by:
createAndPersistProtocolSpecificEntities
in classProtocol<BridgeBridgeLink>
-
-