web app, initial working emane option configuration

This commit is contained in:
Blake J. Harnden 2018-05-17 20:38:32 -07:00
parent ddfa0ddfa4
commit a55cd6a524
6 changed files with 262 additions and 3 deletions

View file

@ -66,7 +66,15 @@ class CoreRest {
}
async getEmaneModels() {
return await $.getJSON(`/sessions/${this.currentSession}/emane`);
return await $.getJSON(`/sessions/${this.currentSession}/emane/models`);
}
async getEmaneOptions(nodeId) {
return await $.getJSON(`/sessions/${this.currentSession}/emane/options`, {node: nodeId});
}
async setConfig(config) {
return await putJson(`/sessions/${this.currentSession}/config`, config);
}
async createNode(node) {