[SEBA-863] Fixing bug in activation update config with useOltUplink=true
Change-Id: I4be24a0f21ab16616aaef13bb141161a415e2ac8
diff --git a/.gitreview b/.gitreview
index 9c300e2..9e3860a 100644
--- a/.gitreview
+++ b/.gitreview
@@ -3,3 +3,4 @@
port=29418
project=dhcpl2relay.git
defaultremote=origin
+defaultbranch=dhcpl2relay-1.6
diff --git a/api/pom.xml b/api/pom.xml
index eb57b56..8819fcd 100644
--- a/api/pom.xml
+++ b/api/pom.xml
@@ -20,7 +20,7 @@
<parent>
<artifactId>dhcpl2relay</artifactId>
<groupId>org.opencord</groupId>
- <version>1.6.0</version>
+ <version>1.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
diff --git a/app/pom.xml b/app/pom.xml
index 7778858..f25aa2e 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -20,7 +20,7 @@
<parent>
<artifactId>dhcpl2relay</artifactId>
<groupId>org.opencord</groupId>
- <version>1.6.0</version>
+ <version>1.6.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -58,7 +58,7 @@
<dependency>
<groupId>org.opencord</groupId>
<artifactId>dhcpl2relay-api</artifactId>
- <version>1.6.0</version>
+ <version>1.6.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
diff --git a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java
index cf35677..e838a37 100755
--- a/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java
+++ b/app/src/main/java/org/opencord/dhcpl2relay/impl/DhcpL2Relay.java
@@ -194,6 +194,8 @@
mastershipService.addListener(changeListener);
deviceService.addListener(deviceListener);
+ subsService = sadisService.getSubscriberInfoService();
+
factories.forEach(cfgService::registerConfigFactory);
//update the dhcp server configuration.
updateConfig();
@@ -204,7 +206,6 @@
modified(context);
}
- subsService = sadisService.getSubscriberInfoService();
log.info("DHCP-L2-RELAY Started");
}
@@ -296,7 +297,7 @@
if (useOltUplink) {
for (ConnectPoint cp : getUplinkPortsOfOlts()) {
log.debug("requestDhcpPackets: ConnectPoint: {}", cp);
- requestDhcpPacketsFromConnectPoint(cp, null);
+ requestDhcpPacketsFromConnectPoint(cp, Optional.ofNullable(null));
}
// check if previous config was different and so trap flows may
// need to be removed from other places like AGG switches
@@ -313,7 +314,7 @@
if (useOltUplink) {
for (ConnectPoint cp : getUplinkPortsOfOlts()) {
log.debug("cancelDhcpPackets: ConnectPoint: {}", cp);
- cancelDhcpPacketsFromConnectPoint(cp, null);
+ cancelDhcpPacketsFromConnectPoint(cp, Optional.ofNullable(null));
}
} else {
// uplink on AGG switch
diff --git a/pom.xml b/pom.xml
index 80bd80b..7f87ab2 100755
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
<groupId>org.opencord</groupId>
<artifactId>dhcpl2relay</artifactId>
- <version>1.6.0</version>
+ <version>1.6.1-SNAPSHOT</version>
<packaging>pom</packaging>
<description>DHCP L2 Relay Agent</description>