Charles Chan
Committed by Gerrit Code Review

Cleanup interface constant

Change-Id: Ief110d6db88889e5c01c43b5d410330114c65ad9
...@@ -220,7 +220,10 @@ public class SegmentRoutingManager implements SegmentRoutingService { ...@@ -220,7 +220,10 @@ public class SegmentRoutingManager implements SegmentRoutingService {
220 private static int numOfHandlerScheduled = 0; 220 private static int numOfHandlerScheduled = 0;
221 221
222 private KryoNamespace.Builder kryoBuilder = null; 222 private KryoNamespace.Builder kryoBuilder = null;
223 - 223 + /**
224 + * Segment Routing App ID.
225 + */
226 + public static final String SR_APP_ID = "org.onosproject.segmentrouting";
224 /** 227 /**
225 * The starting value of per-subnet VLAN ID assignment. 228 * The starting value of per-subnet VLAN ID assignment.
226 */ 229 */
......
...@@ -22,11 +22,6 @@ import java.util.List; ...@@ -22,11 +22,6 @@ import java.util.List;
22 */ 22 */
23 public interface SegmentRoutingService { 23 public interface SegmentRoutingService {
24 /** 24 /**
25 - * Segment Routing App ID.
26 - */
27 - String SR_APP_ID = "org.onosproject.segmentrouting";
28 -
29 - /**
30 * Highest flow priority. 25 * Highest flow priority.
31 */ 26 */
32 int HIGHEST_PRIORITY = 0xffff; 27 int HIGHEST_PRIORITY = 0xffff;
...@@ -54,8 +49,6 @@ public interface SegmentRoutingService { ...@@ -54,8 +49,6 @@ public interface SegmentRoutingService {
54 */ 49 */
55 int FLOOD_PRIORITY = 5; 50 int FLOOD_PRIORITY = 5;
56 51
57 - long OFPP_MAX = 0xffffff00L;
58 -
59 /** 52 /**
60 * Returns all tunnels. 53 * Returns all tunnels.
61 * 54 *
......
...@@ -27,7 +27,7 @@ import org.onosproject.TestApplicationId; ...@@ -27,7 +27,7 @@ import org.onosproject.TestApplicationId;
27 import org.onosproject.net.DeviceId; 27 import org.onosproject.net.DeviceId;
28 import org.onosproject.net.config.Config; 28 import org.onosproject.net.config.Config;
29 import org.onosproject.net.config.ConfigApplyDelegate; 29 import org.onosproject.net.config.ConfigApplyDelegate;
30 -import org.onosproject.segmentrouting.SegmentRoutingService; 30 +import org.onosproject.segmentrouting.SegmentRoutingManager;
31 import java.util.Set; 31 import java.util.Set;
32 32
33 import static org.hamcrest.Matchers.is; 33 import static org.hamcrest.Matchers.is;
...@@ -40,7 +40,7 @@ import static org.junit.Assert.assertFalse; ...@@ -40,7 +40,7 @@ import static org.junit.Assert.assertFalse;
40 */ 40 */
41 public class SegmentRoutingAppConfigTest { 41 public class SegmentRoutingAppConfigTest {
42 private static final ApplicationId APP_ID = 42 private static final ApplicationId APP_ID =
43 - new TestApplicationId(SegmentRoutingService.SR_APP_ID); 43 + new TestApplicationId(SegmentRoutingManager.SR_APP_ID);
44 44
45 private SegmentRoutingAppConfig config; 45 private SegmentRoutingAppConfig config;
46 private SegmentRoutingAppConfig invalidConfig; 46 private SegmentRoutingAppConfig invalidConfig;
...@@ -80,7 +80,7 @@ public class SegmentRoutingAppConfigTest { ...@@ -80,7 +80,7 @@ public class SegmentRoutingAppConfigTest {
80 @Before 80 @Before
81 public void setUp() throws Exception { 81 public void setUp() throws Exception {
82 ApplicationId subject = APP_ID; 82 ApplicationId subject = APP_ID;
83 - String key = SegmentRoutingService.SR_APP_ID; 83 + String key = SegmentRoutingManager.SR_APP_ID;
84 ObjectMapper mapper = new ObjectMapper(); 84 ObjectMapper mapper = new ObjectMapper();
85 JsonNode jsonNode = mapper.readTree(JSON_STRING); 85 JsonNode jsonNode = mapper.readTree(JSON_STRING);
86 JsonNode invalidJsonNode = mapper.readTree(INVALID_JSON_STRING); 86 JsonNode invalidJsonNode = mapper.readTree(INVALID_JSON_STRING);
......