diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/sdp_mesh.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/sdp_mesh.j2 new file mode 100644 index 0000000000000000000000000000000000000000..4542edbcb10536f7a9dbe870d33fcf54062cabba --- /dev/null +++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/sdp_mesh.j2 @@ -0,0 +1,20 @@ + <service 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"> + {% for pe_fqdn, pe_addr in pe_router_list.items() %} + {% set sdp_id = pe_addr.lo4 | replace(sdp_prefix_regex, '') | replace('.', '') + sdp_type.id %} + <sdp> + <sdp-id>{{ sdp_id }}</sdp-id> + <admin-state>enable</admin-state> + <description>SDP_{{ sdp_id }}</description> + <delivery-type>mpls</delivery-type> + <path-mtu>{{ sdp_type.path_mtu }}</path-mtu> + {% if sdp_type.signaling is defined %} + <signaling>{{ sdp_type.signaling}}</signaling> + {% endif %} + <sr-isis>{{ sdp_type.sr_isis | lower }}</sr-isis> + <far-end> + <ip-address>{{ pe_addr.lo4 }}</ip-address> + </far-end> + </sdp> + {% endfor %} + </service> +