diff --git a/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/security.j2 b/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/security.j2 index cd60105a179c94bc4eb8c5510166534543d5d21c..c240b1c4cbf25ac411b1aa6fa755babe02f8e828 100644 --- a/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/security.j2 +++ b/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/security.j2 @@ -7,6 +7,7 @@ </aaa> {% include "system/security/user_params.j2" %} {% include "system/security/dist_cpu_protection.j2" %} + {% include "system/security/source_addresses.j2" %} {# {% include "system/security/ssh.j2" %} #} </security> </system> diff --git a/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/source_addresses.j2 b/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/source_addresses.j2 new file mode 100644 index 0000000000000000000000000000000000000000..cec3327d347df48bea28de4d8b8c53a072478433 --- /dev/null +++ b/geant/gap_ansible/roles/base_config/templates/routers/nokia/system/security/source_addresses.j2 @@ -0,0 +1,10 @@ + + <source-address> + {% for application in nokia_applications %} + <ipv4 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" alu:operation="replace"> + <application>{{ application.name }}</application> + <interface-name>{{ application.interface_name }}</interface-name> + </ipv4> + {% endfor %} + </source-address> +