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

Merge branch 'feature/nat-666-p-to-pe' into 'develop'

promote-p-to-pe role

See merge request !162
parents 59c2fe74 103cb902
No related branches found
No related tags found
1 merge request!162promote-p-to-pe role
Pipeline #88659 passed
<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>
<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">
<md-auto-id>
<service-id-range alu:operation="replace">
<start>{{ pe_service.md_auto_id.service_id_range.start | default('10001') }}</start>
<end>{{ pe_service.md_auto_id.service_id_range.end | default('19999') }}</end>
</service-id-range>
</md-auto-id>
{% include 'router/vprn.j2' %}
</service>
{% include 'ip_prefix_list.j2' %}
---
# vars file for promote_p_to_pe
dry_run: true
verbs:
- set_isis_overload # Drain traffic to/from the router by setting ISIS overload
- remove_isis_overload # Remove overload bit from ISIS config
- deploy_pe_base_config # Deploy PE-specific base config on top of existing P-only config
- delete_default_routes # Delete default static routes configured as part P base-config
- deploy_routing_instances # Deploy standard PE VPRNs
- update_sdp_mesh # Upadate SDP mesh on other Nokia PE routers with this promoted router
- check_base_ris # Check BGP summary for base VPRNs
lo_ipv4_address: "{{ subscription.router.router_lo_ipv4_address }}"
lo_ipv6_address: "{{ subscription.router.router_lo_ipv6_address }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment