From f750068d5ea04f0e1d8f6912780549afb5e7d3f5 Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342-AKURBATOV.local> Date: Thu, 12 Sep 2024 11:45:02 +0100 Subject: [PATCH] SDP mesh template --- .../bc_templates/routers/nokia/sdp_mesh.j2 | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 geant/gap_ansible/roles/bc_templates/routers/nokia/sdp_mesh.j2 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 00000000..4542edbc --- /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> + -- GitLab