93 lines
No EOL
1.7 KiB
Text
93 lines
No EOL
1.7 KiB
Text
[
|
|
<% @bts.each_with_index do |bts, index| -%>
|
|
<% if bts["model"] != "2050S" %>
|
|
{
|
|
"type": "bts",
|
|
"ip": "<%= bts["ip"] %>",
|
|
"geo": [
|
|
<%= @bts_geo[2*index+1] %>,
|
|
<%= @bts_geo[2*index+2] %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% end -%>
|
|
|
|
<% if @link1_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link1_ip_address %>",
|
|
"geo": [
|
|
<%= @link1_geo_lat %>,
|
|
<%= @link1_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% if @link2_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link2_ip_address %>",
|
|
"geo": [
|
|
<%= @link2_geo_lat %>,
|
|
<%= @link2_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% if @link3_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link3_ip_address %>",
|
|
"geo": [
|
|
<%= @link3_geo_lat %>,
|
|
<%= @link3_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% if @link4_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link4_ip_address %>",
|
|
"geo": [
|
|
<%= @link4_geo_lat %>,
|
|
<%= @link4_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% if @link5_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link5_ip_address %>",
|
|
"geo": [
|
|
<%= @link5_geo_lat %>,
|
|
<%= @link5_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% if @link6_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link6_ip_address %>",
|
|
"geo": [
|
|
<%= @link6_geo_lat %>,
|
|
<%= @link6_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
<% if @link7_ip_address -%>
|
|
{
|
|
"type": "link",
|
|
"ip": "<%= @link7_ip_address %>",
|
|
"geo": [
|
|
<%= @link7_geo_lat %>,
|
|
<%= @link7_geo_lon %>
|
|
]
|
|
},
|
|
<% end -%>
|
|
{
|
|
"type": "bsc",
|
|
"ip": "<%= @vpn_ip_address %>",
|
|
"geo": [
|
|
<%= @bsc_geo_lat %>,
|
|
<%= @bsc_geo_lon %>
|
|
]
|
|
}
|
|
] |