You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/04/29 21:02:37 UTC
[cloudstack-primate] branch master updated: infra: runDiagnostic
output notification for routers and systemvms (#297)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new 67848a5 infra: runDiagnostic output notification for routers and systemvms (#297)
67848a5 is described below
commit 67848a53f93755ad408291fed986c0483e05d354
Author: Abhishek Kumar <ab...@gmail.com>
AuthorDate: Thu Apr 30 02:32:28 2020 +0530
infra: runDiagnostic output notification for routers and systemvms (#297)
Fixes: #293
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Co-authored-by: Rohit Yadav <ro...@shapeblue.com>
---
src/config/section/infra/routers.js | 3 ++-
src/config/section/infra/systemVms.js | 3 ++-
src/locales/en.json | 1 +
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/config/section/infra/routers.js b/src/config/section/infra/routers.js
index a031005..370fdaa 100644
--- a/src/config/section/infra/routers.js
+++ b/src/config/section/infra/routers.js
@@ -89,7 +89,8 @@ export default {
type: {
options: ['ping', 'traceroute', 'arping']
}
- }
+ },
+ response: (result) => { return result && result.diagnostics ? `<strong>Output</strong>:<br/>${result.diagnostics.stdout}<br/><strong>Error</strong>: ${result.diagnostics.stderr}<br/><strong>Exit Code</strong>: ${result.diagnostics.exitcode}` : 'Invalid response' }
},
{
api: 'getDiagnosticsData',
diff --git a/src/config/section/infra/systemVms.js b/src/config/section/infra/systemVms.js
index 380bb30..da53efa 100644
--- a/src/config/section/infra/systemVms.js
+++ b/src/config/section/infra/systemVms.js
@@ -80,7 +80,8 @@ export default {
type: {
options: ['ping', 'traceroute', 'arping']
}
- }
+ },
+ response: (result) => { return result && result.diagnostics ? `<strong>Output</strong>:<br/>${result.diagnostics.stdout}<br/><strong>Error</strong>: ${result.diagnostics.stderr}<br/><strong>Exit Code</strong>: ${result.diagnostics.exitcode}` : 'Invalid response' }
},
{
api: 'getDiagnosticsData',
diff --git a/src/locales/en.json b/src/locales/en.json
index 8035422..264fa65 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -804,6 +804,7 @@
"ovm3vip": "Master Vip IP",
"ovmnetworklabel": "OVM Traffic Label",
"palp": "Palo Alto Log Profile",
+"params": "Parameters",
"parentName": "Parent",
"passive": "Passive",
"password": "Password",