110 lines
No EOL
2 KiB
Text
110 lines
No EOL
2 KiB
Text
[
|
|
<% if @bts1_ip_address -%>
|
|
{
|
|
"type": "bts",
|
|
"ip": "<%= @bts1_ip_address %>",
|
|
"geo": [
|
|
<%= @bts1_geo_lat %>,
|
|
<%= @bts1_geo_lon %>
|
|
]
|
|
},
|
|
<% 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",
|
|
"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 %>
|
|
]
|
|
}
|
|
] |