public class SwitchDiscoveryManager extends Object implements LLDPEventHandler, OVXSendMsg, org.jboss.netty.util.TimerTask
Constructor and Description |
---|
SwitchDiscoveryManager(PhysicalSwitch sw,
Boolean... useBDDP)
Instantiates discovery manager for the given physical switch.
|
Modifier and Type | Method and Description |
---|---|
void |
ackProbe(PhysicalPort port)
Method called by remote port to acknowledge receipt of LLDP sent by
this port.
|
void |
addPort(PhysicalPort port)
Add physical port port to discovery process.
|
String |
getName() |
void |
handleLLDP(OFMessage msg,
Switch sw) |
void |
removePort(PhysicalPort port)
Removes physical port from discovery process.
|
void |
run(org.jboss.netty.util.Timeout t)
Execute this method every t milliseconds.
|
void |
sendMsg(OFMessage msg,
OVXSendMsg from) |
public SwitchDiscoveryManager(PhysicalSwitch sw, Boolean... useBDDP)
sw
- the physical switchuseBDDP
- flag to also use BDDP for discoverypublic void addPort(PhysicalPort port)
port
- the portpublic void removePort(PhysicalPort port)
port
- the portpublic void ackProbe(PhysicalPort port)
port
- the portpublic void sendMsg(OFMessage msg, OVXSendMsg from)
sendMsg
in interface OVXSendMsg
public String getName()
getName
in interface OVXSendMsg
public void handleLLDP(OFMessage msg, Switch sw)
handleLLDP
in interface LLDPEventHandler
public void run(org.jboss.netty.util.Timeout t)
run
in interface org.jboss.netty.util.TimerTask
t
- timeoutException
Copyright © 2015. All rights reserved.