mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-24 22:01:02 +02:00
adding specified treatments when uninstalling intents
Change-Id: I4a200a6df9fce048321846c6df9b9e79457f7dfd
This commit is contained in:
parent
7466d61447
commit
2be9bea97d
@ -123,8 +123,9 @@ public class PathIntentInstaller implements IntentInstaller<PathIntent> {
|
|||||||
while (links.hasNext()) {
|
while (links.hasNext()) {
|
||||||
builder.matchInport(prev.port());
|
builder.matchInport(prev.port());
|
||||||
Link link = links.next();
|
Link link = links.next();
|
||||||
TrafficTreatment treatment = builder()
|
TrafficTreatment treatment = // if this is the last flow rule, apply the intent's treatments
|
||||||
.setOutput(link.src().port()).build();
|
(links.hasNext() ? builder() : builder(intent.treatment()))
|
||||||
|
.setOutput(link.src().port()).build();
|
||||||
FlowRule rule = new DefaultFlowRule(link.src().deviceId(),
|
FlowRule rule = new DefaultFlowRule(link.src().deviceId(),
|
||||||
builder.build(), treatment,
|
builder.build(), treatment,
|
||||||
123, appId, (short) (intent.id().fingerprint() & 0xffff), 0, true);
|
123, appId, (short) (intent.id().fingerprint() & 0xffff), 0, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user