@Service(value=McastRouteTable.class) public final class McastRouteTable extends Object
| Modifier and Type | Method and Description |
|---|---|
McastRouteBase |
addRoute(org.onlab.packet.IpPrefix spfx,
org.onlab.packet.IpPrefix gpfx)
Add a multicast route to the MRIB.
|
McastRouteBase |
addRoute(String saddr,
String gaddr)
Add a multicast route to the MRIB.
|
org.onosproject.mfwd.impl.McastRoute |
findBestMatch(org.onlab.packet.IpPrefix saddr,
org.onlab.packet.IpPrefix gaddr)
This will first look up a Group entry.
|
McastRouteGroup |
findMcastGroup(org.onlab.packet.IpPrefix group)
Find the specific multicast group entry.
|
McastRouteSource |
findMcastSource(org.onlab.packet.IpPrefix saddr,
org.onlab.packet.IpPrefix gaddr)
Find the multicast (S, G) entry if it exists.
|
static McastRouteTable |
getInstance()
Get the single instance of this multicast group address.
|
Map<org.onlab.packet.IpPrefix,McastRouteGroup> |
getMrib4()
Get the IPv4 MRIB.
|
Map<org.onlab.packet.IpPrefix,McastRouteGroup> |
getMrib6()
Get the IPv6 MRIB.
|
String |
printMcastRouteTable()
Print out the multicast route table in it's entirety.
|
boolean |
removeEgress(String saddr,
String gaddr,
String egress)
Delete a specific egress from the MRIB.
|
void |
removeRoute(org.onlab.packet.IpPrefix spfx,
org.onlab.packet.IpPrefix gpfx)
Remove a multicast route.
|
void |
removeRoute(String saddr,
String gaddr)
Delete a multicast route from the MRIB.
|
String |
toString()
Print out a summary of groups in the MRIB.
|
public static McastRouteTable getInstance()
public Map<org.onlab.packet.IpPrefix,McastRouteGroup> getMrib4()
public Map<org.onlab.packet.IpPrefix,McastRouteGroup> getMrib6()
public McastRouteBase addRoute(String saddr, String gaddr)
saddr - source address * or x.x.x.x or x.x.x.x/ygaddr - group address x.x.x.x or x.x.x.x/ypublic McastRouteBase addRoute(org.onlab.packet.IpPrefix spfx, org.onlab.packet.IpPrefix gpfx)
spfx - the source prefixgpfx - the group prefixpublic boolean removeEgress(String saddr, String gaddr, String egress)
saddr - source address * or x.x.x.x or x.x.x.x/ygaddr - group address x.x.x.x or x.x.x.x/yegress - group address x.x.x.x or x.x.x.x/ypublic void removeRoute(String saddr, String gaddr)
saddr - source address * or x.x.x.x or x.x.x.x/ygaddr - group address x.x.x.x or x.x.x.x/ypublic void removeRoute(org.onlab.packet.IpPrefix spfx,
org.onlab.packet.IpPrefix gpfx)
spfx - the source prefixgpfx - the group prefixpublic McastRouteGroup findMcastGroup(org.onlab.packet.IpPrefix group)
group - the group addresspublic McastRouteSource findMcastSource(org.onlab.packet.IpPrefix saddr, org.onlab.packet.IpPrefix gaddr)
saddr - the source addressgaddr - the group addresspublic org.onosproject.mfwd.impl.McastRoute findBestMatch(org.onlab.packet.IpPrefix saddr,
org.onlab.packet.IpPrefix gaddr)
saddr - the source addressgaddr - the group addresspublic String printMcastRouteTable()
Copyright © 2015. All rights reserved.