public class CustomTopologySimulator extends TopologySimulator
clusterService, deviceCount, deviceIds, deviceLatch, deviceProviderService, deviceService, directory, hostCount, hostProviderService, hostService, infrastructurePorts, linkProviderService, linkService, localNode, log, mastershipService, maxWaitSeconds, topoShape| Constructor and Description |
|---|
CustomTopologySimulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDevice(org.onosproject.net.DeviceId id,
String name,
org.onosproject.net.Device.Type type,
int portCount)
Creates simulated device.
|
protected void |
createDevices()
Creates simulated devices.
|
void |
createHost(org.onosproject.net.HostId hostId,
org.onosproject.net.HostLocation location,
org.onlab.packet.IpAddress hostIp)
Creates a simulated host.
|
protected void |
createHosts()
Creates simulated hosts.
|
protected void |
createLinks()
Creates simulated links.
|
org.onosproject.net.DeviceId |
deviceId(String name)
Returns the identifier of the device with the specified alias.
|
org.onosproject.net.DeviceId |
nextDeviceId()
Returns the next device id.
|
org.onosproject.net.HostId |
nextHostId()
Returns the next host id.
|
buildPorts, contains, createDevice, createDevice, createDevice, createHosts, createLink, createLink, createLink, init, prepareForDeviceEvents, processTopoShape, removeDevices, removeHosts, removeLinks, setUpTopology, tearDownTopology, waitForDeviceEventspublic org.onosproject.net.DeviceId nextDeviceId()
public org.onosproject.net.HostId nextHostId()
public org.onosproject.net.DeviceId deviceId(String name)
name - device namepublic void createDevice(org.onosproject.net.DeviceId id,
String name,
org.onosproject.net.Device.Type type,
int portCount)
id - device identifiername - device nametype - device typeportCount - number of device portspublic void createHost(org.onosproject.net.HostId hostId,
org.onosproject.net.HostLocation location,
org.onlab.packet.IpAddress hostIp)
hostId - host identifierlocation - host locationhostIp - host IP addressprotected void createDevices()
TopologySimulatorcreateDevices in class TopologySimulatorprotected void createLinks()
TopologySimulatorcreateLinks in class TopologySimulatorprotected void createHosts()
TopologySimulatorcreateHosts in class TopologySimulator