From f08f82d5d81dd19c5631395dd0931ea2e67314ab Mon Sep 17 00:00:00 2001 From: "ak@geant.org" <ak@geant.org> Date: Thu, 30 Nov 2023 13:09:51 +0000 Subject: [PATCH] add radius template --- .../templates/routers/nokia/radius_auth.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 geant/gap_ansible/roles/base_config/templates/routers/nokia/radius_auth.j2 diff --git a/geant/gap_ansible/roles/base_config/templates/routers/nokia/radius_auth.j2 b/geant/gap_ansible/roles/base_config/templates/routers/nokia/radius_auth.j2 new file mode 100644 index 00000000..0806f7f2 --- /dev/null +++ b/geant/gap_ansible/roles/base_config/templates/routers/nokia/radius_auth.j2 @@ -0,0 +1,18 @@ + <system> + <security> + <aaa xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes"> + <remote-servers alu:operation="replace"> + <radius> + <authorization>true</authorization> + {% for server in system_radius_servers %} + <server> + <index>{{loop.index0 + 1 }}</index> + <address>{{ server.host }}</address> + <secret>{{ server.nokia_secret }}</secret> + </server> + {% endfor %} + </radius> + </remote-servers> + </aaa> + </security> + </system> -- GitLab