Update Lighty baseUrl to RFC8040 39/105639/1
authorChristophe Betoule <christophe.betoule@orange.com>
Mon, 17 Apr 2023 14:02:27 +0000 (16:02 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Mon, 24 Apr 2023 07:35:08 +0000 (09:35 +0200)
JIRA: TRNSPRTPCE-742
Signed-off-by: Christophe Betoule <christophe.betoule@orange.com>
Change-Id: Ifb90c3e200ed205e77459146a66d331601f95f3c

lighty/src/main/assembly/resources/config_template.json
tests/transportpce_tests/common/test_utils.py

index 1fadbabe3c9aa4cb8a3e2482e388d0a6ea6d2270..207497da8de35aa84abcdbd0a7c2085f2a97142c 100644 (file)
@@ -1,6 +1,7 @@
 {
     "restconf":{
         "inetAddress": "127.0.0.1",
-        "httpPort": ODL_RESTCONF_PORT
+        "httpPort": ODL_RESTCONF_PORT,
+        "restconfServletContextPath":"/rests"
     }
 }
index 75c523abf9fc7da3ff7fb41560b3091890e9c18e..9d5a6a4ffb26251e7ce8bfb29886f0833810a0e1 100644 (file)
@@ -59,8 +59,6 @@ else:
 
 RESTCONF_PATH_PREFIX = {'rfc8040': '/rests',
                         'draft-bierman02': '/restconf'}
-if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True':
-    RESTCONF_PATH_PREFIX['rfc8040'] = '/restconf'
 
 if 'USE_ODL_RESTCONF_VERSION' in os.environ:
     RESTCONF_VERSION = os.environ['USE_ODL_RESTCONF_VERSION']