fix the localnet.json generation
This commit is contained in:
parent
a2dfc1672e
commit
8864a27db6
2 changed files with 8 additions and 32 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue