Skip to content
Snippets Groups Projects
Commit 88b607bc authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

SDP mesh - if pe_router_list is empty

parent 4d62647b
No related branches found
No related tags found
1 merge request!177PE iBGP/SDP update and backports from v1.0.x
<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"> <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">
{% if pe_router_list|length != 0 %}
{% for pe_fqdn, pe_addr in pe_router_list.items() %} {% for pe_fqdn, pe_addr in pe_router_list.items() %}
{% set sdp_id = pe_addr.lo4 | replace(sdp_prefix_regex, '') | replace('.', '') + sdp_type.id %} {% set sdp_id = pe_addr.lo4 | replace(sdp_prefix_regex, '') | replace('.', '') + sdp_type.id %}
<sdp> <sdp>
...@@ -16,5 +17,6 @@ ...@@ -16,5 +17,6 @@
</far-end> </far-end>
</sdp> </sdp>
{% endfor %} {% endfor %}
{% endif %}
</service> </service>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment