infra: runDiagnostic output notification for routers and systemvms (#297)

Fixes: #293

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Abhishek Kumar 2020-04-30 02:32:28 +05:30 committed by Rohit Yadav
parent 9c356c9a03
commit 16b359ceb3
3 changed files with 5 additions and 2 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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",