transportpce.git
2 years agoBump project version to Si SR4 05/99505/2 stable/silicon
guillaume.lambert [Thu, 27 Jan 2022 18:50:44 +0000 (19:50 +0100)]
Bump project version to Si SR4

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I26269e41f5da31cd0562bf60837205d95288558d

2 years agoUpdate upstream dependencies to Si-SR4 93/99493/3
Gilles Thouenon [Thu, 27 Jan 2022 10:03:51 +0000 (11:03 +0100)]
Update upstream dependencies to Si-SR4

- Bump odlparent to 8.1.9
- Bump mdsal to 7.0.14
- Bump netconf to 1.13.8

Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Idac0d2ea836972c9bdbc912cb21357728ecb4635

2 years agoFix bug in OLM during spanloss computation 77/98077/2
Gilles Thouenon [Thu, 21 Oct 2021 08:24:51 +0000 (10:24 +0200)]
Fix bug in OLM during spanloss computation

Prevent from getting NPE when OTS interface terminating the
roadm-to-roadm link under spanloss determination does not exist in the
device.
- remove invocation of getOtsInterfaceName method on an OtsPmHolder null
  object, at the origin of the NPE thrown.
  This check is superfluous since OtsPmHolder.getOtsInterfaceName() can
  not be null if OtsPmHolder is not null.
- fix typo on OtsPmHolder variable names
- adapt LOG messages consequently

JIRA: TRNSPRTPCE-172
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Idec6fac25a33c7748ad4996e01211e04667b4fd5
(cherry picked from commit 220a7ba4f55d6c0ab5b1605b4b9d26cbcb4dcd9b)

2 years agoFix GNPy functional tests 01/99501/1
guillaume.lambert [Thu, 2 Sep 2021 12:23:44 +0000 (14:23 +0200)]
Fix GNPy functional tests

"A-to-Z" and "Z-to-A" items have been swapped in arrays returned by
the PCE computation API during the updates to handle high rates.

GNPy functional test must support any order.

JIRA: TRNSPRTPCE-403
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: If4db8598366bd1387d05dd65220beda589dbb4c1

2 years agoChange absolute path of leafref in GNPy model 00/99500/1
Gilles Thouenon [Thu, 2 Sep 2021 09:10:12 +0000 (11:10 +0200)]
Change absolute path of leafref in GNPy model

JIRA: TRNSPRTPCE-497
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ief01620be3f2842664dcba6aa7c4851c92e327d5

2 years agoRefactor OLM timers management 99/99499/1
guillaume.lambert [Tue, 31 Aug 2021 09:59:25 +0000 (11:59 +0200)]
Refactor OLM timers management

OLM timer values are defined by OpenROADM whitepaper specifications.
For this reason, they are hardcoded with constants in the current code.
Though, there are at least 2 reasons to make them configurable:

1- At least one vendor product needs more than the OpenROADM whitepaper
   recommandation because it is not supporting GainLoss with
   target-output-power.

2- The OlmUtils constants are patched in functional tests to speed-up
   tests because the simulators needs less time to set the OLM up than
   real devices.

As a consequence,
- remove OlmUtils timers constants
- remove related command to patch them in tests scripts
- create a new constructor PowerMgmtImpl to allow any timers values
- modify OLM OSGi blueprint to set default values for these timers
  (Default values are the ones recommended in the OpenROADM whitepaper)
- modify lighty build to retrieve these timers from new CLI options
- adapt tests scripts and assembly ressources accordingly

JIRA: TRNSPRTPCE-496
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I71f9bdfd38c11ea3427ca2e661cd3590bc2863bf

2 years agoRefactor OLM PowerMgmtImpl class 98/99498/1
guillaume.lambert [Mon, 9 Aug 2021 10:06:27 +0000 (12:06 +0200)]
Refactor OLM PowerMgmtImpl class

The former implementation of OLM Power management ignored some spotbugs
warnings and triggered many alarms in SonarCloud, mainly about
commented-out lines of code and the SetPower method.
This method had 280 lines and its cyclomatic complexity was 43.
Current Sonar rules warns methods with more than 75 lines of code
and a cyclomatic complexity of 10.

As a consequence
- remove commented-out lines of code
- fix SpotBugs warnings and remove annotations to ignore them
- split the SetPower method into several pieces
- rework and optimize the code
- add TODO and FIXME comments for some parts of the code
  that may need to be reconsidered in the future

JIRA: TRNSPRTPCE-211 TRNSPRTPCE-494
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iae5644f66cd6de6e17f81de3cd61dcb546ac2dd1

2 years agoUpdate maven download URL & fix gate 40/99040/1
guillaume.lambert [Mon, 10 Jan 2022 11:12:37 +0000 (12:12 +0100)]
Update maven download URL & fix gate

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I4a03af89d78afa0d3655841acb7ee66800bf54c6
(cherry picked from commit 7297787cbf3ace66224e0cb3a097d8388d2e23c4)

2 years agoBump dependencies to Si SR3 71/98271/1
Vachhani, Shweta (sv111y) [Tue, 2 Nov 2021 17:33:44 +0000 (13:33 -0400)]
Bump dependencies to Si SR3

- odlparent => 8.1.4
- mdsal => 7.0.10
- netconf => 1.13.5
- project => 3.3.0-SNAPSHOT

Signed-off-by: Vachhani, Shweta (sv111y) <sv111y@att.com>
Change-Id: I9a3a03b99e0da04e042ea3977b789b8e67ba34b2

2 years agoBump mdsal dependency to 7.0.10 for Si SR3 43/98243/3
Vachhani, Shweta (sv111y) [Fri, 29 Oct 2021 13:15:32 +0000 (09:15 -0400)]
Bump mdsal dependency to 7.0.10 for Si SR3

Signed-off-by: Vachhani, Shweta (sv111y) <sv111y@att.com>
Change-Id: Iacf4e0b4c4459074fb45d2f951e504119b4346ae

2 years agoImprove container support in tox.ini 42/98242/2
guillaume.lambert [Fri, 3 Sep 2021 08:23:34 +0000 (10:23 +0200)]
Improve container support in tox.ini

- modify tox.ini to use dedicated scripts that can detect a local podman
  installation and use it instead of docker.
- replace nbiotifications docker-compose YAML file by a standalone
  container directly runnable with docker or podman.

Podman.io is a rootless and serverless alternative to Docker.io.
It avoids using sudo in many cases, what is a good thing.
It is now prefered to Docker.io by many linux distributions.

https://podman.io/
https://access.redhat.com/solutions/3696691
https://thesynack.com/posts/docker-compose-podman/
https://martinheinz.dev/blog/35

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I593568b2e17bebe784eff7b3413d0d5b829f2ade

2 years agoRefactor buildcontroller tox profile 41/98241/2
guillaume.lambert [Thu, 26 Aug 2021 12:50:27 +0000 (14:50 +0200)]
Refactor buildcontroller tox profile

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ic53c9f04ab7f35756792e615af299a98687bb288

2 years agoAdd documentation to use tox and functional tests 40/98240/3
guillaume.lambert [Thu, 12 Aug 2021 15:05:01 +0000 (17:05 +0200)]
Add documentation to use tox and functional tests

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ib3975607aed1571961f54c151d908148326a0d14

2 years agoReenforce Lighty use in the gate 39/98239/2
guillaume.lambert [Tue, 6 Jul 2021 07:26:31 +0000 (09:26 +0200)]
Reenforce Lighty use in the gate

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I92e51984822ae392ae80d9f6e0814bcb049b9cef

2 years agoEnforce sims download in the gate 38/98238/2
guillaume.lambert [Tue, 6 Jul 2021 09:06:02 +0000 (11:06 +0200)]
Enforce sims download in the gate

There is no point to perform functional tests suites if the related sims
download previously failed because of connectivity issues.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I85496f08e33351042ece16db66ff9f310d353f13

2 years agoImprove Karaf exec customization for tests 37/98237/2
guillaume.lambert [Mon, 5 Jul 2021 09:22:56 +0000 (11:22 +0200)]
Improve Karaf exec customization for tests

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I60f3010c13e9f101761a46b733982cc27df2c765

2 years agoImprove tox tests parallelization with Karaf 36/98236/2
guillaume.lambert [Mon, 5 Jul 2021 09:08:00 +0000 (11:08 +0200)]
Improve tox tests parallelization with Karaf

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I71038c8c51719158694167e95c26833978d0ff86

2 years agoRefactor Karaf post-install scripts for tests 35/98235/2
guillaume.lambert [Mon, 5 Jul 2021 08:35:17 +0000 (10:35 +0200)]
Refactor Karaf post-install scripts for tests

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I7e6d949887d41528545d78e15bc8ddee89019b75

2 years agoAllow tox tests with Karaf to run in parallel 34/98234/2
Guillaume Lambert [Fri, 2 Jul 2021 13:24:57 +0000 (15:24 +0200)]
Allow tox tests with Karaf to run in parallel

- rework tox depends parameter to allow 2 instances of Karaf to be run
  in parallel
- modify buildcontroller process to add specific Karaf build folders
  for each test suite. Karaf instances are tighly coupled to their build
  folder. Using a separate log file is not enough to allow concurrent
  accesses to work properly.
- create an environment variable and adapt tests script accordingly

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I7fb608546beaaa19f0b046809c451303bd64c097

2 years agoAllow Karaf to use an alternative websocket port 33/98233/2
Guillaume Lambert [Thu, 1 Jul 2021 20:00:39 +0000 (22:00 +0200)]
Allow Karaf to use an alternative websocket port

In tests post install script
- generate configuration file template for restconf nc-bierman02
- patch Karaf exec to generate configuration file from environment
  variable and template

Allowing the controller configuration to listen to alternative ports
is a commodity to run functional tests in parallel.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ib507f486103a9edcaa9a948644c3739ef7381460

2 years agoAllow Karaf to listen to alternative RMI ports 32/98232/2
guillaume.lambert [Mon, 28 Jun 2021 12:53:28 +0000 (14:53 +0200)]
Allow Karaf to listen to alternative RMI ports

In Karaf post-install script for tests
- generate configuration files templates for Karaf Management
- patch Karaf exec to generate configuration files from environment
  variables and templates

In tox.ini
- declare the related variables in SETENV parameters

Allowing the controller configuration to listen to alternative ports
is a commodity to run functional tests in parallel.

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ic2f0db92b9da14fcd65fc9840aa4365b8f9469f8

2 years agoAllow Karaf to listen to an alternative SSH port 31/98231/2
guillaume.lambert [Mon, 28 Jun 2021 12:41:50 +0000 (14:41 +0200)]
Allow Karaf to listen to an alternative SSH port

In Karaf post-install script for tests
- generate a configuration file template for Karaf Shell
- patch Karaf exec to generate configuration file from environment
  variable and template

In tox.ini
- declare the related variable in SETENV parameters

Allowing the controller configuration to listen to alternative ports
is a commodity to run functional tests in parallel.

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Id1b367aaaaccae4bcf74d1b6ac0aa4997f3083a6

2 years agoAllow Karaf to use altern. RESTCONF and akka ports 30/98230/2
guillaume.lambert [Mon, 28 Jun 2021 11:48:33 +0000 (13:48 +0200)]
Allow Karaf to use altern. RESTCONF and akka ports

In tests post install script
- generate configuration files templates for akka and RESTCONF
- patch Karaf exec to generate configuration files from environment
  variables and templates

Allowing the controller configuration to listen to alternative ports
is a commodity to run functional tests in parallel.

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Id068b557c7cb4676c7d7b742eb939a34a43e70ff

2 years agoCreate a Karaf post-install script for tests 29/98229/2
guillaume.lambert [Mon, 28 Jun 2021 08:54:10 +0000 (10:54 +0200)]
Create a Karaf post-install script for tests

- add a post-install shell script for Karaf and tests purpose
  This post-install script will be copied at build-time from
  src/main/assembly/ressources to target/assembly/ressources
- move the tox.ini sed command used to patch Karaf exec into this script
- update this command since there is no more quoting hell issues
- update tox.ini accordingly

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iac1bfa3b4bf7a8d0e55130abf2f4cbf349f14ba4

2 years agoFallback gate to Karaf and sequence mode 28/98228/2
guillaume.lambert [Tue, 29 Jun 2021 18:17:58 +0000 (20:17 +0200)]
Fallback gate to Karaf and sequence mode

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ice1b48168b8219ff00a3b4e50d01bc5653fdc863

2 years agoAllow tox func tests suite to run in parallel 27/98227/2
Guillaume Lambert [Thu, 24 Jun 2021 13:50:15 +0000 (15:50 +0200)]
Allow tox func tests suite to run in parallel

- append PID to lighty controller log file
  This avoids parsing the file of another controller instance.
- increase various timeout limits
- rework tox "depends" parameters used to artificially create a sequel
  in parallel mode.
  tox -p auto strategy is only based on CPU core numbers and not memory
  nor any other parameter. This is not optimal since it can cause other
  resources starvation issues in the gate (but not locally).
  The new configuration proposed here chains in parallel:
    * PCE tests first then 1.2.1 device tests
    * 7.1 device tests first then 2.2.1 device tests
  This way, only 2 controller instances can be run simultaneously, what
  prevents resources from starvation in the gate.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I3a0a66a45a8e170b4554c9de769e1e65b96d224f

2 years agoSet different controller ports in tox tests suites 26/98226/2
Guillaume Lambert [Thu, 24 Jun 2021 13:01:55 +0000 (15:01 +0200)]
Set different controller ports in tox tests suites

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I62243181953654c053166c8eb4f1fad82567f618

2 years agoAllow Lighty build to listen to alternative ports 25/98225/2
Guillaume Lambert [Thu, 24 Jun 2021 09:24:05 +0000 (11:24 +0200)]
Allow Lighty build to listen to alternative ports

- Add lighty configuration files templates for akka and RESTCONF
- Update lighty clean start script to generate from environment
  variables its configuration files (based on the new templates)

Allowing the controller configuration to listen to alternative ports
is a commodity to run functional tests in parallel.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ib49dcad14e464bdf60c70dbebf6a22c5eba06699

2 years agoRefactor tests launching procedure 24/98224/2
Guillaume Lambert [Fri, 18 Jun 2021 20:18:39 +0000 (22:18 +0200)]
Refactor tests launching procedure

The possibility to run test separately was lost during preliminary work
to prepare jobs parallelization.
This refactoring restores that feature but with a different approach.
For example, the equivalents of the old commands
    $ tox -e topoPortmapping
and
    $ tox -e portmapping,pce
are now
    $ tox -e tests121 topo_portmapping
and
    $ tox -e tests121 "portmapping pce"
(preceded by $ tox -e buildcontroller)

The possibility to choose the script launcher command from a global
variable have been added.
For example,
    $ export LAUNCHER='python3'
allows to replace 'nosetests --with-xunit' by a straight call to python3
to have more debug output during tests.

Tests order can also be changed by directly modifying script filenames
without touching tox.ini. Filenames have been modified here to add a
numbering and keep the tests current order.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I725d1dfac42bd309d18fbf87ff1c85bc1bce5be9

2 years agoOutsource PCE tests scripts into a separate folder 23/98223/2
Guillaume Lambert [Mon, 21 Jun 2021 07:56:11 +0000 (09:56 +0200)]
Outsource PCE tests scripts into a separate folder

PCE tests are loosely coupled to a specific version of OpenROADM devices
and does not launch any simulator contrary to other functional tests.
Moving them to a separate folder will ease tests management in the gate.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ide600a3c371b35114b594f119f3a10cb3aed310e

2 years agoOutsource tests scripts not in envlist 22/98222/3
Guillaume Lambert [Fri, 18 Jun 2021 12:13:52 +0000 (14:13 +0200)]
Outsource tests scripts not in envlist

Gnpy and nbinotifications tests requires docker and cannot be run
easily in the gate.
For this reason, they are not listed in tox.ini envlist.
Moving them to a separate folder will ease tests management in the gate.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I57b69bc3c4482c4ef2ed9d0aaeffd874b9925deb

2 years agoRefactor tox.ini to prepare parallelized jobs 82/96482/6
Guillaume Lambert [Fri, 18 Jun 2021 12:13:52 +0000 (14:13 +0200)]
Refactor tox.ini to prepare parallelized jobs

- split py3 profiles into several profiles
  and regroup tests by OpenROADM devices version
- separate the controller build from tests themselves in a dedicated
  profile
- use "depends" to state profiles dependencies.
  This is necessary so that tox can order tests sequences
  and decides which jobs can be run in parallel.
  This parameter requires tox versions >= 3.7.0

NB: at this stage, tests can no more be run standalone from a dedicated
tox profile.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I8d583f01003c4d9ee690d866ff602757392c3304

2 years agoUpdate PTL info 22/97822/1
guillaume.lambert [Thu, 21 Oct 2021 09:26:06 +0000 (11:26 +0200)]
Update PTL info

Gilles Thouenon has been approved as the new PTL of TransportPCE.

https: //wiki.opendaylight.org/display/ODL/2021+PTL+election

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I91e4d33ebd23b8c9c03a248719bfeee71621206f
(cherry picked from commit 23e184818681ff152351b97b9e3e066dbf3d94e1)

2 years agoBump mdsal dependency to 7.0.9 for Si SR2 50/97150/1
guillaume.lambert [Tue, 17 Aug 2021 23:02:02 +0000 (01:02 +0200)]
Bump mdsal dependency to 7.0.9 for Si SR2

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I02f954fb670939a5c7c3b40c24ad92568243f6f5

2 years agoBump Netconf dependency to 1.13.4 for Si SR2 48/97148/1
guillaume.lambert [Mon, 16 Aug 2021 14:14:21 +0000 (16:14 +0200)]
Bump Netconf dependency to 1.13.4 for Si SR2

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ide3ebba56df7ab28c2eebb51f10b51292f383e46

2 years agoOTN service delete - B100G 75/97075/1
Vachhani, Shweta (sv111y) [Mon, 14 Jun 2021 14:03:43 +0000 (10:03 -0400)]
OTN service delete - B100G

Update renderer code to support interface delete for 400G MPDR
1. Fix interface delete for OTN service for 400G MPDR
2. Add a method getsupported interface in OpenROADM Interfaces
3. Update OTN service delete code to delete 4*100G interfaces

JIRA: TRNSPRTPCE-481
Signed-off-by: Vachhani, Shweta (sv111y) <sv111y@att.com>
Change-Id: I91d0648c23e5eec9a858b3cbfd8daf29cbdb1853

2 years agoUpdate configuration files of 400G simus 74/97074/1
Gilles Thouenon [Wed, 26 May 2021 13:01:43 +0000 (15:01 +0200)]
Update configuration files of 400G simus

Change configuration files for XPDR-A2 and XPDR-C2 nodes to have:
- in shelf-slot1, the 400G Tpdr, equiped with a 400GE client pluggable
and a 400G line pluggable
- in shelf-slot2, the 400G Mpdr, equiped with two 100GE client ports on
client card, and one 400G line pluggable
- adapt functional tests accordingly

JIRA: TRNSPRTPCE-433
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: If75e58bab5356b03d163c4f6e8d686f33e6e7b3b

2 years agoRenderer Interface delete for B100G TPDR 73/97073/1
Vachhani, Shweta (sv111y) [Mon, 17 May 2021 15:25:16 +0000 (11:25 -0400)]
Renderer Interface delete for B100G TPDR

Update existing renderer code to delete interfaces created during
service provisioning for B100G TPDR

Signed-off-by: Vachhani, Shweta (sv111y) <sv111y@att.com>
Change-Id: I48f074cde335a31aa23534a833724b5413f315c5

2 years agoRenderer support for higher rates 72/97072/1
Balagangadhar Bathula [Tue, 25 May 2021 02:57:26 +0000 (22:57 -0400)]
Renderer support for higher rates

- Add OTUCn and ODUCn infrastructure service support
- Enable infrastructure services for 4x100G muxponder

JIRA: TRNSPRTPCE-472
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
Change-Id: I1da21b3b64004f7ee6d3cee5d7ab065e6e567c1e

2 years agoDistinguish flex vs fixed for PCE 400G 71/97071/1
Balagangadhar Bathula [Mon, 10 May 2021 19:25:02 +0000 (15:25 -0400)]
Distinguish flex vs fixed for PCE 400G

- PCE is not picking the flex vs fixed grid correctly
- Enable mc-capabilities for XPDR node type
- In addition to slot-width add central-frequency-granularity to
  distinguish fixed/flex grid.
- Add functional test to check mc-capability-profile on 7.1 XPDR device
- Add mc-capability profile in the operational data for XPDR-C1

JIRA: TRNSPRTPCE-452
Change-Id: I2c7adf862ccaeec4829a62faad56d94ad2616f38
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoChange the slot width for 400G 70/97070/1
Balagangadhar Bathula [Mon, 10 May 2021 17:47:02 +0000 (13:47 -0400)]
Change the slot width for 400G

Set the SRG/DEG NMC slot widths to 75GHz rather than 80 GHz

JIRA: TRNSPRTPCE-455
Change-Id: Ib702730ced0d10254a18178d458538e8b147ec05
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoEnable 400G service rate in device renderer 69/97069/1
Balagangadhar Bathula [Mon, 10 May 2021 17:14:38 +0000 (13:14 -0400)]
Enable 400G service rate in device renderer

JIRA: TRNSPRTPCE-454
Change-Id: I25c1c4fd72758d8d0574b0a293eeb3fab180847e
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoRefactor PCE Update OTUC4, ODUC4 and 100GE MXPDR 68/97068/1
guillaume.lambert [Wed, 23 Jun 2021 14:23:27 +0000 (16:23 +0200)]
Refactor PCE Update OTUC4, ODUC4 and 100GE MXPDR

This refactoring avoids multiple redundant variables checks.

JIRA: TRNSPRTPCE-463
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Idf410e226e7b33fc377f8b882edf0c9739f5a82c

2 years agoUpdate PCE for OTUC4, ODUC4 and 100GE MXPDR 67/97067/1
Christophe Betoule [Tue, 11 May 2021 08:45:19 +0000 (10:45 +0200)]
Update PCE for OTUC4, ODUC4 and 100GE MXPDR

- update StringConstants with new service types for 400G MXPDR
- update optical PCE to manage these new service types
- refactor PceCalculation to optimize service-type affectation
- create 100GE_T and 100GE_M to differentiate respectively 100GE TPDR
from 100GE MXPDR client port
- update tribslot to 20 for 100GE MXPDR client port
- update UT consequently
- update PCE func tests

JIRA: TRNSPRTPCE-463 TRNSPRTPCE-453
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Co-authored-by: Balagangadhar Bathula <bb4341@att.com>
Change-Id: Ibf7a9da47b6b9424e41205659fc996d2eddebaee

2 years agoUpdate transportpce-topology YANG model 65/97065/1
Christophe Betoule [Wed, 12 May 2021 15:24:25 +0000 (17:24 +0200)]
Update transportpce-topology YANG model

- update otn-link-type enum for higher rates
- update all transportpce code consequently

JIRA: TRNSPRTPCE-458
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I03d884dcb8dabb6ffd2c5cad8879efc213d9b56f

2 years agoUpdate portmapping with switching-pool from notif 77/96077/3
Gilles Thouenon [Fri, 7 May 2021 08:41:18 +0000 (10:41 +0200)]
Update portmapping with switching-pool from notif

Update the switching-pool-lcp list of portmapping from a
change-notification received from a 7.1 muxponder device. Manage such a
7.1 device notification to create, or update if object already exists,
the switching-pool-lcp container abstracting the device
odu-switching-pools one.
- add new updatePortMappingWithOduSwitchingPools method in PortMapping
interface
- implement this method in PortMappingImpl and PortMappingVersion710
classes
- keep the existing building of switching-pool-lcp in
createXpdrPortMapping method in case existing odu-switching-pools would
exist at the initial device connection
- manage reception of device notification whose target is
odu-switching-pools and port-list in DeviceListener710 class

JIRA: TRNSPRTPCE-405
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ieb7dd5f2a301feb4543c96c3502007012e98db57

2 years agoDevice renderer for muxponder 76/96076/3
Balagangadhar Bathula [Tue, 4 May 2021 16:58:12 +0000 (12:58 -0400)]
Device renderer for muxponder

- Add device provisioning for network ODUC4 (ODU-TTP), ODU4 (ODU-CTP)
  and client ODU4 interface (ODU-TTP-CTP)
- Add provisioning for Ethernet 100G
- Add ODU-connection (OTN cross-connect)
- Modify the classes, unit-tests wherever necessary

JIRA: TRNSPRTPCE-451
Change-Id: Ide493b46dea6480fc2016fa3c89289b188ad8a0b
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoPort-mapping functional tests for B100G muxponder 75/96075/3
Balagangadhar Bathula [Mon, 3 May 2021 15:03:56 +0000 (11:03 -0400)]
Port-mapping functional tests for B100G muxponder

- Update the Honeynode 7.1 operational data to support muxponder client
  and network.
- Add port-mapping functional tests to verify the port-mapping data for
  switch-client, switch-network.

JIRA: TRNSPRTPCE-449
Change-Id: I6cd668befee96301ac48fbb8689ee536fac424be
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoUpdate port-mapping data with trib-slots for B100G 74/96074/3
Balagangadhar Bathula [Fri, 30 Apr 2021 21:18:25 +0000 (17:18 -0400)]
Update port-mapping data with trib-slots for B100G

Muxponder switch-client port-quals require max/min-trib-slots
from muxp-profile to be available in the port-mapping.

JIRA: TRNSPRTPCE-449
Change-Id: Ic360fed70fe07f752078596e1facd7063cc28ac9
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoPort-mapping to support B100G muxponder 73/96073/3
Balagangadhar Bathula [Wed, 23 Jun 2021 09:58:23 +0000 (11:58 +0200)]
Port-mapping to support B100G muxponder

 - Add mpdr-restrictions-grp container
 - Add ODUC4 supporting-interface leaf
 - Change revision date
 - Change imports wherever necessary
 - Remove unused imports in YANG

JIRA: TRNSPRTPCE-449
Change-Id: I76ab14bb71fe72a612c484dabc5036135f6b2ea7
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoFix ORDM device version in portmapping YANG model 61/97061/1
Balagangadhar Bathula [Wed, 23 Jun 2021 08:55:22 +0000 (10:55 +0200)]
Fix ORDM device version in portmapping YANG model

OpenROADM device models use version 7.1 instead of 7.1.0.

Replace the version enum 7.1.0 for openroadm-node-version by 7.1
to be consistent with OpenROADM models.

JIRA: TRNSPRTPCE-462
Change-Id: Ie1aeef3291ca77ef2457296a978d261a889f85db
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
2 years agoRemove odl-netconf-connector-all dep from feats 60/97060/1
Guillaume Lambert [Wed, 30 Jun 2021 08:33:13 +0000 (10:33 +0200)]
Remove odl-netconf-connector-all dep from feats

odl-netconf-connector-all dependency in features introduces the other
feature odl-netconf-callhome-ssh that comes with the bundle
callhome-provider. This bundle is not needed by TransportPCE and
consumes a listening port. Though, odl-netconf-callhome-ssh also brings
a third feature called odl-netconf-topology, which is needed by the
OpenDaylight netconf driver to work properly with Karaf.

As a consequence, the dependency odl-netconf-connector-all can
advantageously be replaced by the two dependencies odl-netconf-connector
and odl-netconf-topology.

JIRA: TRNSPRTPCE-482
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I90b96f8f92bd6936aa028df4edf5a9171b2f7e6f

2 years agoHandle missing port power advertisement 59/97059/1
Balagangadhar Bathula [Tue, 29 Jun 2021 17:49:52 +0000 (13:49 -0400)]
Handle missing port power advertisement

- Change condition for missing transponder port power capabilities

JIRA: TRNSPRTPCE-317
Change-Id: I749697a6ddf20a2319153cfbedb16dd5a786278a
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoRemove useless netconf dependencies from features 58/97058/1
guillaume.lambert [Fri, 25 Jun 2021 11:53:02 +0000 (13:53 +0200)]
Remove useless netconf dependencies from features

odl-restconf-all and odl-netconf-all dependencies in features introduce
useless bundles such as odl-mdsal-apidocs.

These dependencies can simply be replaced by odl-restconf and
odl-netconf-connector-all.

JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I8b7c597f65a35e52dba526a263e8be6e6e69ff6a

2 years agoIgnore OpenROADM whitepaper URL in docs-linkcheck 57/97057/1
guillaume.lambert [Thu, 17 Jun 2021 16:53:53 +0000 (18:53 +0200)]
Ignore OpenROADM whitepaper URL in docs-linkcheck

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I02d7756d79658b821bd8726b3def984d4e2b8ddb

2 years agoReduce the number of service notifications sent 56/97056/1
Thierry Jiao [Tue, 1 Jun 2021 13:47:36 +0000 (15:47 +0200)]
Reduce the number of service notifications sent

- Delete 'PCE calculation done OK' notification sent by
pceListenerImpl during serviceCreate
- Delete 'ServiceCreate request received' notification sent by
serviceHandlerImpl during serviceCreate
- Delete 'ServiceDelete request received' notification sent by
serviceHandlerImpl during serviceDelete
- Update the functional test test_nbinotifications

JIRA: TRNSPRTPCE-447
Signed-off-by: Thierry Jiao <thierry.jiao@orange.com>
Change-Id: Id52eb6bcfb63753158294a227bcaeb5c40a3c972

2 years agoAdd and run some linters via tox and pre-commit 55/97055/1
Guillaume Lambert [Wed, 2 Jun 2021 20:20:10 +0000 (22:20 +0200)]
Add and run some linters via tox and pre-commit

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I097c1267eab3eba18c571929e67490817d0a8ffd

2 years agoUpdate INFO.yaml committers list 54/97054/1
guillaume.lambert [Tue, 25 May 2021 09:18:52 +0000 (11:18 +0200)]
Update INFO.yaml committers list

New committers Balagangadhar Bathula and Christophe Betoule have been
approved and must be declared in the INFO.yaml file at the project root.

https://wiki.opendaylight.org/display/ODL/2021+Commiters+election
https://lists.opendaylight.org/g/TSC/topic/82961037#13722

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I14de9edd309dfe66fbd196a55143444db653689c

2 years agoBump project version to Si-SR2 10/97010/1
Gilles Thouenon [Thu, 22 Jul 2021 12:52:17 +0000 (14:52 +0200)]
Bump project version to Si-SR2

JIRA: TRNSPRTPCE-486
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I369816035c4fddefb9852bb02b2613b5e348db3e

2 years agoBump dependencies to Si SR2 89/96989/1
Gilles Thouenon [Fri, 9 Jul 2021 07:16:58 +0000 (09:16 +0200)]
Bump dependencies to Si SR2

- odlparent => 8.1.3
- mdsal => 7.0.8
- netconf => 1.13.3

Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I99ad1c5c2f6a9d1e0b2f6b3694fe338756866000

2 years agoFix tests/setup.cfg deprecation warning 83/96483/1
Guillaume Lambert [Fri, 18 Jun 2021 13:41:34 +0000 (15:41 +0200)]
Fix tests/setup.cfg deprecation warning

home-page must be replaced by home_page
dashs in variable names are under deprecation
and must be replaced by underscores

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I283763dbadacf081dd073fc60340ca4c8e60d052
(cherry picked from commit bd4a01b071f38bf58912d5620772e6a2b05d1504)

2 years agoUpdate INFO.yaml IRC chat locations 80/96480/1
guillaume.lambert [Wed, 16 Jun 2021 10:27:05 +0000 (12:27 +0200)]
Update INFO.yaml IRC chat locations

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ia3a70c6a07d14190fc2ca2f540e07ee2e9d44354

2 years agoPort-mapping functional tests for 7.1 transponder 72/96072/3
Balagangadhar Bathula [Wed, 21 Apr 2021 14:40:08 +0000 (10:40 -0400)]
Port-mapping functional tests for 7.1 transponder

- Verify port-mapping data for xpdr port quals
- Verify node data in the topology (addition/deletion)

JIRA: TRNSPRTPCE-347
Change-Id: I80863cdda4f54eaad246d532d8bc3d2c70c68977
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
2 years agoAdd missing if-cap-type for B100G 71/96071/3
Balagangadhar Bathula [Fri, 30 Apr 2021 11:56:16 +0000 (07:56 -0400)]
Add missing if-cap-type for B100G

Add OTU4-ODU4 interface missing capabilities

OTSI group interface capabilities were missing.
This was generating erros when adding nodes to the topology.

JIRA: TRNSPRTPCE-347
Change-Id: I051e22d0f00a35699007aea9a697bf001cd9ac38
Signed-off-by: Balagangadhar Bathula <bb4341@att.com>
(cherry picked from commit 9e899e0f610cbef4001827c5fee0b0656152674b)

2 years agoFix the misplacements of service notifications 15/96315/1
Thierry Jiao [Fri, 30 Apr 2021 07:22:20 +0000 (09:22 +0200)]
Fix the misplacements of service notifications

- Move the sending of the notification (Service deleted !) to the
correct end of the service-create operation
- Move the sending of the notification (Service implemented !) to the
correct end of the service-delete operation
- Send a service-create notification failure when Renderer service
implementation failed
- Send a service-delete notification failure when PCE cancel ressource
failed
- Send a service-delete notification failure when Renderer service
delete failed

JIRA: TRNSPRTPCE-447
Signed-off-by: Thierry Jiao <thierry.jiao@orange.com>
Change-Id: If38f004e2de64febd456fd0a5d778ce1fa1bb0f2
(cherry picked from commit ffb5a8b2f12b498f367562c06d926e0dd059fb68)

2 years agoBump dependencies to newer Silicon dev versions 14/96314/1
guillaume.lambert [Thu, 27 May 2021 08:17:39 +0000 (10:17 +0200)]
Bump dependencies to newer Silicon dev versions

https://docs.opendaylight.org/projects/integration-distribution/en/stable-silicon/platform-versions.html

$ find . -name pom.xml -exec sed -i -e 's/1.13.1/1.13.2/g' \
-e 's/8.1.1/8.1.2/' -e 's/7.0.6/7.0.7/' \{\} +

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iafb4916ac1fb1cec2e31690984892d86e9dfb3f0
(cherry picked from commit 58cab488309943b60d0b7c1826285a4ed458ea31)

2 years agoFix new checkstyle issues found by odlparent 8.1.2 13/96313/1
guillaume.lambert [Thu, 27 May 2021 08:52:28 +0000 (10:52 +0200)]
Fix new checkstyle issues found by odlparent 8.1.2

These issues needs to be fixed before bumping dependencies to pass CI.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ibc378705a16a6b68f32e7af3876142e379218e09
(cherry picked from commit 86e0c93f0f82cf70a7e3b1f8358ad54e7520e75f)

2 years agoOTN-topology creation fix 77/95877/8
Shweta Vachhani [Wed, 21 Apr 2021 15:08:18 +0000 (11:08 -0400)]
OTN-topology creation fix

Moved ifCapType conversion method for different version of devices in
portMapping, rather than in OtnTopology

JIRA: TRNSPRTPCE-443
Signed-off-by: Shweta Vachhani <sv111y@att.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I3eb51b64d986ee6ab620a7142e1e3e83a67f7eaa

2 years agoFix tox.ini otntopology profile 71/96371/2
guillaume.lambert [Tue, 25 May 2021 12:37:18 +0000 (14:37 +0200)]
Fix tox.ini otntopology profile

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Id7b0213ecef8ed7dcd9fc0e6937f7d1f052438ac

2 years agoFix deprecated warnings caused by YangTools update 70/96370/1
guillaume.lambert [Wed, 19 May 2021 21:00:57 +0000 (23:00 +0200)]
Fix deprecated warnings caused by YangTools update

Auto-generated sources from YANG models now deprecates methods with the
pattern is[A-Z].* This commit replaces them with their strict equivalent
with the pattern get[A-Z].*

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I17b9d02beacefda647f85d76be771aa08c48d67c

2 years agoMute snapshots download status during lighty build 69/96369/1
guillaume.lambert [Wed, 19 May 2021 20:08:42 +0000 (22:08 +0200)]
Mute snapshots download status during lighty build

JIRA: TRNSPRTPCE-442
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I4bd399059ba8c22728c4d27b93bc6e2204979a09

2 years agoMute Lighty reflective access warnings 68/96368/1
guillaume.lambert [Wed, 19 May 2021 19:49:37 +0000 (21:49 +0200)]
Mute Lighty reflective access warnings

JIRA: TRNSPRTPCE-442
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Icd684c09309fe6f7061c246f713f8e73e4ea82f4

2 years agoRemove useless & outdated lighty javadoc comments 67/96367/1
guillaume.lambert [Wed, 19 May 2021 19:30:08 +0000 (21:30 +0200)]
Remove useless & outdated lighty javadoc comments

JIRA: TRNSPRTPCE-442
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I1a370fb2330a0b4e2ed5b1e55f4b485879cdf34a

2 years agoIgnore JsonStringConverter unchecked cast warning 66/96366/1
guillaume.lambert [Wed, 19 May 2021 13:30:51 +0000 (15:30 +0200)]
Ignore JsonStringConverter unchecked cast warning

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ia8d24d83e99aee811962c883b03bc75ba6e06ac2

2 years agoFix javadoc warnings in common PortMapping 65/96365/1
guillaume.lambert [Wed, 19 May 2021 13:26:25 +0000 (15:26 +0200)]
Fix javadoc warnings in common PortMapping

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I13fd8717af3bd586da4dded140e28766638e4f56

2 years agoFix Mockito initMocks deprecation warnings 64/96364/1
guillaume.lambert [Wed, 19 May 2021 13:10:51 +0000 (15:10 +0200)]
Fix Mockito initMocks deprecation warnings

This method is replaced by openMocks(testClass).close().
The close method should however only be called after completed usage
of testClass.
If using static-mocks or custom MockMakers, using this method might
cause misbehavior of mocks injected into the test class.

https://www.javadoc.io/doc/org.mockito/mockito-core/3.4.0/org/mockito/MockitoAnnotations.html

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ic7090902319a172606383b5352d4275172de9219

2 years agoUse maven batch and quiet modes inside tox 63/96363/1
Guillaume Lambert [Wed, 19 May 2021 12:24:22 +0000 (14:24 +0200)]
Use maven batch and quiet modes inside tox

Quiet mode will keep only maven errors and reduce logs size in tox jobs.
This will ease gate failures analysis.
Note that full logs will be still available in the maven-verify job.
Batch mode is also preferable since it is a non-interactive process in a
colorless terminal.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I6569c8a940fe8508229e1d6351daf07337f71523

2 years agoChange way to start simulators 67/96067/2
Gilles Thouenon [Tue, 13 Apr 2021 07:12:17 +0000 (09:12 +0200)]
Change way to start simulators

- change way to import modules from common and remove symbolic folder
links
- create a single flat simulators file containing all simulators
configurations in order to be able to launch topology configurations
composed of node devices of different versions
- adapt python test files accordingly
- create specific log directory for simulators in common

JIRA: TRNSPRTPCE-434
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I094d2dd844b0591b0012fd10395576cca147b54a

2 years agoSample of 7.1 device configuration for tpdr-400G 66/96066/2
Gilles Thouenon [Tue, 9 Feb 2021 18:20:37 +0000 (19:20 +0100)]
Sample of 7.1 device configuration for tpdr-400G

- add xml files of initial operational datastore for 7.1 tpdr-400G
usable by honeynode simulator

JIRA: TRNSPRTPCE-368
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I559e1b9a63d0a05dee35b9d59155b827b1c3700c

2 years agoAdapt existing honeynode configs to device 7.1 65/96065/2
Gilles Thouenon [Thu, 15 Apr 2021 07:32:42 +0000 (09:32 +0200)]
Adapt existing honeynode configs to device 7.1

Necessary to run new functional test suites with device in version 7.1.
Fix faceplate-label values in ROADM configurations files.

JIRA: TRNSPRTPCE-437
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I4983fc3a054b81b83325b5229377f2ca98cfd506

2 years agoUpdate lighty with device 7.1 models 63/96063/2
Gilles Thouenon [Sun, 25 Apr 2021 09:14:42 +0000 (11:14 +0200)]
Update lighty with device 7.1 models

Update LightyController initialization with generated java bindings to
manage an OpenROADM device in version 7.1.

JIRA: TRNSPRTPCE-442
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ibdd2893716e41d275e4d056a1b35b50b28d2de10

2 years agoExplicit unchecked conversions in networkmodel 62/96062/2
guillaume.lambert [Tue, 13 Apr 2021 09:22:57 +0000 (11:22 +0200)]
Explicit unchecked conversions in networkmodel

to avoid compilation warnings.

JIRA: TRNSPRTPCE-430
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Id8f08201c484aef895291aba517080a54866b391

2 years agoUpdate portmapping YANG model 58/96058/1
Gilles Thouenon [Sat, 13 Mar 2021 12:31:43 +0000 (13:31 +0100)]
Update portmapping YANG model

- refactor portmapping YANG model using grouping
- update all transportpce code consequently

JIRA: TRNSPRTPCE-419
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I840664243f1f9c7b6e1c886b7865e12b17657aa4

2 years agoSet topology tp states from device port state 57/96057/1
Christophe Betoule [Thu, 11 Mar 2021 14:41:51 +0000 (15:41 +0100)]
Set topology tp states from device port state

set tp states in openroadm-topology and otn-topology according to states
of device port coming from port-mapping.

JIRA: TRNSPRTPCE-416
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I562563059ec789702bddb848e38a2c12cf3b4640

2 years agoPrepare use of Lighty core dev SNAPSHOTs 33/95933/3
guillaume.lambert [Fri, 2 Apr 2021 09:23:06 +0000 (11:23 +0200)]
Prepare use of Lighty core dev SNAPSHOTs

- create a shell script to build lighty core dev SNAPSHOTs
  (not available in maven central)
- prefill parameters to use 14.0.1-SNASPHOT
- update README.md and other materials

JIRA: TRNSPRTPCE-442
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I754efa99c4afd0b8861af62cab386170de9757c9

2 years agoMake honeynode install script more robust 32/95932/3
guillaume.lambert [Tue, 13 Apr 2021 09:43:42 +0000 (11:43 +0200)]
Make honeynode install script more robust

to connectivity issues.
They often happens in the gate.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I8b1bfe31b22abccc2402ea24f2621f145617a987

2 years agoFix bug in ODU interface creation for device 7.1 31/95931/3
Gilles Thouenon [Mon, 12 Apr 2021 07:22:47 +0000 (09:22 +0200)]
Fix bug in ODU interface creation for device 7.1

At the odu interface creation on a device 7.1, set the mandatory
testPattern leaf inside the maint-testsignal container.

JIRA: TRNSPRTPCE-431
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: If8fd1a94ad0607a29e257affbc3a9524bf5a64c3

2 years agoIncrease sims startup timeout in functional tests 30/95930/3
guillaume.lambert [Mon, 12 Apr 2021 07:37:00 +0000 (09:37 +0200)]
Increase sims startup timeout in functional tests

Many failures in the gate seem to appear because the sims
do not start quickly enough.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I9c9e77180cb7687052f18223ec69647b3fa52327

2 years agoRefactor (un)registration of device listeners 29/95929/3
Gilles Thouenon [Mon, 12 Apr 2021 07:07:38 +0000 (09:07 +0200)]
Refactor (un)registration of device listeners

- simplify the way to register/unregister node listeners, taking into
acount the different device versions
- adapt UT of NetConfTopologyListener class

JIRA: TRNSPRTPCE-430
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Id8d1d04ac2f43035fb3de6e71d9a77a77a14faec

2 years agoHandle notification reception on port state change 28/95928/4
Gilles Thouenon [Sat, 6 Mar 2021 14:32:34 +0000 (15:32 +0100)]
Handle notification reception on port state change

- implement reception of a changeNotification on DeviceListener221 when
a device port state change
- rename DeviceListener to DeviceListener121 and align its
implementation on the DeviceListener221 one
- add a new DeviceListener710 with the same implementation of other
device listeners
- refactor all the NetconfTopologyListener class to remove technical
debts after extension to DeviceListener221 and DeviceListener710
- refactor NetconfTopologyListenerTest UT to be aligned with the new
implementation

JIRA: TRNSPRTPCE-422
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I7af3073071e47383dbf8629d261c7d07a8113e91

2 years agoMerge "Update portmapping on port state notification" into stable/silicon
Guillaume Lambert [Tue, 27 Apr 2021 09:31:08 +0000 (09:31 +0000)]
Merge "Update portmapping on port state notification" into stable/silicon

2 years agoMerge "Increase controller startup timeout in func tests" into stable/silicon
Guillaume Lambert [Tue, 27 Apr 2021 09:30:51 +0000 (09:30 +0000)]
Merge "Increase controller startup timeout in func tests" into stable/silicon

2 years agoBump project version to 3.1.0-SNAPSHOT 34/95934/3
Gilles Thouenon [Mon, 26 Apr 2021 08:49:37 +0000 (10:49 +0200)]
Bump project version to 3.1.0-SNAPSHOT

JIRA: TRNSPRTPCE-441
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I02ce99327acb3f89a38560101769077784817c84

2 years agoUpdate portmapping on port state notification 27/95927/1
Gilles Thouenon [Sat, 6 Mar 2021 14:34:27 +0000 (15:34 +0100)]
Update portmapping on port state notification

- review javadoc for PortMapping interface
- implements new getMapping method to retreive mapping from circuit-pack
name and port name
- add new updateMappingObject method
- review updateMapping() method
- review createMappingObject() method

JIRA: TRNSPRTPCE-423
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I72fe43f17b395ba67f8ac24a41e65b294f06d171

2 years agoIncrease controller startup timeout in func tests 26/95926/1
guillaume.lambert [Fri, 9 Apr 2021 12:22:34 +0000 (14:22 +0200)]
Increase controller startup timeout in func tests

Many failures in the gate seem to appear because the controller
does not start quickly enough.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I24825131c48c017f4bcda79255bcdd27b17ab1cf

3 years agoDecrease docs tox profiles logs verbosity 15/95815/1
guillaume.lambert [Sat, 24 Apr 2021 08:31:32 +0000 (10:31 +0200)]
Decrease docs tox profiles logs verbosity

This will ease gate failures analysis.

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I322e8fa0c621e54edee89d39bba29a2a843741e6

3 years agoUpgrade honeynode sim for device 1.2.1 and 7.1 12/95812/1
Gilles Thouenon [Thu, 15 Apr 2021 11:16:52 +0000 (13:16 +0200)]
Upgrade honeynode sim for device 1.2.1 and 7.1

This new version of simulators allows having exactly the same behavior
as device 2.2.1 regarding the handling of port state change
notifications.

JIRA: TRNSPRTPCE-438
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ie023c32024c3f31f95a80a9b32bdd191829ae9c6
(cherry picked from commit b1963de14a066689a386d062a4c936730296518e)

3 years agoUpdate device transactions operation 11/95811/1
Shweta Vachhani [Tue, 20 Apr 2021 17:57:25 +0000 (13:57 -0400)]
Update device transactions operation

from put to merge in

1) Openroadm Interfaces
2) Openroadm cross-connects
3) OLM power updates

JIRA: TRNSPRTPCE-444
Signed-off-by: Shweta Vachhani <sv111y@att.com>
Change-Id: I1f7f29bdf189545d428d0baac7c2a218021d3e3e
(cherry picked from commit b348e552b49373f609c67809c82c61c93c611c1a)

3 years agoBump deps to new Silicon dev versions 53/95853/1
guillaume.lambert [Mon, 19 Apr 2021 17:48:44 +0000 (13:48 -0400)]
Bump deps to new Silicon dev versions

org.opendaylight.odlparent *  8.1.0 -> 8.1.1
org.opendaylight.mdsal     *  7.0.5 -> 7.0.6
org.opendaylight.netconf   * 1.13.0 -> 1.13.1

https://docs.opendaylight.org/projects/integration-distribution/en/stable-silicon/platform-versions.html

This fixes the SSH issue described in NETCONF-765
an that occurs with some OpenROADM devices too.

JIRA: NETCONF-765 TRNSPRTPCE-441
Co-Authored-by: Balagangadhar Bathula <bb4341@att.com>
Change-Id: If166b3b40c80f1fa1cc69c1dfebc71d98db516e1

3 years agoLighty support Silicon migration 47/95847/4
guillaume.lambert [Fri, 2 Apr 2021 09:23:06 +0000 (11:23 +0200)]
Lighty support Silicon migration

- bump lighty pom to 14.0.0
- adapt tox.ini accordingly
- fix README.md
- force lighty use in tox

JIRA: TRNSPRTPCE-442
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: If7124a7b93e4606037ffa25d4faff79deac023d9