puppet/modules/rhizo_base/templates/bts_defs.json.erb

13 lines
343 B
Text

[
<% @bts.each_with_index do |bts, index| -%>
<% bts["trx"].each_with_index do |trx, trx_i| -%>
{
"index": <%= index %>,
"trx": <%= trx_i %>,
"name": "<%= bts["name"] %>",
"chan": <%= trx["chan"]%>,
"bsic": <%= bts["bsic"]%>
}<%= ',' if trx_i < (bts["trx"].size - 1) %>
<% end -%><%= ',' if index < (@bts.size - 1) %>
<% end -%>
]