summaryrefslogtreecommitdiffstats
path: root/ui/imports/api/supported_environments
diff options
context:
space:
mode:
authorYaron Yogev <yaronyogev@gmail.com>2017-10-03 10:14:14 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-03 10:14:14 +0000
commit9e9c95952ca2a7efeafd316fff107b95fdd0f0b5 (patch)
tree6ad620ebc1f9adf6bf9fc671d88ea0adf8e7fe07 /ui/imports/api/supported_environments
parent929a33a1cf8854e06d13e5ef352a48759c9ba2d5 (diff)
parent1fff14f0a5e25adaa851537c71c7bd8381c1bbb1 (diff)
Merge "ui move to docker" into stable/euphrates
Diffstat (limited to 'ui/imports/api/supported_environments')
-rw-r--r--ui/imports/api/supported_environments/methods.js8
-rw-r--r--ui/imports/api/supported_environments/server/publications.js17
-rw-r--r--ui/imports/api/supported_environments/supported_environments.js63
3 files changed, 0 insertions, 88 deletions
diff --git a/ui/imports/api/supported_environments/methods.js b/ui/imports/api/supported_environments/methods.js
deleted file mode 100644
index 1eda375..0000000
--- a/ui/imports/api/supported_environments/methods.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/ui/imports/api/supported_environments/server/publications.js b/ui/imports/api/supported_environments/server/publications.js
deleted file mode 100644
index 8fef880..0000000
--- a/ui/imports/api/supported_environments/server/publications.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-import { Meteor } from 'meteor/meteor';
-import { SupportedEnvironments,
- subsNameSupportedEnvs
-} from '../supported_environments.js';
-
-Meteor.publish(subsNameSupportedEnvs, function () {
- console.log(`server subscribtion to: ${subsNameSupportedEnvs}`);
- return SupportedEnvironments.find({});
-});
diff --git a/ui/imports/api/supported_environments/supported_environments.js b/ui/imports/api/supported_environments/supported_environments.js
deleted file mode 100644
index 6637b74..0000000
--- a/ui/imports/api/supported_environments/supported_environments.js
+++ /dev/null
@@ -1,63 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others /
-// /
-// All rights reserved. This program and the accompanying materials /
-// are made available under the terms of the Apache License, Version 2.0 /
-// which accompanies this distribution, and is available at /
-// http://www.apache.org/licenses/LICENSE-2.0 /
-/////////////////////////////////////////////////////////////////////////////////////////
-import { Mongo } from 'meteor/mongo';
-import * as R from 'ramda';
-
-export const SupportedEnvironments = new Mongo.Collection(
- 'supported_environments', { idGeneration: 'MONGO' });
-
-export const subsNameSupportedEnvs = 'supported-environments';
-
-export function isMonitoringSupported(
- distribution,
- distribution_version,
- type_drivers,
- mechanism_drivers
-) {
- console.log('isMonitoringSupported');
- console.log(`distribution: ${R.toString(distribution)}`);
- console.log(`distribution_version: ${R.toString(distribution_version)}`);
- console.log(`type_drivers: ${R.toString(type_drivers)}`);
- console.log(`mechanism_drivers: ${R.toString(mechanism_drivers)}`);
-
- let result = SupportedEnvironments.find({
- 'environment.distribution': distribution,
- 'environment.distribution_version': { $in: [ distribution_version ] },
- 'environment.type_drivers': type_drivers,
- 'environment.mechanism_drivers': { $in: mechanism_drivers },
- 'features.monitoring': true
- }).count() > 0;
-
- console.log(`result: ${R.toString(result)}`);
- return result;
-}
-
-export function isListeningSupported(
- distribution,
- distribution_version,
- type_drivers,
- mechanism_drivers
-) {
- console.log('isListeningSupported');
- console.log(`distribution: ${R.toString(distribution)}`);
- console.log(`distribution: ${R.toString(distribution)}`);
- console.log(`type_drivers: ${R.toString(type_drivers)}`);
- console.log(`mechanism_drivers: ${R.toString(mechanism_drivers)}`);
-
- let result = SupportedEnvironments.find({
- 'environment.distribution': distribution,
- 'environment.distribution_version': { $in: [ distribution_version ] },
- 'environment.type_drivers': type_drivers,
- 'environment.mechanism_drivers': { $in: mechanism_drivers },
- 'features.listening': true
- }).count() > 0;
-
- console.log(`result: ${R.toString(result)}`);
- return result;
-}