summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Dürre <michael.duerre@highstreet-technologies.com>2023-01-04 15:45:22 +0100
committerDan Timoney <dtimoney@att.com>2023-02-24 17:48:45 +0000
commit7af1cbec0a8cf3259e9de3d705c05a89ddc6ba24 (patch)
treec9e21427b6bcbab4a6ff04b83ec6c1a50e329bd2 /tools
parent3e62ff8cff9edba9fd3810742e91b7bd488d29ba (diff)
update parents to chlorine
update parent poms to odl chlorine sr1 Issue-ID: CCSDK-3831 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: I9fa4c61d3dd0a2efc6313fc505b5b4d43977abca Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/pomfile.py3
-rwxr-xr-xtools/migrateOdlParents.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/lib/pomfile.py b/tools/lib/pomfile.py
index 35dfd5a3..88bfa90e 100644
--- a/tools/lib/pomfile.py
+++ b/tools/lib/pomfile.py
@@ -34,7 +34,8 @@ class PomFile:
# /project/dependencies/dependency[groupId=org.opendaylight.netconf]/version
# value: value to set
def setXmlValue(self, valuePath, value, replaceMultiple=False) -> bool:
-
+ if value is None:
+ return False
found=False
pathToFind = XPath(valuePath)
pattern = re.compile('<([^>^\ ^?^!]+)')
diff --git a/tools/migrateOdlParents.py b/tools/migrateOdlParents.py
index e608c779..a7175b8b 100755
--- a/tools/migrateOdlParents.py
+++ b/tools/migrateOdlParents.py
@@ -164,7 +164,7 @@ class OdlParentMigrator:
bgpVersion = self.getMvnRepoVersion('org.opendaylight.bgpcep','topology-api')
controllerVersion = self.getMvnRepoVersion('org.opendaylight.controller', 'blueprint')
mdsalVersion=self.getMvnRepoVersion('org.opendaylight.mdsal','mdsal-binding-api')
- netconfVersion = self.getMvnRepoVersion('org.opendaylight.netconf','ietf-netconf')
+ netconfVersion = self.getMvnRepoVersion('org.opendaylight.netconf','netconf-impl')
pomFile = PomFile(os.path.abspath(self.parentPath+'/dependencies-odl-bom/pom.xml'))
x = pomFile.setXmlValue('/project/dependencyManagement/dependencies/dependency[artifactId=bgp-artifacts]/version',bgpVersion)