public final class PhysicalNetwork extends Network<PhysicalSwitch,PhysicalPort,PhysicalLink>
dpidMap, linkSet, neighborMap, neighborPortMap, switchSet| Modifier and Type | Method and Description |
|---|---|
void |
ackProbe(PhysicalPort port)
Acknowledges receipt of discovery probe to sender port.
|
void |
addPort(PhysicalPort port)
Adds port for discovery.
|
void |
addSwitch(PhysicalSwitch sw)
Add physical switch to topology and make it discoverable.
|
boolean |
boot()
Boots this network.
|
void |
createLink(PhysicalPort srcPort,
PhysicalPort dstPort)
Creates link and adds it to the topology.
|
SwitchDiscoveryManager |
getDiscoveryManager(long dpid)
Gets the discovery manager for the given switch.
|
static PhysicalNetwork |
getInstance() |
String |
getName() |
static org.jboss.netty.util.HashedWheelTimer |
getTimer() |
ArrayList<Uplink> |
getUplinkList() |
void |
handleLLDP(OFMessage msg,
Switch sw)
Handles LLDP packets by passing them on to the appropriate
SwitchDisoveryManager (which sent the original LLDP packet).
|
void |
removeLink(PhysicalPort srcPort,
PhysicalPort dstPort)
Removes link from the topology.
|
void |
removePort(SwitchDiscoveryManager sdm,
PhysicalPort port)
Removes port from discovery.
|
boolean |
removeSwitch(PhysicalSwitch sw)
Removes switch from topology discovery and mappings for this network.
|
static void |
reset() |
void |
sendMsg(OFMessage msg,
OVXSendMsg from) |
void |
setUplinkList(ArrayList<Uplink> uplinkList) |
addLink, getLink, getLinks, getNeighborPort, getNeighbors, getSwitch, getSwitches, removeLinkpublic static PhysicalNetwork getInstance()
public static org.jboss.netty.util.HashedWheelTimer getTimer()
public static void reset()
public void addSwitch(PhysicalSwitch sw)
addSwitch in class Network<PhysicalSwitch,PhysicalPort,PhysicalLink>sw - the switchpublic boolean removeSwitch(PhysicalSwitch sw)
removeSwitch in class Network<PhysicalSwitch,PhysicalPort,PhysicalLink>sw - the switchpublic void addPort(PhysicalPort port)
port - the portpublic void removePort(SwitchDiscoveryManager sdm, PhysicalPort port)
sdm - switch discovery managerport - the portpublic void createLink(PhysicalPort srcPort, PhysicalPort dstPort)
srcPort - source portdstPort - destination portpublic void removeLink(PhysicalPort srcPort, PhysicalPort dstPort)
srcPort - source portdstPort - destination portpublic void ackProbe(PhysicalPort port)
port - the portpublic void handleLLDP(OFMessage msg, Switch sw)
msg - the LLDP packet inthe - switchpublic void sendMsg(OFMessage msg, OVXSendMsg from)
public String getName()
public boolean boot()
Networkboot in class Network<PhysicalSwitch,PhysicalPort,PhysicalLink>public SwitchDiscoveryManager getDiscoveryManager(long dpid)
dpid - the datapath IDCopyright © 2015. All rights reserved.