commit | 37fe2e749afd42e489d2bc3138dd6e85099e38ca | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Thu Jul 30 19:11:08 2015 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Jul 31 23:18:15 2015 +0000 |
tree | 5a08a59de5472578991c580f0ef7a73be04fcd27 | |
parent | b7900e56c9941f3f4854dcfc7939b9e43b45926c [diff] |
Moving sample apps to PacketProcessor methods Change-Id: I72922bdd970f46520928d18a4723fff71102cac0
diff --git a/ifwd/src/main/java/org/onosproject/ifwd/IntentReactiveForwarding.java b/ifwd/src/main/java/org/onosproject/ifwd/IntentReactiveForwarding.java index 63e6d40..cd24b56 100644 --- a/ifwd/src/main/java/org/onosproject/ifwd/IntentReactiveForwarding.java +++ b/ifwd/src/main/java/org/onosproject/ifwd/IntentReactiveForwarding.java
@@ -79,7 +79,7 @@ public void activate() { appId = coreService.registerApplication("org.onosproject.ifwd"); - packetService.addProcessor(processor, PacketProcessor.ADVISOR_MAX + 2); + packetService.addProcessor(processor, PacketProcessor.director(2)); TrafficSelector.Builder selector = DefaultTrafficSelector.builder(); selector.matchEthType(Ethernet.TYPE_IPV4);
diff --git a/mfwd/src/main/java/org/onosproject/mfwd/impl/McastForwarding.java b/mfwd/src/main/java/org/onosproject/mfwd/impl/McastForwarding.java index 68f3b45..099c856 100644 --- a/mfwd/src/main/java/org/onosproject/mfwd/impl/McastForwarding.java +++ b/mfwd/src/main/java/org/onosproject/mfwd/impl/McastForwarding.java
@@ -69,7 +69,7 @@ public void activate() { appId = coreService.registerApplication("org.onosproject.mfwd"); - packetService.addProcessor(processor, PacketProcessor.ADVISOR_MAX + 2); + packetService.addProcessor(processor, PacketProcessor.director(2)); // Build a traffic selector for all multicast traffic TrafficSelector.Builder selector = DefaultTrafficSelector.builder();