transportpce.git
3 years agoMerge "Some tests for transportpce-common"
Guillaume Lambert [Wed, 24 Jun 2020 16:31:31 +0000 (16:31 +0000)]
Merge "Some tests for transportpce-common"

3 years agoMerge "improve pce unit tests"
Guillaume Lambert [Wed, 24 Jun 2020 15:25:20 +0000 (15:25 +0000)]
Merge "improve pce unit tests"

3 years agoSome tests for transportpce-common 04/90304/11
Abdelmuhaimen Seaudi [Fri, 5 Jun 2020 15:43:49 +0000 (17:43 +0200)]
Some tests for transportpce-common

add test-common dependancy in pom.xml file

JIRA: TRNSPRTPCE-276
Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Change-Id: I0534886a9aae432a3e8ee6d7d56779bf4f686a32

3 years agoimprove pce unit tests 68/90368/11
AhmedEldeeb50 [Wed, 10 Jun 2020 08:20:43 +0000 (10:20 +0200)]
improve pce unit tests

-add some helper methods at NetworkTransactionUtil
-add try with resource for IO
-add a message to assert(True/False)

JIRA: TRNSPRTPCE-209
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I721b6c3bf472a299cd3016929d4af2e99bd6bb5e

3 years agoAdd NetConfTopologyListenerTest 42/90142/12
Abdelmuhaimen Seaudi [Sat, 30 May 2020 22:06:18 +0000 (15:06 -0700)]
Add NetConfTopologyListenerTest

JIRA: TRNSPRTPCE-270
Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Change-Id: I142a58243b7f58f4f7d19fe664f841a11a9189ad

3 years agoreview tox.ini E2E tests sequence 26/90626/1
guillaume.lambert [Wed, 24 Jun 2020 13:35:56 +0000 (15:35 +0200)]
review tox.ini E2E tests sequence

- pull all end-to-end 1.2.1 or 2.2.1 tests at the end
- make them non-voting

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

3 years agoSH-Renderer API code to handle OTN Step 1 20/87920/38
Balagangadhar Bathula [Wed, 19 Feb 2020 22:04:55 +0000 (17:04 -0500)]
SH-Renderer API code to handle OTN Step 1

  - Added otn-service-path method in SH model-mapping
  - Updated renderer to differenciate WDM and OTN service.
  - Updated service-path-path with connection type.
  - Updated the ODU4/OTU4 renderer input create
  - Fixed unit tests

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

3 years agoupgrade transportpce-renderer YANG to 1.6.1 34/90434/10
Balagangadhar Bathula [Fri, 12 Jun 2020 21:01:22 +0000 (23:01 +0200)]
upgrade transportpce-renderer YANG to 1.6.1

 - to add a leaf connection-type that improves the OTN support
 - and modify import statements accordingly

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

3 years agoreplace portmapping FNV1-128 by FNV1-64 + Base64 05/90605/13
guillaume.lambert [Tue, 23 Jun 2020 14:14:31 +0000 (16:14 +0200)]
replace portmapping FNV1-128 by FNV1-64 + Base64

FNV1 128bit hash produces 16 bytes results but they cannot easily be
represented as a UTF-8 readable string of 16 characters as required
by SAPI/DAPI OpenROADM specification.
Base64 conversion allows to fix this but generates an overhead.
By using FNV1 64bit hash + Base64, we can guarantee the results
will not exceed 16 characters (usually around 13).

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

3 years agofix Lighty build 09/90609/2
guillaume.lambert [Tue, 23 Jun 2020 20:01:03 +0000 (22:01 +0200)]
fix Lighty build

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

3 years agoreactivate E2E functional tests in the gate 00/90600/1
guillaume.lambert [Tue, 23 Jun 2020 07:41:56 +0000 (09:41 +0200)]
reactivate E2E functional tests in the gate

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

3 years agofix some pylint issues 99/90599/1
guillaume.lambert [Mon, 22 Jun 2020 22:55:11 +0000 (00:55 +0200)]
fix some pylint issues

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

3 years agoimprove devices connection methods in tests 87/90587/3
guillaume.lambert [Mon, 22 Jun 2020 08:22:23 +0000 (10:22 +0200)]
improve devices connection methods in tests

- improve log parser output
- move some constants to common/test_utils:
  - RESTconf base URL
  - ODL and nodes credentials
  - json and XML application-type headers
- improve functions to mount or unmount devices onto ODL
- centralize them in common/test_utils to use the same ones in all tests
  and speed up tests by removing some timers

TODO in next other changes:
- use test_utils get/post/del/put_requests methods in all tests
- replace the other timers with the log parser
- find an alternative to calling 'tail -f' host command
- address pylint issues

Change-Id: I2b97700e363a3773dcc1606448eedae57c8c6696
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
3 years agoAlign 1.2.1 tests sims/tpce management to 2.2.1 97/90497/3
guillaume.lambert [Thu, 18 Jun 2020 10:43:04 +0000 (12:43 +0200)]
Align 1.2.1 tests sims/tpce management to 2.2.1

- move 2.2.1 test_utils.py to a common folder
  to make it resuable in 1.2.1 tests
- create 2 simulators.py files with version specific parameters
  to import them in test_utils
- use symlinks to by pass python relative import beyond top-level issues
- adapt functional tests code accordingly

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

3 years agoreview sims/tpce process management in 2.2.1 tests 71/90471/3
guillaume.lambert [Wed, 17 Jun 2020 22:07:51 +0000 (00:07 +0200)]
review sims/tpce process management in 2.2.1 tests

Change-Id: I441312ada9b10f498d86fcb1fd6fda0aa0be4d3f
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
3 years agofix topology files relative paths in PCE functest 20/90520/4
guillaume.lambert [Fri, 19 Jun 2020 14:56:48 +0000 (16:56 +0200)]
fix topology files relative paths in PCE functest

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

3 years agominor changes in functional tests 40/90440/6
Balagangadhar Bathula [Sun, 14 Jun 2020 02:58:07 +0000 (22:58 -0400)]
minor changes in functional tests

- Tox is added with env variables for network proxy setting
- Changed the default timeout value in test_utils.py 221
- fix tox.ini BSD sed
- comment this solution with the details of the backslash hell
  generated by tox

Change-Id: Ib6c4da9dac80705344038d199a7372795461a6dc

3 years agoMerge "review sims/tpce start-up sequence in 2.2.1 tests"
Guillaume Lambert [Sat, 20 Jun 2020 10:46:10 +0000 (10:46 +0000)]
Merge "review sims/tpce start-up sequence in 2.2.1 tests"

3 years agoMerge "rationalize functional tests sims starters"
Guillaume Lambert [Sat, 20 Jun 2020 10:45:46 +0000 (10:45 +0000)]
Merge "rationalize functional tests sims starters"

3 years agoUpdate honeynode simulator version 23/90523/1
manuedelf [Fri, 19 Jun 2020 20:23:44 +0000 (22:23 +0200)]
Update honeynode simulator version

New version following bux fix "Make honeycomb-tpce script BSD compatible"

Change-Id: If259f0d24924b86a55da0aeb655ce6b13ffb0685

3 years agoadd unit tests for pceOtnNode 64/90164/10
ShaabanEltanany [Sun, 31 May 2020 10:56:32 +0000 (12:56 +0200)]
add unit tests for pceOtnNode

JIRA: TRNSPRTPCE-209
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: I84db3039341163441d3bf05cf0741e3efb32a9e1

3 years agoCatch port-mapping failing 78/90378/7
Balagangadhar Bathula [Wed, 10 Jun 2020 14:57:43 +0000 (10:57 -0400)]
Catch port-mapping failing

When the xponder subtree has missing circuit-packs/ports,
skip those missing circuit-packs/ports and continue port-mapping.

Change-Id: I33e53c9b9d5981564986593d87fa1532d5b06edb

3 years agoPower Control for Flex-grid 55/90455/4
shweta [Mon, 15 Jun 2020 19:09:32 +0000 (15:09 -0400)]
Power Control for Flex-grid

1) Updated olm-renderer-input to have central-freq and width
2) Changed revision for transportpce-common-types
3) Added PSD power calculation in PowerMgmtImpl

TRNSPRTPCE-254
Signed-off-by: shweta <sv111y@att.com>
Change-Id: I7f0ace1e0d88e9840a401108e15787d8e8d81942

3 years agoMerge "fix assertDictContainsSubset deprecation warnings"
Guillaume Lambert [Thu, 18 Jun 2020 15:05:27 +0000 (15:05 +0000)]
Merge "fix assertDictContainsSubset deprecation warnings"

3 years agoadding some unit tests for PceServiceRPCImpl 99/90199/7
ShaabanEltanany [Tue, 2 Jun 2020 04:47:13 +0000 (06:47 +0200)]
adding some unit tests for PceServiceRPCImpl

JIRA: TRNSPRTPCE-209
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: I2bfab3053f865191e9e03b588666669e7b08f821

3 years agoUpdate honeynode simulator version 68/90468/1
manuedelf [Wed, 17 Jun 2020 17:47:39 +0000 (19:47 +0200)]
Update honeynode simulator version

New version following bug fix when deleting interface for 2.2.1 devices.

Change-Id: Ib843b4092a0bdcb9f55544c1b719c522833d0d0e

3 years agoreview sims/tpce start-up sequence in 2.2.1 tests 66/90466/1
guillaume.lambert [Wed, 17 Jun 2020 09:32:12 +0000 (11:32 +0200)]
review sims/tpce start-up sequence in 2.2.1 tests

and make tests fail immediately when tpce does not start correctly

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

3 years agorationalize functional tests sims starters 52/90452/6
guillaume.lambert [Mon, 15 Jun 2020 11:05:16 +0000 (13:05 +0200)]
rationalize functional tests sims starters

in test_utils.py:
- centralize sims ports and config/log files in one associative array
- based on this, use one method start_sim(sim) for every sims
- remove obsolete dedicated-per-sim methods
- centralize messages printed at sims and tpce start-up

in tests files
- replace harcoded port values by the corresponding array value
- replace the term "honeynode" by "sim" which is more generic
- remove obsolete sims timers in 2.2.1 tests

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

3 years agofix assertDictContainsSubset deprecation warnings 58/90458/2
guillaume.lambert [Tue, 16 Jun 2020 07:56:08 +0000 (09:56 +0200)]
fix assertDictContainsSubset deprecation warnings

that appeared in functional tests with python 3.2

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

3 years agoUUID stabilization in TAPI Topology abstraction 45/90445/2
Gilles Thouenon [Sat, 13 Jun 2020 14:24:02 +0000 (16:24 +0200)]
UUID stabilization in TAPI Topology abstraction

- make UUID generation deterministics instead of being randomly generated
- update existing JUnit tests taking into acount this evolution
- add new JUnit test to validate the TAPI abstraction for OTN topology

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

3 years agoMerge "Improve OpenRoadmOtnTopology and add Junit tests"
Guillaume Lambert [Fri, 12 Jun 2020 14:25:28 +0000 (14:25 +0000)]
Merge "Improve OpenRoadmOtnTopology and add Junit tests"

3 years agoImprove OpenRoadmOtnTopology and add Junit tests 72/90372/8
Gilles Thouenon [Fri, 5 Jun 2020 10:28:11 +0000 (12:28 +0200)]
Improve OpenRoadmOtnTopology and add Junit tests

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

3 years agoMerge "Lighty refactor"
Guillaume Lambert [Thu, 11 Jun 2020 15:04:59 +0000 (15:04 +0000)]
Merge "Lighty refactor"

3 years agoLighty refactor 79/90379/7
manuedelf [Wed, 10 Jun 2020 14:25:49 +0000 (16:25 +0200)]
Lighty refactor

- clean pom
- add unit test
- add TpceBanner class to print banner
- add possibility to pass a config file for restconf at startup
- add technicalException to exit application if startup failed
- split TransportPCEImpl constructor
- add checkstyle from odl parent
- fix checkstyle violations

JIRA: TRNSPRTPCE-237
Change-Id: I3956d83ab6f0dfafa57e26058d275c4448a8c95c

3 years agoUpdate honeynode simulator version 98/90298/3
manuedelf [Fri, 5 Jun 2020 12:20:15 +0000 (14:20 +0200)]
Update honeynode simulator version

Support interleave capability

Change-Id: Ia796e4637a6f32c9374d259833368bfcf45c15aa

3 years agorun autopep8 on functional tests suite 73/90373/2
guillaume.lambert [Wed, 10 Jun 2020 11:34:54 +0000 (13:34 +0200)]
run autopep8 on functional tests suite

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

3 years agoT-API support in Lighty 42/90342/6
manuedelf [Tue, 9 Jun 2020 09:28:38 +0000 (11:28 +0200)]
T-API support in Lighty

- add T-API provider to lighty.
- add Lighty support to tapi221 functional test

JIRA: TRNSPRTPCE-237
Change-Id: I9d3520ad89c2d94535b213aee92f1fb414609226

3 years agoMerge changes from topic "fix-tapi"
Guillaume Lambert [Wed, 10 Jun 2020 07:56:12 +0000 (07:56 +0000)]
Merge changes from topic "fix-tapi"

* changes:
  Tapi functional tests
  improve functional tests

3 years agoTapi functional tests 22/90222/11
manuedelf [Tue, 2 Jun 2020 22:19:44 +0000 (00:19 +0200)]
Tapi functional tests

- Add functional test for tapi
- Update tox.ini with the functional test for tapi

JIRA: TRNSPRTPCE-273
Change-Id: I570f4a67dbed511f7ba245d1035feef7110138c9

3 years agoimprove functional tests 46/90246/4
manuedelf [Thu, 4 Jun 2020 09:29:18 +0000 (11:29 +0200)]
improve functional tests

- Refactor test_util 2.2.1 to remove duplicated code
- improve sed command in tox.ini to patch Karaf exec

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

3 years agoMeasure and set spanloss with one fractional digit 79/90179/3
Jonas Mårtensson [Sun, 31 May 2020 18:39:11 +0000 (20:39 +0200)]
Measure and set spanloss with one fractional digit

Currently spanloss is measured and set without any fractional digits.
This patch proposes to use one fractional digit for more precise
calculation of target power value.

Unit tests and functional tests have been updated with the more precise
spanloss and power values.

Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
Change-Id: I7b7aba070f7ecf7894c89de9807b686f75eecfeb

3 years agoAvoid converting spanloss to double when calculating target power value 73/90173/2
Jonas Mårtensson [Sun, 31 May 2020 18:02:09 +0000 (20:02 +0200)]
Avoid converting spanloss to double when calculating target power value

Currently spanloss is measured and set without any fractional digits.
We would like to have one fractional digit but this creates problems
because of the conversion to double when calculating target power
resulting in the power value having more than the two fractional digits
allowed by the yang module. This patch proposes to skip the conversion
to double and only use BigDecimal to avoid the problem.

The proposal to measure spanloss with one fractional digit will be
submitted in a separate patch.

Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
Change-Id: Ibd13c991d43f2e94739710412e8edadcc0c537bf

3 years agoFix bug in PceOtnNode 29/90329/2
Gilles Thouenon [Mon, 8 Jun 2020 10:09:31 +0000 (12:09 +0200)]
Fix bug in PceOtnNode

Allow path computation for otn lo-services

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

3 years agoLighty support in Magnesium 35/90335/3
manuedelf [Mon, 8 Jun 2020 15:15:46 +0000 (17:15 +0200)]
Lighty support in Magnesium

- use release version of lighty-app-parent
- set groupId to io.lighty.controller
- set artifactId to tpce
- fix final jar name to tpce
- update shell scripts
- remove unused dependencies from pom
- add missing ietf.restconf.rev131019 yang model to fix serialization problem

JIRA: TRNSPRTPCE-237
Change-Id: I45f243091ad1ec723475350d04b373cf8580cb84

3 years agoFix TAPI Sonar issues 42/90242/6
manuedelf [Thu, 4 Jun 2020 08:33:58 +0000 (10:33 +0200)]
Fix TAPI Sonar issues

JIRA: TRNSPRTPCE-215
Change-Id: I7ce7da54928748392ecb68877a8159cddbd40b4b

3 years agobump dependencies to Mg SR2 dev versions 25/90325/1
Guillaume Lambert [Mon, 8 Jun 2020 07:27:43 +0000 (09:27 +0200)]
bump dependencies to Mg SR2 dev versions

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

3 years agoRemove repositories section from pom 10/90310/1
Thanh Ha [Fri, 5 Jun 2020 18:24:18 +0000 (14:24 -0400)]
Remove repositories section from pom

It is not good Maven practice to hardcode repositories sections into
pom.xml and our check-poms job has been failing due to this for some
time.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Ia15e9e741e5ea2dfca32c43bdf10ac59786abc7e

3 years agoJunit tests for network model 44/90244/7
Gilles Thouenon [Thu, 4 Jun 2020 08:15:22 +0000 (10:15 +0200)]
Junit tests for network model

Add new Junit unitary tests for package
org.opendaylight.transportpce.networkmodel.util

JIRA: TRNSPRTPCE-270
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Co-authored-by: Emmanuelle Delfour <emmanuelle.delfour@gmail.com>
Change-Id: Ia93aa3b37bc5a2df8981e862ebffd164bcd5d852

3 years agoFix tapi execution 21/90221/5
manuedelf [Tue, 2 Jun 2020 22:11:07 +0000 (00:11 +0200)]
Fix tapi execution

- Fix NPE in TapiTopologyImpl
- Fix Junit for TapiTopoogyImpl

JIRA: TRNSPRTPCE-275
Change-Id: Ia2323068a5d39ca91fcbd05d19659a6f748e0759

3 years agoGNPy stub for PCE 11/90011/7
manuedelf [Wed, 27 May 2020 18:48:12 +0000 (20:48 +0200)]
GNPy stub for PCE

Add GNPy stub to simulate GNPy API
Add class util to deserialize file content to GNPy Yang object
Add example how to use GNPy stub
Add JSON files for openroadm-network
Add JSON file for opendroadm-topology
Add JSON file for GNPy result
Add JSON file for GNPY request
Add simplelogger.properties file for unit tests log

JIRA: TRNSPRTPCE-209
Change-Id: Id2ea6ba918636a35b99cad2acc6176115d3dbe2b

3 years agoPCE func tests to consider oms-attributes absence 19/90219/4
atriki [Tue, 2 Jun 2020 13:04:27 +0000 (15:04 +0200)]
PCE func tests to consider oms-attributes absence

- Compute a path in complex_topo_uni_dir_data from Xponder2-2 to Xponder-1-2
- Check that the path goes through the link
OpenRoadm-1-3-DEG2-to-OpenRoadm-1-2-DEG2
- Delete the oms-attributes of OpenRoadm-1-3-DEG2-to-OpenRoadm-1-2-DEG2
- Compute a new path between the same source/destination nodes as the first
- Check that the new path does not go through the link
OpenRoadm-1-3-DEG2-to-OpenRoadm-1-2-DEG2

JIRA: TRNSPRTPCE-69
Change-Id: Icc6fe79fc0bc4f0cc47c6230f461894576529744
Signed-off-by: atriki <ahmed.triki.tn@gmail.com>
3 years agoUpdate .gitignore 23/90223/2
manuedelf [Tue, 2 Jun 2020 22:25:24 +0000 (00:25 +0200)]
Update .gitignore

Ignore directory generated by junit on pce

Change-Id: Iccf9f92f6ed24fdc3d86d7cc48b88ddc3eb59a78

3 years agoFix tapi feature installation 20/90220/2
manuedelf [Tue, 2 Jun 2020 21:31:24 +0000 (23:31 +0200)]
Fix tapi feature installation

Since change #88138 tapi feature installation result has OK status
but TapiTopologyImpl init method was not called du to wrong
blueprint file directory path

- Fix tapi blueprint configuration file directory path

JIRA: TRNSPRTPCE-275
Change-Id: I024045266e08018e72adc698dabe890ef354f0bd

3 years agoEnforce SpotBugs in Service handler 14/89614/19
guillaume.lambert [Wed, 6 May 2020 10:41:13 +0000 (12:41 +0200)]
Enforce SpotBugs in Service handler

and fix ServiceHandler SLF4J SpotBugs issues.
By the way:
- rename ServiceHandlerCompliancyCheck class for coherence
- clean ModelMappingUtils.java and ServicehandlerImpl.java
- review how messages and logs are handled
- improve Junit tests

JIRA: TRNSPRTPCE-214 TRNSPRTPCE-246 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I82e1ac784bb66acbdcf62004da6da6eb3701434b

3 years agoadded test cases for graph with OTN 06/90006/3
AhmedEldeeb50 [Wed, 27 May 2020 16:28:09 +0000 (18:28 +0200)]
added test cases for graph with OTN

JIRA: TRNSPRTPCE-209

Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Id8265333706462e4f8943f8db3e3fecedd1038ab

3 years agoupdate wiki URL once more 37/90037/2
Guillaume Lambert [Thu, 28 May 2020 13:45:02 +0000 (15:45 +0200)]
update wiki URL once more

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

3 years agoUpdate Dockerfile 64/89864/3
manuedelf [Tue, 19 May 2020 14:13:21 +0000 (16:13 +0200)]
Update Dockerfile

Following removing honeynode source code from
transportpce, Dockerfile must be updated.

JIRA: TRNSPRTPCE-238
Change-Id: Idb5122a865c772e695be33bb0127f90f19360e50

3 years agoadd some unit tests and refactor isPceOtnNodeValid 10/89910/2
ShaabanEltanany [Thu, 21 May 2020 20:52:26 +0000 (22:52 +0200)]
add some unit tests and refactor isPceOtnNodeValid

JIRA: TRNSPRTPCE-209
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: Ifbe167a1148d592e7719a4c1f8061f01b1d6ab38

3 years agoEnforce SpotBugs in inventory build process 06/89606/6
guillaume.lambert [Tue, 5 May 2020 14:18:04 +0000 (16:18 +0200)]
Enforce SpotBugs in inventory build process

by annotating remaining warnings with a @SuppressFBwarnings decorator

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265 TRNSPRTPCE-272
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iabd129118abf6c47f97bd63e83363c462f776456

3 years agofix some inventory issues 05/89605/5
guillaume.lambert [Tue, 5 May 2020 13:19:19 +0000 (15:19 +0200)]
fix some inventory issues

SpotBugs issues
- Huge string constants duplicated across multiple class files
- unused local variables

Checkstyle issue
- 120 characters line length enforced in queries strings

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I8b4971f503897df566eb833fb01b8693e451dc68

3 years agoremove inventory uncalled private methods 86/89586/4
guillaume.lambert [Mon, 4 May 2020 11:40:44 +0000 (13:40 +0200)]
remove inventory uncalled private methods

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I34350349487befbfefb408dd4bf9c0b7aa1507dc

3 years agoEnforce Spotbugs in tapi module 36/89636/3
guillaume.lambert [Thu, 7 May 2020 16:01:17 +0000 (18:01 +0200)]
Enforce Spotbugs in tapi module

by fixing remaining SpotBugs issues

JIRA: TRNSPRTPCE-215 TRNSPRTPCE-247 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I9ca19f61747c77d2431783dab82cc63935917400

3 years agoremove ServiceHandler stub classes 55/89855/4
guillaume.lambert [Sun, 17 May 2020 15:16:42 +0000 (17:16 +0200)]
remove ServiceHandler stub classes

They are not used anymore and the code base have too much diverged
to reuse them.

JIRA: TRNSPRTPCE-214 TRNSPRTPCE-246 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I088a6d4b9823b7880aad7a29aaf34534351cdff9

3 years agoRemove honeynode source code 58/89858/9
manuedelf [Mon, 18 May 2020 10:21:08 +0000 (12:21 +0200)]
Remove honeynode source code

- remove honeynode source code under tests/honeynode/1.2.1
- remove honeynode source code under tests/honeynode/2.2.1
- remove buildHoneynode.sh script under tests directory
- add install_honeynode.sh script under tests directory
- update tox.ini
- update tests/transportpce_tests/1.2.1/test_utils.py
  with new honeynode path
- update tests/transportpce_tests/2.2.1/test_utils.py
  with new honeynode path

TODO: update tests/Xtesting/DockerSims/Dockerfile.
      It will be done in another change.

JIRA: TRNSPRTPCE-238
Change-Id: I87282c61db9bd57e08941095e2dd615c1b7b89b5

3 years agofix ServiceHandler SpotBugs false positives 15/89615/6
guillaume.lambert [Wed, 6 May 2020 11:02:27 +0000 (13:02 +0200)]
fix ServiceHandler SpotBugs false positives

add a SuppressFBwarning decorator on classes with false positives when
detecting uncalled private methods or objects comparison on strings

JIRA: TRNSPRTPCE-214 TRNSPRTPCE-246 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ic3feef9a7bc81a95914b79893727e2010b4b93bd

3 years agofix inventory SLF4J SpotBugs issues 82/89582/6
guillaume.lambert [Mon, 4 May 2020 09:30:14 +0000 (11:30 +0200)]
fix inventory SLF4J SpotBugs issues

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I4a2b4614f2f760cd83a1f5bd491c706f9dae8b44

3 years agoMerge "Fix pce pom dependency"
Guillaume Lambert [Fri, 15 May 2020 11:38:50 +0000 (11:38 +0000)]
Merge "Fix pce pom dependency"

3 years agoFix pce pom dependency 57/89757/1
Gilles Thouenon [Fri, 15 May 2020 07:08:21 +0000 (09:08 +0200)]
Fix pce pom dependency

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

3 years agoEnforce Spotbugs in OLM module 62/89662/3
guillaume.lambert [Mon, 11 May 2020 12:48:39 +0000 (14:48 +0200)]
Enforce Spotbugs in OLM module

by fixing remaining SpotBugs issues

JIRA: TRNSPRTPCE-211 TRNSPRTPCE-243 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ie99c37b4952199ea40778a5dfb0a32d63c8c99f1

3 years agofix inventory toString misuses SpotBugs issues 03/89603/3
guillaume.lambert [Tue, 5 May 2020 09:48:09 +0000 (11:48 +0200)]
fix inventory toString misuses SpotBugs issues

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I415c3c849e064ecca5065117d039f07527ace297

3 years agoreplace inventory Preconditions by requireNonNull 04/89604/4
guillaume.lambert [Tue, 5 May 2020 13:48:11 +0000 (15:48 +0200)]
replace inventory Preconditions by requireNonNull

as advised by SpotBugs

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I2c2875d6ef1ab319a6f38f48bdc6f683ac9a4149

3 years agoimprove test cases in PCE contraints 37/89737/3
AhmedEldeeb50 [Wed, 13 May 2020 13:30:56 +0000 (15:30 +0200)]
improve test cases in PCE contraints

JIRA: TRNSPRTPCE-209
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I338e6ff0ab31f8ee0889a1a9958d30aefe11ad1a

3 years agosmall improvement in PCE OTN node networkanalyzer 44/89744/2
Guillaume Lambert [Thu, 14 May 2020 10:16:50 +0000 (12:16 +0200)]
small improvement in PCE OTN node networkanalyzer

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

3 years agoadd some Junit tests to pceOtnNode 33/89733/4
ShaabanEltanany [Wed, 13 May 2020 08:59:28 +0000 (10:59 +0200)]
add some Junit tests to pceOtnNode

JIRA: TRNSPRTPCE-209
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: I83cf44ec16eebd8d142e5c78b3fde400f4647482

3 years agoMake PCE optical node validation fail when no PPs are available 57/88857/5
Jonas Mårtensson [Thu, 2 Apr 2020 15:22:46 +0000 (17:22 +0200)]
Make PCE optical node validation fail when no PPs are available

Currently path computation succeeds even if all external PP ports on an
end SRG are already used. Then the renderer will fail during service
setup. It seems to me that it would be better to have the path
computation fail. This is a small proposed change to make that happen.

Change-Id: I92308cc7f12f9957f376c4d10b3d92323e865481
Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
3 years agoupdate wiki URL in config files 05/89705/1
Guillaume Lambert [Tue, 12 May 2020 15:59:28 +0000 (17:59 +0200)]
update wiki URL in config files

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

3 years agoRead all LLDP neighbours even if one fails 96/89596/3
Jonas Mårtensson [Tue, 5 May 2020 06:48:06 +0000 (08:48 +0200)]
Read all LLDP neighbours even if one fails

Currently in the readLLDP function, when looping over all neighbours in
nbrList, if createR2RLink for one neighbour fails, the whole function
returns which means that the rest of the neighbors in nbrList are never
processed. I think it makes more sense to continue the loop and create
R2R links for other neighbors. This patch proposes to do that while
still returning false if one createR2RLink fails.

Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
Change-Id: I73d587cc52c1b11e449baf3c69c9179a7dc2483d

3 years agoUpdate documentation diagram with otn xponder 94/89694/1
Gilles Thouenon [Thu, 5 Mar 2020 17:47:17 +0000 (18:47 +0100)]
Update documentation diagram with otn xponder

and improve the inventory documentation.

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

3 years agoadd inventory documentation 41/88241/3
Narayan Padi [Wed, 4 Mar 2020 09:48:20 +0000 (10:48 +0100)]
add inventory documentation

Change-Id: Ib1c60746a026ffa0b7c1285cee5e6a9306df2d99
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
3 years agoComplement documentation with OTN data 40/88240/2
Gilles Thouenon [Mon, 2 Mar 2020 07:43:08 +0000 (08:43 +0100)]
Complement documentation with OTN data

- change transportpce architecture figure to show GNPy linkage
- explain how to handle otn-renderer for Mg SR0

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

3 years agoEnforce Spotbugs in test-common module 18/89618/2
guillaume.lambert [Wed, 6 May 2020 15:06:51 +0000 (17:06 +0200)]
Enforce Spotbugs in test-common module

by fixing remaining SpotBugs issues

JIRA: TRNSPRTPCE-216 TRNSPRTPCE-248 TRNSPRTPCE-265
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ie2e8493a3c2d2acd29a782cabaf037e99c7fd28d

3 years agoadd unit test for graph package. 01/89601/4
AhmedEldeeb50 [Tue, 5 May 2020 09:37:50 +0000 (11:37 +0200)]
add unit test for graph package.

JIRA: TRNSPRTPCE-209
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Ice69da80f9ff1d8adedda73e70f9aa3c6db4c595

3 years agoAdding SAPI/DAPI to Renderer 86/87086/24
Balagangadhar Bathula [Wed, 22 Jan 2020 19:25:42 +0000 (14:25 -0500)]
Adding SAPI/DAPI to Renderer

- Refactor code for codestyle warnings
- Removed deprecated warnings
- Removed hardcorded lines
- updated code to have hash value for SAPI and DAPI
- introduce a FNV1 128 bit private hash function
  to abide by the 16 Bytes limitation on these parameters length.
- clean some parts of the code
- modified test cases, both 1.2.1 and 2.2.1
- Added expected sapi/dapi
- Removed some deprecated methods in test suite

JIRA: TRNSPRTPCE-183
Co-authored-by: Shweta Vachhani <sv111y@att.com>
Co-authored-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Iefb56ec9e2bcf99c120143e2816a0653c48be248
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
3 years agoupdate portmapping YANG to store SAPI/DAPI hashmap 33/89533/2
Guillaume Lambert [Thu, 30 Apr 2020 13:37:24 +0000 (15:37 +0200)]
update portmapping YANG to store SAPI/DAPI hashmap

- add a leaf lcp-hash-val to transportpce portmapping YANG
- update revision date
- update java imports with new revision date

JIRA: TRNSPRTPCE-183
Co-authored-by: Shweta Vachhani <sv111y@att.com>
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I7d7df6b2e0003267269045e311ddb18dfe17252d

3 years agoadd pceOtnNodeTest class 74/89574/1
ShaabanEltanany [Sun, 3 May 2020 13:27:03 +0000 (15:27 +0200)]
add pceOtnNodeTest class

JIRA: TRNSPRTPCE-209
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: I72860d61cd9a453982cd7634631652fc3950bc9b

3 years agoupdate lighty.io build for Magnesium support 61/88961/12
Guillaume Lambert [Wed, 8 Apr 2020 07:45:54 +0000 (09:45 +0200)]
update lighty.io build for Magnesium support

- update lighy-core branch to 12.1.x
- update dependencies version to 12.1.0
- update functional tests to use lighty executable version 12.1.0
- JAVA 11 support: disable javadoc to allow building directly
  without setting the JAVA_HOME variable
- add transportpcer-networkmodel new dependency
- fix tpce java Main class and utils class

TODO: centralize lighty version configuration
      add tapi and inventory support
      fix functional tests with lighty

JIRA: TRNSPRTPCE-237
Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Co-authored-by: Balagangadhar Bathula <bb4341@att.com>
Change-Id: Icec9547f5ead4e0abc10cdb67e2e8d8e6055a4ec

3 years agofix some minor issues 12/89512/3
guillaume.lambert [Wed, 29 Apr 2020 08:17:47 +0000 (10:17 +0200)]
fix some minor issues

- ordmodels/device/pom.xml doppelganger
- tox olmUtils patch persistence

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

3 years agofix PCE SpotBugs issues 18/89518/3
guillaume.lambert [Wed, 29 Apr 2020 14:49:38 +0000 (16:49 +0200)]
fix PCE SpotBugs issues

- add a SuppressFBwarning decorator on classes with false positives
- remove uncalled private methods
- enforce SpotBugs at build time in PCE pom.xml

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

3 years agoadd PcePathDescription Test 19/89519/1
AhmedEldeeb50 [Wed, 29 Apr 2020 15:15:19 +0000 (17:15 +0200)]
add PcePathDescription Test

JIRA: TRNSPRTPCE-209
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Ic9448f6d551749fe70b0ceee6a403acd4a6c7c9e

3 years agoadd unit test for pceLink and pceOpticalNode 36/89436/8
ShaabanEltanany [Mon, 27 Apr 2020 09:09:48 +0000 (11:09 +0200)]
add unit test for pceLink and pceOpticalNode

JIRA: TRNSPRTPCE-209
Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com>
Change-Id: I5f157556e489d7ae9ab749934a56b6483606615f

4 years agoupdate PceLink test object and NetworkService 98/89398/5
AhmedEldeeb50 [Sun, 26 Apr 2020 14:07:59 +0000 (16:07 +0200)]
update PceLink test object and NetworkService

JIRA: TRNSPRTPCE-209
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: If3d8ba209f1f4e1ca91f8b19d3e6e9f5a4ecf212

4 years agofix import extra separations 48/89448/5
guillaume.lambert [Mon, 27 Apr 2020 16:04:06 +0000 (18:04 +0200)]
fix import extra separations

This new checkstyle rule is now enforced by the releng merge job.

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

4 years agoupdate Mg SR1 kernel dependencies dev versions 47/89447/1
guillaume.lambert [Mon, 27 Apr 2020 14:02:04 +0000 (16:02 +0200)]
update Mg SR1 kernel dependencies dev versions

These versions have been updated at
https://docs.opendaylight.org/projects/integration-distribution/en/stable-magnesium/platform-versions.html

JIRA: TRNSPRTPCE-235
Change-Id: I7f9cc2f79e6051811ccb773bb56020731b40b911
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
4 years agoAlign OTN renderer on OTN PCE and update otn-topo 60/88860/14
Gilles Thouenon [Thu, 2 Apr 2020 11:46:57 +0000 (13:46 +0200)]
Align OTN renderer on OTN PCE and update otn-topo

- add dependency towards network module to request NetworkModelService
methods
- service-path rpc allows creation/deletion of OCH and OTU4 interfaces
and updates otn-topology with OTU4 links
- otn-service-path rpc allows creation/deletion of ODU4 interfaces,
structured for otn low order service, and creation/deletion of otn low
order services. Moreover, it creates/updates/deletes consequently otn
links and ODU4 termination points in otn-topology (bandwidth
parameters, tributary slot and tributary port availabilities...)
- adapt otn-renderer functional tests to take into account new behavior

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

4 years agoUpdate otn-topology with otn-links 59/88859/11
Gilles Thouenon [Thu, 2 Apr 2020 07:53:30 +0000 (09:53 +0200)]
Update otn-topology with otn-links

Adds and implements new methods in NetworkModelService and
OpenRoadmOtnTopology to create, update and delete otn links. These
methods are intended to be used by renderer module after otn interfaces
and odu connections have been correctly configured in otn devices.

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

4 years agoadd a pylint tox profile for functional tests 87/89087/6
Guillaume Lambert [Fri, 17 Apr 2020 07:45:20 +0000 (09:45 +0200)]
add a pylint tox profile for functional tests

- declare the pylint profile in tox.ini testenv.
- disable missing-docstring check
- set maximum line length check to 120 characters (ODL standard)

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

4 years agoadding PceOpticalNodeTest Class 67/89267/5
Abdelmuhaimen Seaudi [Wed, 22 Apr 2020 12:52:50 +0000 (05:52 -0700)]
adding PceOpticalNodeTest Class

JIRA: TRNSPRTPCE-209
Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
Change-Id: I562fff729aadfede3f9b04a7ac6a8b612f5abead

4 years agoMerge "add tests for impl layer pce module"
Guillaume Lambert [Wed, 22 Apr 2020 12:32:56 +0000 (12:32 +0000)]
Merge "add tests for impl layer pce module"

4 years agoadd tests for impl layer pce module 61/89261/2
ShaabanEltanany [Wed, 22 Apr 2020 10:25:25 +0000 (12:25 +0200)]
add tests for impl layer pce module

JIRA TRNSPRTPCE-209
Signed-off-by: guillame.lambert <guillaume.lambert@orange.com>
Change-Id: I842c0281795613248cb20ff76057358baeefd42a

4 years agoFix previous and add new PCE Junit test cases 66/89066/14
AhmedEldeeb50 [Wed, 15 Apr 2020 18:28:52 +0000 (20:28 +0200)]
Fix previous and add new PCE Junit test cases

- add unit tests for PceLink

JIRA TRNSPRTPCE-209
Signed-off-by: AhmedEldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: I01b5c172481f56691f1ef8dc17837354262154b7