public class PathIntent extends ConnectivityIntent
| Modifier | Constructor and Description |
|---|---|
protected |
PathIntent()
Constructor for serializer.
|
|
PathIntent(ApplicationId appId,
TrafficSelector selector,
TrafficTreatment treatment,
Path path)
Creates a new point-to-point intent with the supplied ingress/egress
ports and using the specified explicit path.
|
|
PathIntent(ApplicationId appId,
TrafficSelector selector,
TrafficTreatment treatment,
Path path,
List<Constraint> constraints)
Creates a new point-to-point intent with the supplied ingress/egress
ports and using the specified explicit path.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInstallable()
Indicates whether or not the intent is installable.
|
Path |
path()
Returns the links which the traffic goes along.
|
String |
toString() |
static void |
validate(List<Link> links)
Validates that source element ID and destination element ID of a link are
different for the specified all links and that destination element ID of a link and source
element ID of the next adjacent source element ID are same for the specified all links.
|
constraints, resources, selector, treatmentappId, bindIdGenerator, equals, hashCode, id, resources, unbindIdGeneratorpublic PathIntent(ApplicationId appId, TrafficSelector selector, TrafficTreatment treatment, Path path)
appId - application identifierselector - traffic selectortreatment - treatmentpath - traversed linksNullPointerException - path is nullpublic PathIntent(ApplicationId appId, TrafficSelector selector, TrafficTreatment treatment, Path path, List<Constraint> constraints)
appId - application identifierselector - traffic selectortreatment - treatmentpath - traversed linksconstraints - optional list of constraintsNullPointerException - path is nullprotected PathIntent()
public static void validate(List<Link> links)
links - links to be validatedpublic Path path()
public boolean isInstallable()
IntentisInstallable in class IntentCopyright © 2015. All rights reserved.