public class IntentInstaller extends Object
| Constructor and Description |
|---|
IntentInstaller(org.onosproject.core.ApplicationId appId,
org.onosproject.net.intent.IntentService intentService,
IntentSynchronizationService intentSynchronizer)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.onosproject.net.intent.SinglePointToMultiPointIntent |
buildBrcIntent(org.onosproject.net.intent.Key key,
org.onosproject.net.FilteredConnectPoint src,
Set<org.onosproject.net.FilteredConnectPoint> dsts,
org.onosproject.net.EncapsulationType encap)
Builds a broadcast intent.
|
protected org.onosproject.net.intent.Key |
buildKey(String prefix,
org.onosproject.net.ConnectPoint cPoint,
String vplsName,
org.onlab.packet.MacAddress hostMac)
Builds an intent key either for single-point to multi-point or
multi-point to single-point intents, based on a prefix that defines
the type of intent, the single connect point representing the single
source or destination for that intent, the name of the VPLS the intent
belongs to, and the destination host MAC address the intent reaches.
|
protected org.onosproject.net.intent.MultiPointToSinglePointIntent |
buildUniIntent(org.onosproject.net.intent.Key key,
Set<org.onosproject.net.FilteredConnectPoint> srcs,
org.onosproject.net.FilteredConnectPoint dst,
org.onosproject.net.Host host,
org.onosproject.net.EncapsulationType encap)
Builds a unicast intent.
|
protected List<org.onosproject.net.intent.Intent> |
getIntentsFromVpls(String name)
Returns list of intents belongs to a VPLS.
|
protected boolean |
intentExists(org.onosproject.net.intent.Key intentKey)
Returns true if the specified intent exists; false otherwise.
|
protected void |
submitIntents(Collection<org.onosproject.net.intent.Intent> intents)
Requests to install the intents passed as argument to the Intent Service.
|
protected void |
withdrawIntents(Collection<org.onosproject.net.intent.Intent> intents)
Requests to withdraw the intents passed as argument to the Intent Service.
|
public IntentInstaller(org.onosproject.core.ApplicationId appId,
org.onosproject.net.intent.IntentService intentService,
IntentSynchronizationService intentSynchronizer)
appId - the Application IDintentService - the intent serviceintentSynchronizer - the intent synchronizer serviceprotected void submitIntents(Collection<org.onosproject.net.intent.Intent> intents)
intents - intents to be submittedprotected void withdrawIntents(Collection<org.onosproject.net.intent.Intent> intents)
intents - intents to be withdrawprotected List<org.onosproject.net.intent.Intent> getIntentsFromVpls(String name)
name - the name of the VPLSprotected org.onosproject.net.intent.SinglePointToMultiPointIntent buildBrcIntent(org.onosproject.net.intent.Key key,
org.onosproject.net.FilteredConnectPoint src,
Set<org.onosproject.net.FilteredConnectPoint> dsts,
org.onosproject.net.EncapsulationType encap)
key - key to identify the intentsrc - the source connect pointdsts - the destination connect pointsencap - the encapsulation typeprotected org.onosproject.net.intent.MultiPointToSinglePointIntent buildUniIntent(org.onosproject.net.intent.Key key,
Set<org.onosproject.net.FilteredConnectPoint> srcs,
org.onosproject.net.FilteredConnectPoint dst,
org.onosproject.net.Host host,
org.onosproject.net.EncapsulationType encap)
key - key to identify the intentsrcs - the source Connect Pointsdst - the destination Connect Pointhost - destination Hostencap - the encapsulation typeprotected org.onosproject.net.intent.Key buildKey(String prefix, org.onosproject.net.ConnectPoint cPoint, String vplsName, org.onlab.packet.MacAddress hostMac)
prefix - the key prefixcPoint - the connect point identifying the source/destinationvplsName - the name of the VPLShostMac - the source/destination MAC addressprotected boolean intentExists(org.onosproject.net.intent.Key intentKey)
intentKey - the intent key