fix the localnet.json generation

This commit is contained in:
Keith Whyte 2021-02-26 06:43:37 +01:00
parent a2dfc1672e
commit 8864a27db6
2 changed files with 8 additions and 32 deletions

View file

@ -1,34 +1,15 @@
[
<% if @bts1_ip_address -%>
<% @bts.each_with_index do |bts, index| %>
{
"type": "bts",
"ip": "<%= @bts1_ip_address %>",
"ip": "<%= bts["ip"] %>",
"geo": [
<%= @bts1_geo_lat %>,
<%= @bts1_geo_lon %>
<%= @bts_geo[2*index+1] %>,
<%= @bts_geo[2*index+2] %>
]
},
<% end -%>
<% if @bts2_ip_address -%>
{
"type": "bts",
"ip": "<%= @bts2_ip_address %>",
"geo": [
<%= @bts2_geo_lat %>,
<%= @bts2_geo_lon %>
]
},
<% end -%>
<% if @bts3_ip_address -%>
{
"type": "bts",
"ip": "<%= @bts3_ip_address %>",
"geo": [
<%= @bts3_geo_lat %>,
<%= @bts3_geo_lon %>
]
},
<% end -%>
<% if @link1_ip_address -%>
{
"type": "link",