summaryrefslogtreecommitdiffstats
path: root/framework/scripts/installer/onos_cluster/templates
diff options
context:
space:
mode:
authorCNlukai <lukai1@huawei.com>2016-01-11 17:39:55 +0800
committerCNlukai <lukai1@huawei.com>2016-01-11 17:41:56 +0800
commita94e0159d98d511be4b4da9afe077e1188cc6ce6 (patch)
tree46015bb12d272deef477fb90ebbc8bef67f960f8 /framework/scripts/installer/onos_cluster/templates
parent5d28b35794d9bdd8def6dfdf0224420daaa05f11 (diff)
ONOSFW-157
Add script of installer integration onos Change-Id: I0ac05b6a7ede8654af2c2573ea7ecb3e5e7a9473 Signed-off-by: CNlukai <lukai1@huawei.com>
Diffstat (limited to 'framework/scripts/installer/onos_cluster/templates')
-rwxr-xr-xframework/scripts/installer/onos_cluster/templates/cluster.json10
-rwxr-xr-xframework/scripts/installer/onos_cluster/templates/ml2_conf.sh7
-rwxr-xr-xframework/scripts/installer/onos_cluster/templates/tablets.json63
3 files changed, 0 insertions, 80 deletions
diff --git a/framework/scripts/installer/onos_cluster/templates/cluster.json b/framework/scripts/installer/onos_cluster/templates/cluster.json
deleted file mode 100755
index 5982c434..00000000
--- a/framework/scripts/installer/onos_cluster/templates/cluster.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{ "ipPrefix": "{{ ip_settings[groups['onos'][0]]['mgmt']['cidr'] }}",
- "nodes":[
-{% for host in groups['onos'] %}
- {% if loop.last %}
- { "id": "{{ ip_settings[host]['mgmt']['ip'] }}", "ip": "{{ ip_settings[host]['mgmt']['ip'] }}", "tcpPort": 9876 }
- {% else %}
- { "id": "{{ ip_settings[host]['mgmt']['ip'] }}", "ip": "{{ ip_settings[host]['mgmt']['ip'] }}", "tcpPort": 9876 },
- {% endif %}
-{% endfor %}
-]}
diff --git a/framework/scripts/installer/onos_cluster/templates/ml2_conf.sh b/framework/scripts/installer/onos_cluster/templates/ml2_conf.sh
deleted file mode 100755
index a9e61acb..00000000
--- a/framework/scripts/installer/onos_cluster/templates/ml2_conf.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-cat <<EOT>> /etc/neutron/plugins/ml2/ml2_conf.ini
-[onos]
-password = admin
-username = admin
-url_path = http://{{ ip_settings[groups['onos'][0]]['mgmt']['ip'] }}:8181/onos/vtn
-EOT
-
diff --git a/framework/scripts/installer/onos_cluster/templates/tablets.json b/framework/scripts/installer/onos_cluster/templates/tablets.json
deleted file mode 100755
index f71be71f..00000000
--- a/framework/scripts/installer/onos_cluster/templates/tablets.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "nodes": [
-{% for host in groups['onos'] %}
- {% if loop.last %}
- {
- "ip": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "id": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "tcpPort": 9876
- }
- {% else %}
- {
- "ip": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "id": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "tcpPort": 9876
- },
- {% endif %}
-{% endfor %}
- ],
- "partitions": {
- {% set key = 1 %}
- {% for host in groups['onos'] %}
- {% if loop.last %}
- "p{{ key }}":[
- {% for host in groups['onos'] %}
- {% if loop.last %}
- {
- "ip": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "id": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "tcpPort": 9876
- }
- {% else %}
- {
- "ip": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "id": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "tcpPort": 9876
- },
- {% endif %}
- {% endfor %}
- ]
- {% set key = key + 1 %}
- {% else %}
- "p{{ key }}":[
- {% for host in groups['onos'] %}
- {% if loop.last %}
- {
- "ip": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "id": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "tcpPort": 9876
- }
- {% else %}
- {
- "ip": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "id": "{{ ip_settings[host]['mgmt']['ip'] }}",
- "tcpPort": 9876
- },
- {% endif %}
- {% endfor %}
- ],
- {% set key = key + 1 %}
- {% endif %}
- {% endfor %}
-}
-}