Update Lighty baseUrl to RFC8040 78/105478/1
authorChristophe Betoule <christophe.betoule@orange.com>
Mon, 17 Apr 2023 14:02:27 +0000 (16:02 +0200)
committerChristophe Betoule <christophe.betoule@orange.com>
Mon, 17 Apr 2023 14:12:24 +0000 (16:12 +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 58ccf122c22ba3c10bb8cea6586a96f495e0d348..4911c2a3ff9d10595d78548afb5742ec2aaf65dc 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']