|
29 | 29 | import org.onosproject.TestApplicationId;
|
30 | 30 | import org.onosproject.core.ApplicationId;
|
31 | 31 | import org.onosproject.core.CoreServiceAdapter;
|
32 |
| -import org.onosproject.incubator.net.intf.Interface; |
33 |
| -import org.onosproject.incubator.net.intf.InterfaceListener; |
34 |
| -import org.onosproject.incubator.net.intf.InterfaceService; |
35 |
| -import org.onosproject.incubator.net.intf.InterfaceServiceAdapter; |
36 |
| -import org.onosproject.incubator.net.routing.ResolvedRoute; |
37 |
| -import org.onosproject.incubator.net.routing.RouteEvent; |
38 |
| -import org.onosproject.incubator.net.routing.RouteListener; |
39 |
| -import org.onosproject.incubator.net.routing.RouteServiceAdapter; |
| 32 | +import org.onosproject.net.intf.Interface; |
| 33 | +import org.onosproject.net.intf.InterfaceListener; |
| 34 | +import org.onosproject.net.intf.InterfaceService; |
| 35 | +import org.onosproject.net.intf.InterfaceServiceAdapter; |
| 36 | +import org.onosproject.routeservice.ResolvedRoute; |
| 37 | +import org.onosproject.routeservice.Route; |
| 38 | +import org.onosproject.routeservice.RouteEvent; |
| 39 | +import org.onosproject.routeservice.RouteListener; |
| 40 | +import org.onosproject.routeservice.RouteServiceAdapter; |
40 | 41 | import org.onosproject.net.ConnectPoint;
|
41 | 42 | import org.onosproject.net.DeviceId;
|
42 | 43 | import org.onosproject.net.PortNumber;
|
|
48 | 49 | import org.onosproject.net.intent.AbstractIntentTest;
|
49 | 50 | import org.onosproject.net.intent.Key;
|
50 | 51 | import org.onosproject.net.intent.MultiPointToSinglePointIntent;
|
51 |
| -import org.onosproject.routing.IntentSynchronizationService; |
| 52 | +import org.onosproject.intentsync.IntentSynchronizationService; |
52 | 53 |
|
53 | 54 | import java.util.ArrayList;
|
54 | 55 | import java.util.Collections;
|
@@ -121,7 +122,7 @@ public class SdxL3FibTest extends AbstractIntentTest {
|
121 | 122 |
|
122 | 123 | @Override
|
123 | 124 | @Before
|
124 |
| - public void setUp() throws Exception { |
| 125 | + public void setUp() { |
125 | 126 | super.setUp();
|
126 | 127 |
|
127 | 128 | interfaceService = createMock(InterfaceService.class);
|
@@ -234,8 +235,8 @@ private void setUpBgpPeers() {
|
234 | 235 | @Test
|
235 | 236 | public void testRouteAdd() {
|
236 | 237 | Ip4Prefix prefix = Ip4Prefix.valueOf("1.1.1.0/24");
|
237 |
| - ResolvedRoute resRoute = new ResolvedRoute(prefix, |
238 |
| - Ip4Address.valueOf(PEER1_IP), |
| 238 | + ResolvedRoute resRoute = new ResolvedRoute(new Route(Route.Source.STATIC, prefix, |
| 239 | + Ip4Address.valueOf(PEER1_IP)), |
239 | 240 | MacAddress.valueOf(MAC1));
|
240 | 241 |
|
241 | 242 | // Construct a MultiPointToSinglePointIntent intent
|
@@ -282,8 +283,9 @@ public void testRouteAdd() {
|
282 | 283 | @Test
|
283 | 284 | public void testRouteAddWithVlan() {
|
284 | 285 | Ip4Prefix prefix = Ip4Prefix.valueOf("1.1.1.0/24");
|
285 |
| - ResolvedRoute resRoute = new ResolvedRoute(prefix, |
286 |
| - Ip4Address.valueOf(PEER3_IP), |
| 286 | + ResolvedRoute resRoute = new ResolvedRoute(new Route(Route.Source.STATIC, |
| 287 | + prefix, |
| 288 | + Ip4Address.valueOf(PEER3_IP)), |
287 | 289 | MacAddress.valueOf(MAC1));
|
288 | 290 |
|
289 | 291 | // Construct a MultiPointToSinglePointIntent intent
|
@@ -337,8 +339,9 @@ public void testRouteUpdate() {
|
337 | 339 | testRouteAdd();
|
338 | 340 |
|
339 | 341 | Ip4Prefix prefix = Ip4Prefix.valueOf("1.1.1.0/24");
|
340 |
| - ResolvedRoute resRoute = new ResolvedRoute(prefix, |
341 |
| - Ip4Address.valueOf(PEER2_IP), |
| 342 | + ResolvedRoute resRoute = new ResolvedRoute(new Route(Route.Source.STATIC, |
| 343 | + prefix, |
| 344 | + Ip4Address.valueOf(PEER2_IP)), |
342 | 345 | MacAddress.valueOf(MAC1));
|
343 | 346 |
|
344 | 347 | // Construct a new MultiPointToSinglePointIntent intent
|
@@ -394,8 +397,9 @@ public void testRouteDelete() {
|
394 | 397 |
|
395 | 398 | IpPrefix prefix = Ip4Prefix.valueOf("1.1.1.0/24");
|
396 | 399 | // Construct the existing route entry
|
397 |
| - ResolvedRoute resRoute = new ResolvedRoute(prefix, null, null); |
398 |
| - |
| 400 | + ResolvedRoute resRoute = new ResolvedRoute( |
| 401 | + new Route(Route.Source.STATIC, prefix, Ip4Address.valueOf(PEER1_IP)), |
| 402 | + MacAddress.valueOf(MAC1)); |
399 | 403 | // Construct the existing MultiPointToSinglePoint intent
|
400 | 404 | TrafficSelector.Builder selectorBuilder =
|
401 | 405 | DefaultTrafficSelector.builder();
|
|
0 commit comments