def security_module_epilog(): radius.config_server(vars.D1, ip_address=security_data.radius_host_ip, action="delete", cli_type="click") radius.config_global_server_params(vars.D1, skip_error_check=False, params={"key": {"value": security_data.global_diff_passkey, "no_form": True}, "timeout": {"value": security_data.global_timeout, "no_form": True}, "auth_type": {"value": security_data.global_auth_type, "no_form": True}, "retransmit": {"value": security_data.global_retransmit, "no_form": True}}, cli_type="click") tacacs.set_tacacs_server(vars.D1, 'delete', security_data.tacacs_host_ip)
def security_module_epilog(): tacacs.set_tacacs_server(vars.D1, 'delete', security_data.tacacs_host_ip) if not st.is_feature_supported("radius", vars.D1): return radius.config_server(vars.D1, ip_address=security_data.radius_host_ip, action="delete") radius.config_global_server_params(vars.D1, skip_error_check=False, params={"key": {"value": security_data.global_diff_passkey, "no_form": True}, "timeout": {"value": security_data.global_timeout, "no_form": True}, "auth_type": {"value": security_data.global_auth_type, "no_form": True}, "retransmit": {"value": security_data.global_retransmit, "no_form": True}})
def radius_config(): radius.config_server(vars.D1, ip_address=security_data.radius_host_ip, key=security_data.radius_host_passkey, priority=security_data.radius_host_priority, action="add", cli_type="click")
def security_module_epilog(): if st.is_feature_supported("radius", vars.D1): radius.config_server(vars.D1, ip_address=security_data.radius_host_ip, action="delete") tacacs.set_tacacs_server(vars.D1, 'delete', security_data.tacacs_host_ip)