summaryrefslogtreecommitdiffstats
path: root/admportal/server/router/routes/odl.js
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2024-09-19 16:11:05 -0400
committerDan Timoney <dtimoney@att.com>2024-09-19 16:14:36 -0400
commit885b4e6f6caba1d6db67cb378ecfabd56b6da5be (patch)
tree70b7407deb16273f284d5f633e208e7de3f8d269 /admportal/server/router/routes/odl.js
parent05a58c8d2f4f9c738938375e6bc521b9679598b0 (diff)
RFC-8040 migration
Updates to migrate from Biermann draft version of RESTCONF to RFC 8040 version Issue-ID: SDNC-1847 Change-Id: I1837fc3613274aa0725f2d170e9346d402189f57 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'admportal/server/router/routes/odl.js')
-rw-r--r--admportal/server/router/routes/odl.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/admportal/server/router/routes/odl.js b/admportal/server/router/routes/odl.js
index 3882afcc..2dfee4a1 100644
--- a/admportal/server/router/routes/odl.js
+++ b/admportal/server/router/routes/odl.js
@@ -44,7 +44,7 @@ function handleResult(err, response_str, res) {
// calls restconf to get information
router.get('/listWklst', csp.checkAuth, function(req, res) {
options.strictSSL = true; // used to test SSL certificate
- OdlInterface.Get('/restconf/config/L3SDN-API:services',options, handleResult,req,res);
+ OdlInterface.Get('/rests/data/L3SDN-API:services?content=config',options, handleResult,req,res);
});
router.get('/pageWklst', csp.checkAuth, function(req,res) {
@@ -102,9 +102,9 @@ router.post('/update_vr_lan_interface', function(req,res){
};
var tasks = [];
tasks.push(function(callback){
- OdlInterface.put_vr_lan_interface('/restconf/config/L3SDN-API:services/layer3-service-list/'
+ OdlInterface.put_vr_lan_interface('/rests/data/L3SDN-API:services/layer3-service-list='
+ svc_instance_id
- + '/service-data/vr-lan/', options, callback);
+ + '/service-data/vr-lan?content=config', options, callback);
});
async.series(tasks, function(err,result){