transportpce.git
7 months agoMerge "Do not use RpcService in TPCE networkmodel module"
Christophe BETOULE [Wed, 4 Oct 2023 07:10:49 +0000 (07:10 +0000)]
Merge "Do not use RpcService in TPCE networkmodel module"

7 months agoMerge "Turn NetworkUtilsImpl into a Component"
Christophe BETOULE [Wed, 4 Oct 2023 07:10:42 +0000 (07:10 +0000)]
Merge "Turn NetworkUtilsImpl into a Component"

7 months agoFix new pylint-3.0.0 detected issues 69/108169/1
Gilles Thouenon [Tue, 3 Oct 2023 07:35:06 +0000 (09:35 +0200)]
Fix new pylint-3.0.0 detected issues

Refactor wait_until_log_contains method of test_utils taking advantage
of the with block in order to remove the finally block. That simplifies
the return flow.

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

7 months agoDo not use RpcService in TPCE networkmodel module 98/107998/4
Gilles Thouenon [Wed, 27 Sep 2023 15:59:37 +0000 (17:59 +0200)]
Do not use RpcService in TPCE networkmodel module

Migrate usage of RpcService to the new style yang.binding.Rpc-based
implementation for networkmodel module.

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

7 months agoTurn NetworkUtilsImpl into a Component 97/107997/2
Gilles Thouenon [Wed, 27 Sep 2023 15:34:37 +0000 (17:34 +0200)]
Turn NetworkUtilsImpl into a Component

Instead of instanciating this implementation from NetworkModelProvider,
convert it into a simple component.

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

7 months agoAdd DS op netconf connector support to test_utils 50/107850/7
guillaume.lambert [Wed, 13 Sep 2023 14:04:23 +0000 (16:04 +0200)]
Add DS op netconf connector support to test_utils

- update netconf edit-config transaction
- use updated version of lightynode 18.1.0.8
- activate lightynode for tapi functional tests

JIRA: TRNSPRTPCE-754
Co-authored-by: Christophe Betoule <christophe.betoule@orange.com>
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I21433eafbf1c32181078f8d4606e41605d43a6e8

7 months agoBump project version 67/107967/1
Gilles Thouenon [Mon, 25 Sep 2023 07:46:31 +0000 (09:46 +0200)]
Bump project version

Start Calcium development iteration

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

7 months agoBump transportpce-models version 52/107952/1
Gilles Thouenon [Fri, 22 Sep 2023 13:01:04 +0000 (15:01 +0200)]
Bump transportpce-models version

Adopt transportpce-models-19.0.0

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

7 months agoReactivate disabled functional tests 45/107945/1
Gilles Thouenon [Thu, 21 Sep 2023 16:53:46 +0000 (18:53 +0200)]
Reactivate disabled functional tests

Reactivate few functional tests disabled due to the restconf bug
(https://jira.opendaylight.org/browse/AAA-265)

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

7 months agoBump upstream K dependencies 32/107932/2
Gilles Thouenon [Wed, 20 Sep 2023 18:53:03 +0000 (20:53 +0200)]
Bump upstream K dependencies

Adopt:
- yangtools-11.0.2
- mdsal-12.0.2
- netconf-6.0.4

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

7 months agoMerge "Fix bug for temp-service-delete"
Gilles Thouenon [Thu, 21 Sep 2023 12:12:24 +0000 (12:12 +0000)]
Merge "Fix bug for temp-service-delete"

7 months agoFix bug for temp-service-delete 63/107163/6
Balagangadhar (Bala) Bathula [Mon, 31 Jul 2023 16:19:42 +0000 (12:19 -0400)]
Fix bug for temp-service-delete

- Currently, temp-service-delete does not work and creates a
  null-pointer exception, when used. The code uses service-list
  instead of temp-service-list to retrieve data for the delete
  operations.
- Add additional code to retrieve the data from the temp-service-list
- Update transport-pce-service-list after the temp-service is deleted
- Update temp-service-list after the temp-service-delete

JIRA: TRNSPRTPCE-750
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
Change-Id: Ia12d67c8bfdc81b934ae2fa292d941e1ce775e3a

7 months agoLeverage urllib in test_utils sims REST connector 51/107851/1
guillaume.lambert [Wed, 13 Sep 2023 14:16:51 +0000 (16:16 +0200)]
Leverage urllib in test_utils sims REST connector

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

7 months agoOutsource sims DS direct op on CP to test_utils 36/107836/6
guillaume.lambert [Tue, 12 Sep 2023 14:23:12 +0000 (16:23 +0200)]
Outsource sims DS direct op on CP to test_utils

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

7 months agoFix some typos in functional tests naming 37/107837/2
guillaume.lambert [Tue, 12 Sep 2023 14:41:05 +0000 (16:41 +0200)]
Fix some typos in functional tests naming

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

7 months agoRevert "Skip TAPI feature and functional tests" 33/107833/2
guillaume.lambert [Tue, 12 Sep 2023 11:57:29 +0000 (13:57 +0200)]
Revert "Skip TAPI feature and functional tests"

This reverts commit 9b938fff9a4a1ef07a2df445ad3dd3f81dad2228.

Change-Id: I5885c2c856ed9f10b4dcfd8d0ddc1bd52fd94379
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
7 months agoBump upstream dependencies to latest version 72/107672/6
Gilles Thouenon [Fri, 1 Sep 2023 16:04:03 +0000 (18:04 +0200)]
Bump upstream dependencies to latest version

Adopt:
- odlparent-13.0.4
- yangtools-11.0.1
- mdsal-12.0.1
- netconf-6.0.3

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

7 months agoSkip tests in failure before deps version bump 90/107790/5
guillaume.lambert [Mon, 11 Sep 2023 12:57:20 +0000 (14:57 +0200)]
Skip tests in failure before deps version bump

The URL with attributes that contains slashes cause troubles
and ends up with a response status code 400 (invalid request).

- ignore related unittest in functional tests
- adapt test_utils to handle invalid request in these cases

JIRA: NETCONF-1154
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: If03a720fea6b2fcbd2a2089ad88e9580daf5d411

7 months agoMerge "Declare as final private classes"
Guillaume Lambert [Mon, 11 Sep 2023 12:03:46 +0000 (12:03 +0000)]
Merge "Declare as final private classes"

7 months agoMerge changes If1d8e649,I6c3cf5f5,I167b40dd
Guillaume Lambert [Mon, 11 Sep 2023 12:02:47 +0000 (12:02 +0000)]
Merge changes If1d8e649,I6c3cf5f5,I167b40dd

* changes:
  Switch tests sims to lightynode by default
  Proxify sims install shell scripts
  Add lightynode support to testutils.py

8 months agoDeclare as final private classes 71/107671/3
Gilles Thouenon [Fri, 1 Sep 2023 17:06:08 +0000 (19:06 +0200)]
Declare as final private classes

Latest checkstyle version (10.12.3) reports bug when private class
without constructor is not declared final. Fix it up.

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

8 months agoMerge "Fix some compilation warnings"
Guillaume Lambert [Fri, 8 Sep 2023 08:11:31 +0000 (08:11 +0000)]
Merge "Fix some compilation warnings"

8 months agoMerge "Refactor SH ServiceDataStoreOperationsImpl"
Guillaume Lambert [Fri, 8 Sep 2023 08:11:24 +0000 (08:11 +0000)]
Merge "Refactor SH ServiceDataStoreOperationsImpl"

8 months agoSwitch tests sims to lightynode by default 12/107712/10
guillaume.lambert [Tue, 5 Sep 2023 13:33:29 +0000 (15:33 +0200)]
Switch tests sims to lightynode by default

- use lightynode as default sims
- adapt ROADM devices 1.2.1 sample configs
- in tox.ini force honeynode for tests with:
  - device notifications support
    The netconf client connector is ready for lightynode sims.
    But, some tests are still failing and are under investigation.
  - 7.1 devices
    Only 7.1 devices portmapping function tests pass.

JIRA: TRNSPRTPCE-754
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Co-authored-by: Christophe Betoule <christophe.betoule@orange.com>
Change-Id: If1d8e649e82df7b4c17b4c91fa2e13f77cf3e911

8 months agoMerge "Refactor Networkmodel test utils"
Guillaume Lambert [Thu, 7 Sep 2023 11:10:39 +0000 (11:10 +0000)]
Merge "Refactor Networkmodel test utils"

8 months agoMerge "Refactor SH ServiceDataUtils tests"
Guillaume Lambert [Thu, 7 Sep 2023 11:10:21 +0000 (11:10 +0000)]
Merge "Refactor SH ServiceDataUtils tests"

8 months agoProxify sims install shell scripts 11/107711/5
guillaume.lambert [Tue, 5 Sep 2023 13:17:00 +0000 (15:17 +0200)]
Proxify sims install shell scripts

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

8 months agoAdd lightynode support to testutils.py 10/107710/6
guillaume.lambert [Tue, 5 Sep 2023 10:10:57 +0000 (12:10 +0200)]
Add lightynode support to testutils.py

- add netconf_client dependency necessary for several tests
- add an installation shell script for lighty_node
- use sed in lightynode and hondenynoe install scripts to deal
  with 1.2.1 sample configs typo issue
- add an environment variable to configure a choice
  among lighty / honeycomb / no simulator
- update tox.ini consequently

JIRA: TRNSPRTPCE-754
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Co-authored-by: Christophe Betoule <christophe.betoule@orange.com>
Change-Id: I167b40dd3a1d9bd89cc472fa80899ba730f99c6a

8 months agoRefactor SH ServiceDataUtils tests 85/107685/3
guillaume.lambert [Mon, 4 Sep 2023 07:35:57 +0000 (09:35 +0200)]
Refactor SH ServiceDataUtils tests

Change-Id: Ie8aaa8db58c867c160477b98538b76ee7ac393fe

8 months agoRefactor SH ServiceDataStoreOperationsImpl 89/107689/3
guillaume.lambert [Mon, 4 Sep 2023 10:54:27 +0000 (12:54 +0200)]
Refactor SH ServiceDataStoreOperationsImpl

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

8 months agoRefactor Networkmodel test utils 70/107670/4
guillaume.lambert [Fri, 1 Sep 2023 14:28:45 +0000 (16:28 +0200)]
Refactor Networkmodel test utils

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

8 months agoRefactor OLM OlmTransactionUtils tests 86/107686/3
guillaume.lambert [Mon, 4 Sep 2023 07:36:19 +0000 (09:36 +0200)]
Refactor OLM OlmTransactionUtils tests

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

8 months agoFix some compilation warnings 06/107706/3
guillaume.lambert [Tue, 5 Sep 2023 08:38:06 +0000 (10:38 +0200)]
Fix some compilation warnings

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

8 months agoClean some functional tests comments & logs 09/107709/1
guillaume.lambert [Tue, 5 Sep 2023 10:01:22 +0000 (12:01 +0200)]
Clean some functional tests comments & logs

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

8 months agoSkip TAPI feature and functional tests 08/107708/1
guillaume.lambert [Tue, 5 Sep 2023 11:46:49 +0000 (13:46 +0200)]
Skip TAPI feature and functional tests

There is currently an issue with TAPI feature installation
preventing the CI to run correctly

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

8 months agoRefactor tox.ini 69/107669/2
guillaume.lambert [Fri, 1 Sep 2023 10:48:48 +0000 (12:48 +0200)]
Refactor tox.ini

- use one variable per line for tox3 support

One variable is the only syntax supported by both tox3 and tox4.

https: //tox.wiki/en/4.0.3/faq.html#tox-4-changed-ini-rules
https://github.com/tox-dev/tox/issues/2658

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

8 months agoUse version 13.1.0 of openroadm-network models 42/107542/6
Gilles Thouenon [Mon, 28 Aug 2023 16:05:25 +0000 (18:05 +0200)]
Use version 13.1.0 of openroadm-network models

- upgrade openroadm-network models from version 10.1.0 to version 13.1.0
- update import revision
- reactivate tapi UT

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

8 months agoUse version 13.1.0 of openroadm-service models 41/107541/5
Gilles Thouenon [Mon, 28 Aug 2023 08:56:17 +0000 (10:56 +0200)]
Use version 13.1.0 of openroadm-service models

- upgrade openroadm-service models from version 10.1.0 to version 13.1.0
- update import revision
- adapt few methods to manage both 10.1 and 13.1 objects (flexgrid,
ifcaptype)
- use latest version of catalog specification
- temporarily disable a few tapi UT while also migrating network models

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

8 months agoImprove Xtesting installation procedure 69/107569/1
guillaume.lambert [Wed, 30 Aug 2023 09:37:29 +0000 (11:37 +0200)]
Improve Xtesting installation procedure

- use a requirements.yml file to install ansible roles and collections

https://github.com/collivier/ansible-role-xtesting/pull/19 has been
fixed in the master branch
cf commit 1a5794a34beada2a2e69b9d46f933f2a286774e9

- remove related workaround notes from INSTALL.txt
- force to use collivier.xtesting master branch repo in requirements.yml
  until the fix is published in ansible official catalog

Change-Id: Ia4e33d5ea327bffef7ed214907823e2ee77e87b7

8 months agoBump lighty build to 19.0.0-SNAPSHOT for K 55/106955/7
guillaume.lambert [Fri, 21 Jul 2023 11:06:03 +0000 (13:06 +0200)]
Bump lighty build to 19.0.0-SNAPSHOT for K

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

8 months agoBump upstream dependencies to Potassium GA 29/106829/13
Robert Varga [Wed, 5 Jul 2023 21:03:17 +0000 (23:03 +0200)]
Bump upstream dependencies to Potassium GA

Adopt:
- odlparent-13.0.3
- yangtools-11.0.0
- mdsal-12.0.0
- netconf-6.0.1
- transportpce-models-19.0.0-SNAPSHOT

Also, adapt the expected serialized result for JsonStringConverterTest

Change-Id: Ic0c7f6de5fa16e778c0d3104ed27be76bb56378e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
8 months agoDeclare SuppressFBWarnings in imports 54/107554/1
Gilles Thouenon [Tue, 29 Aug 2023 14:18:40 +0000 (16:18 +0200)]
Declare SuppressFBWarnings in imports

Improve code readability

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

8 months agoSkip the temp-service-create if already exists 38/107338/3
Balagangadhar (Bala) Bathula [Tue, 8 Aug 2023 03:01:44 +0000 (23:01 -0400)]
Skip the temp-service-create if already exists

- If a temp-service with a commonId already exists in the
  data-store (temp-service-list), and if the temp-service-create
  is issued, then the controller should fail with an error
  message, indicating it already exists.
- Add code to check if the same commonId exists in the datastore
  and add a failed response.
- Add a new Junit test to check it

JIRA: TRNSPRTPCE-753
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I9f425e9febd8820f3053ecd5dfdd14f8a66279c4

9 months agoMerge "Add if-cap-support for If-OTU4-ODU4 ports (7.1)"
Guillaume Lambert [Thu, 27 Jul 2023 14:14:14 +0000 (14:14 +0000)]
Merge "Add if-cap-support for If-OTU4-ODU4 ports (7.1)"

9 months agoMerge "Update temp-service-list"
Guillaume Lambert [Thu, 27 Jul 2023 10:31:42 +0000 (10:31 +0000)]
Merge "Update temp-service-list"

9 months agoMerge "Bug in freq-map topology update"
Guillaume Lambert [Thu, 27 Jul 2023 10:31:23 +0000 (10:31 +0000)]
Merge "Bug in freq-map topology update"

9 months agoAdd a Xtesting entry to combine all tests cases 52/107052/4
guillaume.lambert [Tue, 25 Jul 2023 14:23:55 +0000 (16:23 +0200)]
Add a Xtesting entry to combine all tests cases

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

9 months agoImprove TPCE Xtesting tests cases 51/107051/2
guillaume.lambert [Tue, 25 Jul 2023 13:28:29 +0000 (15:28 +0200)]
Improve TPCE Xtesting tests cases

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

9 months agoUpdate temp-service-list 68/107068/1
Balagangadhar (Bala) Bathula [Tue, 25 Jul 2023 19:49:40 +0000 (15:49 -0400)]
Update temp-service-list

- If a service is implemented using service-create RPC and
  there exists an assoicated temp-service, then the temp-service-list
  needs to updated.
- Using commonId as the key, update the temp-service-list after the
  service is implmented (succeeds and becomes operational).

JIRA: TRNSPRTPCE-749
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
Change-Id: I04b0652779dd620e4e86bcb3ccdd75743f90b177

9 months agoAdd a workaround note to Xtesting INSTALL.txt 31/107031/1
guillaume.lambert [Tue, 25 Jul 2023 11:17:29 +0000 (13:17 +0200)]
Add a workaround note to Xtesting INSTALL.txt

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

9 months agoBug in freq-map topology update 68/106968/1
Balagangadhar (Bala) Bathula [Sat, 22 Jul 2023 00:34:35 +0000 (20:34 -0400)]
Bug in freq-map topology update

- When a service-create is initiated after the temp-service-create
  the temp-service boolean in Renderer Listener will still be true
  and it would not update the freq-map in the topology.
- During the service-create operation, we need to make sure this
  boolean is initialized to false.

JIRA: TRNSPRTPCE-748
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
Change-Id: I301f820aa4f81696f262e211523e9e629a468aa0

9 months agoAdd if-cap-support for If-OTU4-ODU4 ports (7.1) 35/106935/2
Balagangadhar (Bala) Bathula [Wed, 19 Jul 2023 17:37:27 +0000 (13:37 -0400)]
Add if-cap-support for If-OTU4-ODU4 ports (7.1)

- Currently the if-capability support is missing for IfOTU4ODU4
  type ports for 7.1 devices.
- Port-mapping fails to mount the NE with a null pointer expection when
  the supporting-interface-capabilities are not present in MappingUtilImpl.
- Add code to avoid null-pointer expection, even when the MappingUtilImpl
  does not contain required supported-if-cap.

JIRA: TRNSPRTPCE-747

Change-Id: I0270f99a93a02107a7c9a66f49e9825c65b06242
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
9 months agoMerge changes from topic "xtesting"
Guillaume Lambert [Tue, 18 Jul 2023 11:57:31 +0000 (11:57 +0000)]
Merge changes from topic "xtesting"

* changes:
  Add INSTALL.txt and ansible playbook for Xtesting
  Xtesting Dockerfile init

10 months agoOptimize Binding->NormalizedNode transforms 31/106831/1
Robert Varga [Wed, 5 Jul 2023 22:19:48 +0000 (00:19 +0200)]
Optimize Binding->NormalizedNode transforms

We are running serialization twice. Store the result in a local variable
and check against that.

Change-Id: Ifeb3fd35f2c0f066015c1f262deefb2667459372
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
10 months agoMigrate nullness annotations 30/106830/1
Robert Varga [Wed, 5 Jul 2023 21:40:19 +0000 (23:40 +0200)]
Migrate nullness annotations

Do not depend on javax.annotation, use JDT annotations instead.

Change-Id: Ie0e30b6ab0e1f7314f55aa40a0a667f6d7739ae7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
10 months agoAdd INSTALL.txt and ansible playbook for Xtesting 95/106795/3
guillaume.lambert [Tue, 4 Jul 2023 11:04:08 +0000 (13:04 +0200)]
Add INSTALL.txt and ansible playbook for Xtesting

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

10 months agoXtesting Dockerfile init 14/81014/22
guillaume.lambert [Tue, 26 Mar 2019 13:51:22 +0000 (14:51 +0100)]
Xtesting Dockerfile init

- create a Dockerfile sample
  to retrieve transportPCE master branch content
  and install required dependencies to run tox and build the project
- create a YAML configuration w/ a sample shell testcase
  to run pre-commit via tox

Change-Id: I96d1ab3c9439c13dbb8bd4877c314fb14ac2188c
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
10 months agoAdd OLM support for 7.1 model TPDR with 100G ports 06/106406/3
Balagangadhar (Bala) Bathula [Wed, 7 Jun 2023 16:26:37 +0000 (12:26 -0400)]
Add OLM support for 7.1 model TPDR with 100G ports

- A 7.1 OpenROADM transponder can contain ports that support
  both 100G and 400G.
- The current OLM transponder power setting only supports 400G.
- Using the supported-interface capability, enable the support for
  100G rates (if-OCH-OTU4-ODU4 and if-OCH types)

JIRA: TRNSPRTPCE-745
Change-Id: If53e401c4fed9fb87bea1fe88180217846cc1220
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
11 months agoRefactor SH Renderer Listener notification support 80/106380/1
guillaume.lambert [Mon, 5 Jun 2023 07:52:05 +0000 (09:52 +0200)]
Refactor SH Renderer Listener notification support

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

11 months agoAdd notification support for service-rpc-result 24/106124/6
Balagangadhar (Bala) Bathula [Mon, 22 May 2023 14:31:00 +0000 (10:31 -0400)]
Add notification support for service-rpc-result

- This RPC allows to notify the results of the path-computation
  such as assigned frequency, width, operational-mode-id,
  power range, GSNR and OSNR
- Applicable only for temp-service-create RPC
- Use-cases include IP-over-WDM and alien wavelength
- For IP-over-WDM or alien wavlength use case

JIRA: TRNSPRTPCE-743
Change-Id: I80258fad0b7ff3fc484203c9000a825e3565ea26
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
11 months agoDisable optical control mode for temp service 22/106122/5
Balagangadhar (Bala) Bathula [Fri, 19 May 2023 17:37:39 +0000 (13:37 -0400)]
Disable optical control mode for temp service

- Currently, when a temp-service is created, all
  the interfaces are pushed to the NE.
- If roadm-connections (crossconnets) are created without
  the ingress power-power, it would create alarms.
- For temp-service create, we keep the optical-control-mode
  in "off" state

Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
Change-Id: I9ccf6a9da74ff040a988ed86d3089e5b5a38060c

11 months agoUpdate path-description data for temp service list 91/105791/5
Balagangadhar (Bala) Bathula [Mon, 1 May 2023 18:42:12 +0000 (14:42 -0400)]
Update path-description data for temp service list

- When a temp-service is created, the temp-service list should
  indicate the transport assigment details.
- Using path description data of the temp-service, update
  transport assignment details such as min-freq, max-freq,
  spectral-width and central-frquency.

Change-Id: If59a863eee3cd5419ee97490fee8fbfde6ab18cd
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
11 months agoPath description YANG update 66/105766/2
Balagangadhar (Bala) Bathula [Mon, 1 May 2023 20:47:56 +0000 (16:47 -0400)]
Path description YANG update

- Currently path-description container does not include
  central-frequency and spectral width for a given service.
- Add central-frequency and spectral-width leafs to the
  A-Z direction and Z-A direction containers.
- Add received GNSR, OSNR, min/max power and operational-mode-id
  details.
- Update the revision date and necessary imports.

Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
Change-Id: I52fe413276ccedf8390123e22bc46f3c76e9e810
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
12 months agoBump upstream dependencies to Ar-SR1 32/105532/6
Gilles Thouenon [Thu, 20 Apr 2023 06:38:19 +0000 (08:38 +0200)]
Bump upstream dependencies to Ar-SR1

Adopt:
- odlparent-12.0.5
- yangtools-10.0.6
- mdsal-11.0.9
- netconf-5.0.6
- transportpce-models-18.1.0

Change-Id: I16272888d4c136157ab12b2065e837663faf9321
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
12 months agoMigrate Optional.get() callers 69/105669/3
Gilles Thouenon [Tue, 25 Apr 2023 16:33:46 +0000 (18:33 +0200)]
Migrate Optional.get() callers

Use Optional.orElseThrow() instead.

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

12 months agoRefactor Lighty.io build TransportPCEImpl step 2 53/105653/1
guillaume.lambert [Tue, 25 Apr 2023 13:04:46 +0000 (15:04 +0200)]
Refactor Lighty.io build TransportPCEImpl step 2

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

12 months agoEnforce checkstyle warnings in Lighty.io build 44/105644/1
guillaume.lambert [Mon, 24 Apr 2023 10:09:58 +0000 (12:09 +0200)]
Enforce checkstyle warnings in Lighty.io build

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

12 months agoClean Lighty.io build warnings 43/105643/1
guillaume.lambert [Mon, 24 Apr 2023 09:49:49 +0000 (11:49 +0200)]
Clean Lighty.io build warnings

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

12 months agoRefactor Lighty.io build TransportPCEImpl 42/105642/1
guillaume.lambert [Mon, 24 Apr 2023 09:41:05 +0000 (11:41 +0200)]
Refactor Lighty.io build TransportPCEImpl

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

12 months agoMerge "Add functional tests for regenerator type"
Guillaume Lambert [Fri, 21 Apr 2023 14:03:06 +0000 (14:03 +0000)]
Merge "Add functional tests for regenerator type"

12 months agoMerge "Enable 400G rate for OC service-format"
Guillaume Lambert [Fri, 21 Apr 2023 14:02:59 +0000 (14:02 +0000)]
Merge "Enable 400G rate for OC service-format"

12 months agoUpdate Lighty baseUrl to RFC8040 78/105478/1
Christophe Betoule [Mon, 17 Apr 2023 14:02:27 +0000 (16:02 +0200)]
Update Lighty baseUrl to RFC8040

JIRA: TRNSPRTPCE-742
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Change-Id: Ifb90c3e200ed205e77459146a66d331601f95f3c

12 months agoAdd functional tests for regenerator type 25/105225/6
Balagangadhar (Bala) Bathula [Fri, 31 Mar 2023 11:53:04 +0000 (07:53 -0400)]
Add functional tests for regenerator type

- Verify the port-mapping data
- Verify renderer for creating regenerator interfaces
- Verify renderer for deleting regnerator interfaces

JIRA: TRNSPRTPCE-740
Change-Id: I6051cc4b30d46f1e6b7baf8624ee88aea0a9d4f1
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
12 months agoMerge "Refactor SH ServicehandlerImplTest"
Guillaume Lambert [Thu, 13 Apr 2023 06:54:05 +0000 (06:54 +0000)]
Merge "Refactor SH ServicehandlerImplTest"

12 months agoEnable 400G rate for OC service-format 65/105265/4
Balagangadhar (Bala) Bathula [Wed, 5 Apr 2023 23:27:15 +0000 (19:27 -0400)]
Enable 400G rate for OC service-format

- Currently only 100G is supported for OC service-format

JIRA: TRNSPRTPCE-741
Change-Id: I92d0305610892828573a73373473c196b89b8868
Signed-off-by: Balagangadhar (Bala) Bathula <bb4341@att.com>
12 months agoRemove import-error checks from tox pylint profile 22/105422/1
guillaume.lambert [Wed, 12 Apr 2023 13:01:12 +0000 (15:01 +0200)]
Remove import-error checks from tox pylint profile

New Gerrit-tox JJB configuration breaks pylint request import,
what causes false positives in the CI

Issue-ID: https://jira.linuxfoundation.org/browse/RELENG-4539
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I1e04d41e84d88e048ed00832ab494ca84d2bd7e1

12 months agoCI: Prepare tox.ini for new tox version 51/105251/2
Matthew Watkins [Wed, 5 Apr 2023 10:22:11 +0000 (11:22 +0100)]
CI: Prepare tox.ini for new tox version

whitelist_externals is now deprecated in favor of allowlist_externals
https://tox.wiki/en/latest/changelog.html#v4-0-0rc4-2022-12-06

space separator is no longer valid for passenv variable lists
https://tox.wiki/en/latest/changelog.html#v4-0-3-2022-12-08

Issue-ID: https://jira.linuxfoundation.org/browse/RELENG-4539
Co-authored-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: If9322889b1d4625f0ddc58966adda92f614887c7
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
13 months agoRefactor SH ServicehandlerImplTest 79/105279/1
guillaume.lambert [Thu, 6 Apr 2023 13:43:51 +0000 (15:43 +0200)]
Refactor SH ServicehandlerImplTest

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

13 months agoRefactor SH ServicehandlerComplianceCheck 76/105276/1
guillaume.lambert [Thu, 6 Apr 2023 12:16:43 +0000 (14:16 +0200)]
Refactor SH ServicehandlerComplianceCheck

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

13 months agoRefactor SH CatalogValidation 73/105273/1
guillaume.lambert [Thu, 6 Apr 2023 10:02:55 +0000 (12:02 +0200)]
Refactor SH CatalogValidation

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

13 months agoRefactor SH CatalogDataUtil 13/105213/2
guillaume.lambert [Tue, 4 Apr 2023 09:18:33 +0000 (11:18 +0200)]
Refactor SH CatalogDataUtil

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

13 months agoRefactor SH CatalogMapper 09/105209/3
guillaume.lambert [Tue, 4 Apr 2023 08:47:10 +0000 (10:47 +0200)]
Refactor SH CatalogMapper

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

13 months agoBump project version to 8.0.0-SNAPSHOT 56/105156/4
Gilles Thouenon [Mon, 3 Apr 2023 11:38:32 +0000 (13:38 +0200)]
Bump project version to 8.0.0-SNAPSHOT

Start K development iteration.

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

13 months agoBump lighty to 18.0.0 released version 01/105201/3
Gilles Thouenon [Tue, 4 Apr 2023 06:34:17 +0000 (08:34 +0200)]
Bump lighty to 18.0.0 released version

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

13 months agoMerge "Catalog RPC Implementation"
Guillaume Lambert [Wed, 5 Apr 2023 17:51:38 +0000 (17:51 +0000)]
Merge "Catalog RPC Implementation"

13 months agoCatalog RPC Implementation 63/104963/6
Roshan Joyce [Fri, 17 Mar 2023 12:01:36 +0000 (17:31 +0530)]
Catalog RPC Implementation

Also, declare CatalogDataStoreOperations as a Component

JIRA: TRNSPRTPCE-714
Signed-off-by: Roshan Joyce <roshan.joyce@fujitsu.com>
Co-authored-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I9fe5b5c00d0145ceabd2edb7961f1f3e46065fee
(cherry picked from commit 30a7633eb11290b9fc0da5116fb9f6bec50710cc)

13 months agoMerge "Activate Swagger for Lighty"
Gilles Thouenon [Mon, 3 Apr 2023 10:50:10 +0000 (10:50 +0000)]
Merge "Activate Swagger for Lighty"

13 months agoUnregister DataTreeChangeListeners 62/104962/7
Gilles Thouenon [Fri, 17 Mar 2023 11:23:09 +0000 (12:23 +0100)]
Unregister DataTreeChangeListeners

- use a list of listeners of DataTreeChangeListeners when serveral are
registered.
- unregister all listeners when the bundle stop.
- add a check in few provider UT

Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ib564b7b74e2b499c129c4c76c0e5a38012853dd7
(cherry picked from commit 3f8fa9fb8da822fbc6579bbaaf49a95b499e9a27)

13 months agoRemove inventory-blueprint.xml file 56/104956/7
Gilles Thouenon [Thu, 16 Mar 2023 17:25:47 +0000 (18:25 +0100)]
Remove inventory-blueprint.xml file

- convert ListenerProvider into a Component
- remove some useless properties
- manage all object instantiation from ListenerProvider

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

13 months agoRemove dmaap-blueprint.xml file 55/104955/7
Gilles Thouenon [Thu, 16 Mar 2023 14:44:31 +0000 (15:44 +0100)]
Remove dmaap-blueprint.xml file

Convert DmaapClientProvider into a Component.

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I7dd15f32a597dfee0e2ee77e90fe17f17a40c627
(cherry picked from commit 8cde36c2ece92e26e0ebee020525ba5ab08d18f3)

13 months agoRemove nobinotifications-blueprint.xml file 54/104954/6
Gilles Thouenon [Thu, 16 Mar 2023 14:22:38 +0000 (15:22 +0100)]
Remove nobinotifications-blueprint.xml file

- convert NbiNotificationsProvider into a Component
- adapt NbiNotificationsProviderTest accordingly

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I298b7d1bf6f18f06a0bb3687f4df2363311629cf
(cherry picked from commit 0e5a378adbacbe904865e220a01fded2f597ff07)

13 months agoRemove tapi-blueprint.xml file 53/104953/6
Gilles Thouenon [Thu, 16 Mar 2023 12:37:32 +0000 (13:37 +0100)]
Remove tapi-blueprint.xml file

- Convert TapiProvider to OSGI DS.
- Adapt TapiProviderTest accordingly.

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I1e4ece95c9604d56d8eb00300866d1d5f5359fbe
(cherry picked from commit 40f7b65724bf8057eb16cd544b5135c9fdb36606)

13 months agoTurn TapiNetworkModelListenerImpl into a Component 52/104952/7
Gilles Thouenon [Thu, 16 Mar 2023 11:21:17 +0000 (12:21 +0100)]
Turn TapiNetworkModelListenerImpl into a Component

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I1ce5ae37fae9ea0f887fa5a580e5c0fad593d1b7
(cherry picked from commit 7138d52b04b59ac8d6c73f28808bd4ac6d2f59d7)

13 months agoConvert TapiNetworkUtilsImpl into a Component 51/104951/7
Gilles Thouenon [Thu, 16 Mar 2023 09:27:27 +0000 (10:27 +0100)]
Convert TapiNetworkUtilsImpl into a Component

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

13 months agoConvert TapiNetworkModelServiceImpl to a Component 50/104950/7
Gilles Thouenon [Thu, 16 Mar 2023 09:09:51 +0000 (10:09 +0100)]
Convert TapiNetworkModelServiceImpl to a Component

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I07d791a46372b17725faa440c093a4419290908b
(cherry picked from commit 6b42803ee32ed5f8f75a8edd51b73e80e0db830c)

13 months agoFix small bug in TapiTopologyImplExceptionTest 49/104949/7
Gilles Thouenon [Thu, 16 Mar 2023 08:42:39 +0000 (09:42 +0100)]
Fix small bug in TapiTopologyImplExceptionTest

Use mock of TapiLink instead of its real implementation

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

13 months agoConvert TapiLinkImpl into a Component 48/104948/7
Gilles Thouenon [Wed, 15 Mar 2023 20:05:28 +0000 (21:05 +0100)]
Convert TapiLinkImpl into a Component

- Rename TapiLink into TapiLinkImpl and create its associated interface.
- Turn TapiLinkImpl into a Component.
- Adapt blueprint file removing TapiLink bean.

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ied0c259a1e6186e0eb3d4fd2993ce150736111ab
(cherry picked from commit 3f83898ef90e47a1c85722caff67ee8243dc51fd)

13 months agoRemove static instantiations from RendererProvider 47/104947/7
Gilles Thouenon [Tue, 14 Mar 2023 12:56:43 +0000 (13:56 +0100)]
Remove static instantiations from RendererProvider

Convert DeviceRendererRPCImpl and TransportPCEServicePathRPCImpl
into Components.

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I678a717ac1ffdbadc181bc789c8066700c51b56c
(cherry picked from commit 807b93874f23be2f81da25b066204a827a05368a)

13 months agoMigrate servicehandler module to OSGI DS 46/104946/6
Gilles Thouenon [Wed, 15 Mar 2023 17:13:20 +0000 (18:13 +0100)]
Migrate servicehandler module to OSGI DS

- convert ServicehandlerImpl into a Component
- remove unused parameter in ServicehandlerImpl
- convert ServicehandlerProvider into a Component
- replace the implementation type of listener parameters by their
respective interface one in ServicehandlerProvider
- convert NetworkModelListenerImpl into a Component
- convert PceListenerImpl into a Component
- convert RendererListenerImpl into a Component
- convert ServiceListener into a Component
- create interfaces for pce, renderer and network listeners
- remove the servicehandler-blueprint.xml file
- adapt ServicehandlerProviderTest, ServicehandlerImplTest and
TapiConnectivityImplTest UT consequently

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I7440863e9ae4df0bc209bab6674e7531b9521e53
(cherry picked from commit 3eaaac5f8c8bd69d6505053c00a014509b8ece6c)

13 months agoTurn ServiceDataStoreOperationsImpl into Component 45/104945/6
Gilles Thouenon [Tue, 14 Mar 2023 17:28:00 +0000 (18:28 +0100)]
Turn ServiceDataStoreOperationsImpl into Component

JIRA: TRNSPRTPCE-736
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I70cf38993e3e20445b398078f7a4c46b1afedba5
(cherry picked from commit 1bb411b2d1b153a9d3be27081daf3e624c507c68)