pankaj

Merge branch 'master' of ssh://gerrit.onlab.us:29418/onos-next

...@@ -27,7 +27,7 @@ public class AddHostToHostIntentCommand extends AbstractShellCommand { ...@@ -27,7 +27,7 @@ public class AddHostToHostIntentCommand extends AbstractShellCommand {
27 required = true, multiValued = false) 27 required = true, multiValued = false)
28 String two = null; 28 String two = null;
29 29
30 - private static long id = 1; 30 + private static long id = 0x7870001;
31 31
32 @Override 32 @Override
33 protected void execute() { 33 protected void execute() {
......
...@@ -14,6 +14,7 @@ import org.onlab.onos.net.intent.Intent; ...@@ -14,6 +14,7 @@ import org.onlab.onos.net.intent.Intent;
14 import org.onlab.onos.net.intent.IntentId; 14 import org.onlab.onos.net.intent.IntentId;
15 import org.onlab.onos.net.intent.IntentService; 15 import org.onlab.onos.net.intent.IntentService;
16 import org.onlab.onos.net.intent.PointToPointIntent; 16 import org.onlab.onos.net.intent.PointToPointIntent;
17 +import org.onlab.packet.Ethernet;
17 18
18 /** 19 /**
19 * Installs point-to-point connectivity intents. 20 * Installs point-to-point connectivity intents.
...@@ -32,7 +33,7 @@ public class AddPointToPointIntentCommand extends AbstractShellCommand { ...@@ -32,7 +33,7 @@ public class AddPointToPointIntentCommand extends AbstractShellCommand {
32 required = true, multiValued = false) 33 required = true, multiValued = false)
33 String egressDeviceString = null; 34 String egressDeviceString = null;
34 35
35 - private static long id = 1; 36 + private static long id = 0x7470001;
36 37
37 @Override 38 @Override
38 protected void execute() { 39 protected void execute() {
...@@ -48,7 +49,9 @@ public class AddPointToPointIntentCommand extends AbstractShellCommand { ...@@ -48,7 +49,9 @@ public class AddPointToPointIntentCommand extends AbstractShellCommand {
48 PortNumber.portNumber(getPortNumber(egressDeviceString)); 49 PortNumber.portNumber(getPortNumber(egressDeviceString));
49 ConnectPoint egress = new ConnectPoint(egressDeviceId, egressPortNumber); 50 ConnectPoint egress = new ConnectPoint(egressDeviceId, egressPortNumber);
50 51
51 - TrafficSelector selector = DefaultTrafficSelector.builder().build(); 52 + TrafficSelector selector = DefaultTrafficSelector.builder()
53 + .matchEthType(Ethernet.TYPE_IPV4)
54 + .build();
52 TrafficTreatment treatment = DefaultTrafficTreatment.builder().build(); 55 TrafficTreatment treatment = DefaultTrafficTreatment.builder().build();
53 56
54 Intent intent = 57 Intent intent =
......
...@@ -344,7 +344,7 @@ public class OpenFlowRuleProvider extends AbstractProvider implements FlowRulePr ...@@ -344,7 +344,7 @@ public class OpenFlowRuleProvider extends AbstractProvider implements FlowRulePr
344 344
345 public void satisfyRequirement(Dpid dpid) { 345 public void satisfyRequirement(Dpid dpid) {
346 log.warn("Satisfaction from switch {}", dpid); 346 log.warn("Satisfaction from switch {}", dpid);
347 - sws.remove(controller.getSwitch(dpid)); 347 + sws.remove(dpid);
348 countDownLatch.countDown(); 348 countDownLatch.countDown();
349 } 349 }
350 350
......