Code Review
/
oam
/
tr069-adapter.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Device Software version management
[oam/tr069-adapter.git]
/
netconf-server
/
src
/
main
/
java
/
org
/
commscope
/
tr069adapter
/
netconf
/
rpc
/
SoftwareDownloadOperation.java
diff --git
a/netconf-server/src/main/java/org/commscope/tr069adapter/netconf/rpc/SoftwareDownloadOperation.java
b/netconf-server/src/main/java/org/commscope/tr069adapter/netconf/rpc/SoftwareDownloadOperation.java
index
00bf175
..
f5b1454
100644
(file)
--- a/
netconf-server/src/main/java/org/commscope/tr069adapter/netconf/rpc/SoftwareDownloadOperation.java
+++ b/
netconf-server/src/main/java/org/commscope/tr069adapter/netconf/rpc/SoftwareDownloadOperation.java
@@
-46,9
+46,13
@@
public class SoftwareDownloadOperation implements NetconfOperation {
public static final String SOFT_MGMT_NAMESPACE = "urn:o-ran:software-management:1.0";
\r
\r
private String deviceID;
\r
public static final String SOFT_MGMT_NAMESPACE = "urn:o-ran:software-management:1.0";
\r
\r
private String deviceID;
\r
+ private String swVersion;
\r
+ private String hwVersion;
\r
\r
\r
- public SoftwareDownloadOperation(String deviceID) {
\r
+ public SoftwareDownloadOperation(String deviceID
, String swVersion, String hwVersion
) {
\r
this.deviceID = deviceID;
\r
this.deviceID = deviceID;
\r
+ this.swVersion = swVersion;
\r
+ this.hwVersion = hwVersion;
\r
}
\r
\r
@Override
\r
}
\r
\r
@Override
\r
@@
-75,7
+79,8
@@
public class SoftwareDownloadOperation implements NetconfOperation {
NetConfServiceBooter.getApplicationContext().getBean(NetConfServerProperties.class);
\r
\r
final String baseUrl = config.getMapperPath() + "/softwareDowload";
\r
NetConfServiceBooter.getApplicationContext().getBean(NetConfServerProperties.class);
\r
\r
final String baseUrl = config.getMapperPath() + "/softwareDowload";
\r
- NetConfResponse restResponse = XmlUtility.invokeMapperCall(baseUrl, requestXml, deviceID);
\r
+ NetConfResponse restResponse =
\r
+ XmlUtility.invokeMapperCall(baseUrl, requestXml, deviceID, swVersion, hwVersion);
\r
\r
Document document = null;
\r
\r
\r
Document document = null;
\r
\r