public class McastRouteBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dirty |
protected Set<McastConnectPoint> |
egressPoints |
protected org.onlab.packet.IpPrefix |
gaddr |
protected McastConnectPoint |
ingressPoint |
protected org.onosproject.net.intent.Key |
intentKey
If the intentKey is null that means no intent has
been installed.
|
protected boolean |
isGroup |
protected org.onlab.packet.IpPrefix |
saddr |
| Constructor and Description |
|---|
McastRouteBase(org.onlab.packet.IpPrefix gpfx)
Set the source and group address value of a (*, G) group.
|
McastRouteBase(org.onlab.packet.IpPrefix saddr,
org.onlab.packet.IpPrefix gaddr)
Create a multicast route constructor.
|
McastRouteBase(String gaddr)
Create a multicast group table entry.
|
McastRouteBase(String saddr,
String gaddr)
Create a multicast route.
|
| Modifier and Type | Method and Description |
|---|---|
McastConnectPoint |
addEgressPoint(org.onosproject.net.ConnectPoint cp)
Add an egress McastConnectPoint.
|
McastConnectPoint |
addEgressPoint(org.onosproject.net.ConnectPoint cp,
McastConnectPoint.JoinSource interest)
Add an egress McastConnectPoint.
|
McastConnectPoint |
addEgressPoint(String connectPoint)
Add an egress connect point from a string.
|
McastConnectPoint |
addEgressPoint(String cpstr,
McastConnectPoint.JoinSource interest)
Add an egress McastConnectPoint.
|
boolean |
addIngressPoint(org.onosproject.net.ConnectPoint ingress)
Add an ingress point to this route.
|
boolean |
addIngressPoint(String connectPoint)
Add or modify the ingress connect point.
|
McastConnectPoint |
findEgressConnectPoint(org.onosproject.net.ConnectPoint cp)
Find the Multicast Connect Point that contains the ConnectPoint.
|
boolean |
getDirty()
Get the dirty state.
|
Set<org.onosproject.net.ConnectPoint> |
getEgressConnectPoints()
Get egress McastConnectPoints points as ConnectPoints for intent system.
|
Set<McastConnectPoint> |
getEgressPoints()
Get egress connect points for the route.
|
org.onlab.packet.IpPrefix |
getGaddr()
Get the multicast group address.
|
McastConnectPoint |
getIngressPoint()
Get the ingress McastConnectPoint.
|
org.onosproject.net.intent.Key |
getIntentKey()
Get the intent key represented by this route.
|
int |
getPuntCount()
Get the number of times the packet has been punted.
|
org.onlab.packet.IpPrefix |
getSaddr()
Get the multicast source address.
|
void |
incrementPuntCount()
Increment the punt count.
|
boolean |
isGroup()
Is this a multicast group route?
|
boolean |
isIp4()
Is this an IPv4 multicast route.
|
boolean |
isIp6()
Is this an IPv6 multicast route.
|
boolean |
isSource() |
boolean |
removeEgressPoint(org.onosproject.net.ConnectPoint cp)
Remove an egress from McastConnectPoint.
|
boolean |
removeEgressPoint(String connectPoint)
Remove an egress from McastConnectPoint.
|
boolean |
removeInterest(McastConnectPoint mcp,
McastConnectPoint.JoinSource interest)
Remove specified interest from the given ConnectPoint.
|
void |
setDirty(boolean dirty)
Set the dirty state to indicate that something changed.
|
void |
setIntent()
Have the McastIntentManager create and set the intent, then save the intent key.
|
void |
setIntent(org.onosproject.net.intent.SinglePointToMultiPointIntent intent)
Set the Intent key.
|
String |
toString()
Pretty Print this Multicast Route.
|
void |
withdrawIntent()
Withdraw the intent and set the key to null.
|
protected final org.onlab.packet.IpPrefix gaddr
protected final org.onlab.packet.IpPrefix saddr
protected McastConnectPoint ingressPoint
protected Set<McastConnectPoint> egressPoints
protected boolean isGroup
protected boolean dirty
protected org.onosproject.net.intent.Key intentKey
public McastRouteBase(String saddr, String gaddr)
saddr - source addressgaddr - multicast group addresspublic McastRouteBase(String gaddr)
gaddr - multicast group addresspublic McastRouteBase(org.onlab.packet.IpPrefix gpfx)
gpfx - the group prefix addresspublic McastRouteBase(org.onlab.packet.IpPrefix saddr,
org.onlab.packet.IpPrefix gaddr)
saddr - source addressgaddr - group addresspublic org.onlab.packet.IpPrefix getGaddr()
public org.onlab.packet.IpPrefix getSaddr()
public boolean isIp4()
public boolean isIp6()
public boolean isGroup()
public boolean isSource()
public boolean getDirty()
public void setDirty(boolean dirty)
dirty - set the dirty bitpublic boolean addIngressPoint(org.onosproject.net.ConnectPoint ingress)
ingress - incoming connect pointpublic boolean addIngressPoint(String connectPoint)
connectPoint - string switch device Idpublic McastConnectPoint getIngressPoint()
public McastConnectPoint addEgressPoint(org.onosproject.net.ConnectPoint cp)
cp - egress connect pointpublic McastConnectPoint addEgressPoint(String connectPoint)
connectPoint - string representing a connect pointpublic McastConnectPoint addEgressPoint(org.onosproject.net.ConnectPoint cp, McastConnectPoint.JoinSource interest)
cp - the egress connect pointinterest - the source of interest for mcast trafficpublic boolean removeEgressPoint(String connectPoint)
connectPoint - the egress connect pointpublic boolean removeEgressPoint(org.onosproject.net.ConnectPoint cp)
cp - the egress connect pointpublic McastConnectPoint addEgressPoint(String cpstr, McastConnectPoint.JoinSource interest)
cpstr - deviceId/port of the connect pointinterest - the protocol that has shown interest in this routepublic Set<McastConnectPoint> getEgressPoints()
public Set<org.onosproject.net.ConnectPoint> getEgressConnectPoints()
public McastConnectPoint findEgressConnectPoint(org.onosproject.net.ConnectPoint cp)
cp - the regular ConnectPoint to matchpublic boolean removeInterest(McastConnectPoint mcp, McastConnectPoint.JoinSource interest)
mcp - connect point.interest - the protocol interested in this multicast streampublic int getPuntCount()
public void incrementPuntCount()
public void setIntent()
public void setIntent(org.onosproject.net.intent.SinglePointToMultiPointIntent intent)
intent - the multicast intentpublic org.onosproject.net.intent.Key getIntentKey()
public void withdrawIntent()
Copyright © 2015. All rights reserved.