{code}
/radius remove [/radius find comment=crb_hs_rad_client]
/radius add address={{billing_ip}} secret={{radius_secret}} comment=crb_hs_rad_client service=hotspot timeout=1s500ms
@@@ for hs in hotspot
/ip hotspot profile
remove [find name=crb_hs_prof_{{hs.ip}}]
add hotspot-address={{hs.ip}} name=crb_hs_prof_{{hs.ip}} login-by=http-chap use-radius=yes
/ip hotspot
remove [find name=crb_hs_{{hs.int}}]
add disabled=no interface={{hs.int}} name=crb_hs_{{hs.int}} profile=crb_hs_prof_{{hs.ip}}
@@@ endfor
/ip hotspot walled-garden ip
remove [find comment=crb_cabinet_ip]
add action=accept disabled=no dst-address={{cabinet_ip}} comment=crb_cabinet_ip
{code}
/radius remove [/radius find comment=crb_hs_rad_client]
/radius add address={{billing_ip}} secret={{radius_secret}} comment=crb_hs_rad_client service=hotspot timeout=1s500ms
@@@ for hs in hotspot
/ip hotspot profile
remove [find name=crb_hs_prof_{{hs.ip}}]
add hotspot-address={{hs.ip}} name=crb_hs_prof_{{hs.ip}} login-by=http-chap use-radius=yes
/ip hotspot
remove [find name=crb_hs_{{hs.int}}]
add disabled=no interface={{hs.int}} name=crb_hs_{{hs.int}} profile=crb_hs_prof_{{hs.ip}}
@@@ endfor
/ip hotspot walled-garden ip
remove [find comment=crb_cabinet_ip]
add action=accept disabled=no dst-address={{cabinet_ip}} comment=crb_cabinet_ip
{code}