diff options
Diffstat (limited to 'ui/imports/api')
-rw-r--r-- | ui/imports/api/environments/configuration-groups/aci-configuration.js | 4 | ||||
-rw-r--r-- | ui/imports/api/environments/environments.js | 6 | ||||
-rw-r--r-- | ui/imports/api/environments/methods.js | 12 |
3 files changed, 11 insertions, 11 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, }, }); } |