Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adaption to new ECS interface and PMS interface prefix
[nonrtric.git]
/
test
/
simulator-group
/
sim-monitor.js
diff --git
a/test/simulator-group/sim-monitor.js
b/test/simulator-group/sim-monitor.js
index
9a0616d
..
56a6e6d
100644
(file)
--- a/
test/simulator-group/sim-monitor.js
+++ b/
test/simulator-group/sim-monitor.js
@@
-219,6
+219,8
@@
var ricbasename="ricsim"
var rc_services=""
var rc_services=""
+var pmsprefix=""
+
function fetchAllMetrics_pol() {
console.log("Fetching policy metrics " + refreshCount_pol)
function fetchAllMetrics_pol() {
console.log("Fetching policy metrics " + refreshCount_pol)
@@
-923,14
+925,17
@@
app.get("/mon",function(req, res){
refreshCount_rc=5
var bn=req.query.basename
refreshCount_rc=5
var bn=req.query.basename
+ pmsprefix=req.query.pmsprefix
- if (bn == undefined) {
+ console.log("PMS"+pmsprefix)
+ if ((bn == undefined) || (pmsprefix == undefined)) {
getCtr=0
getCtr=0
- return res.redirect('/mon?basename=ricsim');
+ return res.redirect('/mon?basename=ricsim
&pmsprefix=/a1-policy/v2
');
} else {
ricbasename=bn
}
} else {
ricbasename=bn
}
+
//Build web page
var htmlStr = "<!DOCTYPE html>" +
"<html>" +
//Build web page
var htmlStr = "<!DOCTYPE html>" +
"<html>" +
@@
-941,6
+946,7
@@
app.get("/mon",function(req, res){
"<body>" +
"<font size=\"-3\" face=\"monospace\">" +
"<p>Change basename in url if other ric sim prefix is used</p>" +
"<body>" +
"<font size=\"-3\" face=\"monospace\">" +
"<p>Change basename in url if other ric sim prefix is used</p>" +
+ "<p>Change pmsprefix in url if pms with other prefix is used</p>" +
"</font>" +
"<h3>Policy agent</h3>" +
"<font face=\"monospace\">" +
"</font>" +
"<h3>Policy agent</h3>" +
"<font face=\"monospace\">" +