public final class PimInterface extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PimInterface.Builder
Builder for a PIM interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRoute(org.onosproject.net.mcast.McastRoute route,
org.onlab.packet.IpAddress nextHop,
org.onlab.packet.MacAddress nextHopMac) |
static PimInterface.Builder |
builder()
Returns a builder for a PIM interface.
|
void |
checkNeighborTimeouts()
Checks whether any of our neighbors have expired, and cleans up their
state if they have.
|
int |
getGenerationId()
Get our generation ID.
|
short |
getHoldtime()
Get the holdtime.
|
Interface |
getInterface()
Return the ONOS Interface.
|
org.onlab.packet.IpAddress |
getIpAddress()
Return a single "best" IP address.
|
List<org.onosproject.net.host.InterfaceIpAddress> |
getIpAddresses()
Get the set of IP Addresses associated with this interface.
|
Collection<PimNeighbor> |
getNeighbors()
Gets the neighbors seen on this interface.
|
int |
getPriority()
Get our hello priority.
|
int |
getPruneDelay()
Get the prune delay.
|
Collection<org.onosproject.net.mcast.McastRoute> |
getRoutes() |
void |
processHello(org.onlab.packet.Ethernet ethPkt)
Process an incoming PIM Hello message.
|
void |
processJoinPrune(org.onlab.packet.Ethernet ethPkt)
Process an incoming PIM JoinPrune message.
|
void |
removeRoute(org.onosproject.net.mcast.McastRoute route) |
void |
sendHello()
Multicast a hello message out our interface.
|
void |
sendJoins() |
PimInterface |
setInterface(Interface intf)
Set the ONOS Interface, it will override a previous value.
|
public Interface getInterface()
public PimInterface setInterface(Interface intf)
intf - ONOS Interfacepublic List<org.onosproject.net.host.InterfaceIpAddress> getIpAddresses()
public org.onlab.packet.IpAddress getIpAddress()
public short getHoldtime()
public int getPruneDelay()
public int getPriority()
public int getGenerationId()
public Collection<PimNeighbor> getNeighbors()
public Collection<org.onosproject.net.mcast.McastRoute> getRoutes()
public void checkNeighborTimeouts()
public void sendHello()
public void processHello(org.onlab.packet.Ethernet ethPkt)
ethPkt - the Ethernet packet headerpublic void processJoinPrune(org.onlab.packet.Ethernet ethPkt)
ethPkt - the Ethernet packet header.public void addRoute(org.onosproject.net.mcast.McastRoute route,
org.onlab.packet.IpAddress nextHop,
org.onlab.packet.MacAddress nextHopMac)
public void removeRoute(org.onosproject.net.mcast.McastRoute route)
public void sendJoins()
public static PimInterface.Builder builder()