Skip to content

Commit 9de1884

Browse files
committed
Bring l2 Sdx app up to ONOS 1.12
Change-Id: Iee676e74e57120656cb3c18d27b2fd2801aa3c96
1 parent 80432b4 commit 9de1884

File tree

7 files changed

+12
-17
lines changed

7 files changed

+12
-17
lines changed

sdx-l2/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020
<parent>
2121
<groupId>org.onosproject</groupId>
2222
<artifactId>onos-dependencies</artifactId>
23-
<version>1.7.0</version>
23+
<version>1.12.0</version>
2424
<relativePath/>
2525
</parent>
2626

2727
<groupId>org.onosproject</groupId>
2828
<artifactId>onos-app-sdx-l2</artifactId>
29-
<version>1.9.0-SNAPSHOT</version>
29+
<version>1.12.0-SNAPSHOT</version>
3030
<packaging>bundle</packaging>
3131

3232
<description>SDX-L2 application to create and manage Ethernet circuits</description>
3333
<url>http://www.geant.org</url>
3434

3535
<properties>
36-
<onos.version>1.7.0</onos.version>
36+
<onos.version>1.12.0</onos.version>
3737
<onos.app.name>org.onosproject.sdx-l2</onos.app.name>
3838
<onos.app.title>SDX-L2 App</onos.app.title>
3939
<onos.app.category>Utility</onos.app.category>

sdx-l2/src/main/java/org/onosproject/sdxl2/SdxL2DistributedStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public SdxL2ConnectionPoint getSdxL2ConnectionPoint(String sdxl2cp) throws SdxL2
286286
public void addVC(String sdxl2, SdxL2ConnectionPoint sdxl2cplhs, SdxL2ConnectionPoint sdxl2cprhs)
287287
throws SdxL2Exception {
288288
Set<String> vcs = ImmutableSet.copyOf(
289-
sdxL2VCs.keySet().parallelStream().filter((vctemp->vctemp.contains(sdxl2cplhs.toString())
289+
sdxL2VCs.keySet().parallelStream().filter((vctemp -> vctemp.contains(sdxl2cplhs.toString())
290290
|| vctemp.contains(sdxl2cprhs.toString()))).collect(Collectors.toSet()));
291291
for (String vctemp : vcs) {
292292
String[] splitted = vctemp.split("~");

sdx-l2/src/test/java/org/onosproject/sdxl2/SdxL2MacVCManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class SdxL2MacVCManagerTest extends AbstractIntentTest {
8686
* Prepares environment before starting testing.
8787
*/
8888
@Before
89-
public void setUp() throws Exception {
89+
public void setUp() {
9090
super.setUp();
9191
SdxL2DistributedStore store = new SdxL2DistributedStore();
9292
store.initForTest();

sdx-l2/src/test/java/org/onosproject/sdxl2/SdxL2ManagerTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import org.junit.Test;
2424
import org.junit.rules.ExpectedException;
2525
import org.onosproject.TestApplicationId;
26-
import org.onosproject.core.IdGenerator;
27-
import org.onosproject.net.intent.Intent;
2826
import org.onosproject.net.intent.MockIdGenerator;
2927

3028
import java.util.Collections;
@@ -98,23 +96,22 @@ public class SdxL2ManagerTest {
9896
@Rule
9997
public ExpectedException exceptionRemoveCP = ExpectedException.none();
10098
private SdxL2Manager manager;
101-
private IdGenerator idGenerator = new MockIdGenerator();
10299

103100
@Before
104101
public void setUp() {
102+
MockIdGenerator.cleanBind();
105103
manager = new SdxL2Manager();
106104
manager.appId = new TestApplicationId("sdxl2-test");
107105
SdxL2DistributedStore store = new SdxL2DistributedStore();
108106
store.initForTest();
109107
manager.sdxL2Store = store;
110108
manager.vcManager = new SdxL2MacVCManager(
111109
manager.appId, manager.sdxL2Store, new IntentServiceTest());
112-
Intent.bindIdGenerator(idGenerator);
113110
}
114111

115112
@After
116113
public void tearDown() {
117-
Intent.unbindIdGenerator(idGenerator);
114+
MockIdGenerator.unbind();
118115
}
119116

120117
/**

sdx-l2/src/test/java/org/onosproject/sdxl2/SdxL2MplsVCManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class SdxL2MplsVCManagerTest extends AbstractIntentTest {
7575
* Prepares environment before starting testing.
7676
*/
7777
@Before
78-
public void setUp() throws Exception {
78+
public void setUp() {
7979
super.setUp();
8080
SdxL2DistributedStore store = new SdxL2DistributedStore();
8181
store.initForTest();

sdx-l2/src/test/java/org/onosproject/sdxl2/SdxL2VCManagerTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import org.junit.rules.ExpectedException;
2525
import org.onosproject.TestApplicationId;
2626
import org.onosproject.core.ApplicationId;
27-
import org.onosproject.core.IdGenerator;
28-
import org.onosproject.net.intent.Intent;
2927
import org.onosproject.net.intent.Key;
3028
import org.onosproject.net.intent.MockIdGenerator;
3129

@@ -88,26 +86,26 @@ public class SdxL2VCManagerTest {
8886
@Rule
8987
public ExpectedException exceptionRemoveVC = ExpectedException.none();
9088
private SdxL2MacVCManager manager;
91-
private IdGenerator idGenerator = new MockIdGenerator();
9289

9390
/**
9491
* Prepare environment before starting testing VCs.
9592
*/
9693
@Before
9794
public void setUp() {
95+
9896
SdxL2DistributedStore store = new SdxL2DistributedStore();
9997
store.initForTest();
10098
manager = new SdxL2MacVCManager(
10199
APPID, store, new IntentServiceTest());
102-
Intent.bindIdGenerator(idGenerator);
100+
MockIdGenerator.cleanBind();
103101
}
104102

105103
/**
106104
* Clean up environment after finishing testing VCs.
107105
*/
108106
@After
109107
public void tearDown() {
110-
Intent.unbindIdGenerator(idGenerator);
108+
MockIdGenerator.unbind();
111109
}
112110

113111
/**

sdx-l2/src/test/java/org/onosproject/sdxl2/SdxL2VlanVCManagerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class SdxL2VlanVCManagerTest extends AbstractIntentTest {
7878
*/
7979
@Override
8080
@Before
81-
public void setUp() throws Exception {
81+
public void setUp() {
8282
super.setUp();
8383
SdxL2DistributedStore store = new SdxL2DistributedStore();
8484
store.initForTest();

0 commit comments

Comments
 (0)