diff options
author | Koren Lev <korenlev@gmail.com> | 2017-08-10 15:35:12 +0300 |
---|---|---|
committer | Koren Lev <korenlev@gmail.com> | 2017-08-10 15:35:12 +0300 |
commit | 3b2bf902e9d4cceb2e6cf97a972a0f439a89a562 (patch) | |
tree | 303b1f43ad43a804d55fe2a5d3c11c8f6c4df0a8 /ui/imports | |
parent | aad40dd5763265a4efcbfce248f6e8d2788ae7b5 (diff) |
ui fixes for aci config
Change-Id: I2e873be74bf146201a7f425a5e09a22b40afbfa2
Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'ui/imports')
5 files changed, 16 insertions, 16 deletions
diff --git a/ui/imports/api/environments/configuration-groups/aci-configuration.js b/ui/imports/api/environments/configuration-groups/aci-configuration.js index 10b749e..dd2c089 100644 --- a/ui/imports/api/environments/configuration-groups/aci-configuration.js +++ b/ui/imports/api/environments/configuration-groups/aci-configuration.js @@ -16,7 +16,7 @@ export const AciSchema = new SimpleSchema({ host: { type: String, regEx: SimpleSchema.RegEx.IP, - defaultValue: '10.56.0.104', + defaultValue: '10.0.0.1', }, user: { type: String, @@ -24,6 +24,6 @@ export const AciSchema = new SimpleSchema({ }, pwd: { type: String, - defaultValue: 'C1sco12345' + defaultValue: '123456' }, }); diff --git a/ui/imports/api/environments/environments.js b/ui/imports/api/environments/environments.js index d616960..5e3b4b2 100644 --- a/ui/imports/api/environments/environments.js +++ b/ui/imports/api/environments/environments.js @@ -68,7 +68,7 @@ let simpleSchema = new SimpleSchema({ listen } = extractCalcEnvSupportedRelatedValues(that); let dbNode = getDbNode(that); - let aci = extractValue('aci', that, dbNode); + let aci_enabled = extractValue('aci_enabled', that, dbNode); if (enable_monitoring && isMonitoringSupportedRes) { if (! R.find(R.propEq('name', 'Monitoring'), confGroups)) { @@ -88,7 +88,7 @@ let simpleSchema = new SimpleSchema({ confGroups = R.reject(R.propEq('name', 'AMQP'), confGroups); } - if (aci) { + if (aci_enabled) { if (! R.find(R.propEq('name', 'ACI'), confGroups)) { confGroups = R.append(createNewConfGroup('ACI'), confGroups); } @@ -301,7 +301,7 @@ let simpleSchema = new SimpleSchema({ return newValue; }, }, - aci: { + aci_enabled: { type: Boolean, defaultValue: false, }, diff --git a/ui/imports/api/environments/methods.js b/ui/imports/api/environments/methods.js index 22a1e8b..6d5e73e 100644 --- a/ui/imports/api/environments/methods.js +++ b/ui/imports/api/environments/methods.js @@ -34,7 +34,7 @@ export const insert = new ValidatedMethod({ 'mechanism_drivers.$', 'listen', 'enable_monitoring', - 'aci', + 'aci_enabled', ]).validator({ clean: true, filter: false }), //validate: null, run({ @@ -45,7 +45,7 @@ export const insert = new ValidatedMethod({ mechanism_drivers, listen, enable_monitoring, - aci, + aci_enabled, }) { // todo: create clean object instance. let environment = Environments.schema.clean({ @@ -70,7 +70,7 @@ export const insert = new ValidatedMethod({ listen, enable_monitoring, auth, - aci, + aci_enabled, }); Environments.insert(environment); @@ -90,7 +90,7 @@ export const update = new ValidatedMethod({ 'mechanism_drivers.$', 'listen', 'enable_monitoring', - 'aci', + 'aci_enabled', ]).validator({ clean: true, filter: false }), run({ _id, @@ -101,7 +101,7 @@ export const update = new ValidatedMethod({ mechanism_drivers, listen, enable_monitoring, - aci, + aci_enabled, }) { let env = Environments.findOne({ _id: _id }); @@ -120,7 +120,7 @@ export const update = new ValidatedMethod({ mechanism_drivers, listen, enable_monitoring, - aci, + aci_enabled, }, }); } diff --git a/ui/imports/ui/components/env-main-info/env-main-info.html b/ui/imports/ui/components/env-main-info/env-main-info.html index c3bda99..b8b7d26 100644 --- a/ui/imports/ui/components/env-main-info/env-main-info.html +++ b/ui/imports/ui/components/env-main-info/env-main-info.html @@ -151,8 +151,8 @@ <div class="col-sm-3"> {{> InputModel(createInputArgs - value=model.aci - key='aci' + value=model.aci_enabled + key='aci_enabled' type="checkbox" disabled=disabled) }} diff --git a/ui/imports/ui/components/environment-wizard/environment-wizard.js b/ui/imports/ui/components/environment-wizard/environment-wizard.js index ac3db63..ddc97cf 100644 --- a/ui/imports/ui/components/environment-wizard/environment-wizard.js +++ b/ui/imports/ui/components/environment-wizard/environment-wizard.js @@ -156,7 +156,7 @@ Template.EnvironmentWizard.helpers({ let amqpTabDisabled = !(environmentModel.listen && isListeningSupportedRes); let monitoringTabDisabled = !(environmentModel.enable_monitoring && isMonSupportedRes); - let isAciTabDisabled = !(environmentModel.aci); + let isAciTabDisabled = !(environmentModel.aci_enabled); return [{ label: 'Main Info', @@ -427,7 +427,7 @@ function doSubmit(instance) { mechanism_drivers: environment.mechanism_drivers, listen: environment.listen, enable_monitoring: environment.enable_monitoring, - aci: environment.aci, + aci_enabled: environment.aci_enabled, }, processActionResult.bind(null, instance)); break; @@ -441,7 +441,7 @@ function doSubmit(instance) { mechanism_drivers: environment.mechanism_drivers, listen: environment.listen, enable_monitoring: environment.enable_monitoring, - aci: environment.aci, + aci_enabled: environment.aci_enabled, }, processActionResult.bind(null, instance)); break; |