summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/onos/templates/cluster.json
blob: 5982c4347c41f93b8a8a33b76120dc078f016723 (plain)
1
2
3
4
5
6
7
8
9
10
{ "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 %}
]}