aaa new-model
radius server RADIUS-1
address ipv4 {{ server }} auth-port {{ auth_port }} acct-port {{ acct_port }}
key {{ key }}
exit
{% if keep_local %}
aaa authentication login default group radius local
aaa authorization exec default group radius local if-authenticated
{% else %}
aaa authentication login default group radius
aaa authorization exec default group radius if-authenticated
{% endif %}
