diff --git a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 index 9f7be1fb1b3150caf78d92e3f37d753cb4e0ace6..62e377e502b488bfe2baac8a25a424ba5a04f34f 100644 --- a/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 +++ b/geant/gap_ansible/roles/bc_templates/routers/nokia/router/vprn.j2 @@ -26,7 +26,19 @@ </auto-bind-tunnel> </mpls> </bgp-ipvpn> + {% if vprn.aggregates is defined %} + <aggregates> + {% for ag in vprn.aggregates %} + <aggregate> + <ip-prefix>{{ ag.ip_prefix }}</ip-prefix> + <community>{{ ag.community }}</community> + <discard-component-communities>{{ ag.dcc }}</discard-component-communities> + </aggregate> + {% endfor %} + </aggregates> + {% endif %} <bgp> + <description>{{ vprn.name }}</description> {% with bgp_base_obj=vprn.bgp, bgp_context='vprn' %} {% include 'router/bgp_base.j2' %} {% endwith %} diff --git a/geant/gap_ansible/roles/bgp_config/templates/bgp_neighbor.j2 b/geant/gap_ansible/roles/bgp_config/templates/bgp_neighbor.j2 index f5f2e069f920ebf38e3a6534693e9889f35c3562..71b3d4d9705fb4f36f5ad4784d97a56d85f21264 100644 --- a/geant/gap_ansible/roles/bgp_config/templates/bgp_neighbor.j2 +++ b/geant/gap_ansible/roles/bgp_config/templates/bgp_neighbor.j2 @@ -5,11 +5,12 @@ {% if neighbor.bfd_enabled %} <bfd-liveness>true</bfd-liveness> {% endif %} - {% if neighbor.ip_type == 'ipv4' %} + <local-address>{{ ipv4_local_addr }}</local-address> <description>-- Peering with {{ partner_name | upper }} --</description> <group>{{ bgp.group.ipv4 }}</group> {% elif neighbor.ip_type == 'ipv6' %} + <local-address>{{ ipv6_local_addr }}</local-address> <description>-- IPv6 Peering with {{ partner_name | upper }} --</description> <group>{{ bgp.group.ipv6 }}</group> {% endif %} diff --git a/geant/gap_ansible/roles/bgp_config/vars/main.yml b/geant/gap_ansible/roles/bgp_config/vars/main.yml index 5bdb6c9dd621ca56bca93a096c64bb52e05fa670..3f988693f00cf2f320340b7f35bd516e3b2188d9 100644 --- a/geant/gap_ansible/roles/bgp_config/vars/main.yml +++ b/geant/gap_ansible/roles/bgp_config/vars/main.yml @@ -3,3 +3,5 @@ is_standalone_run: false bgp_obj: "{{ ap.sbp.bgp_session_list }}" +ipv4_local_addr: "{{ ap.sbp.ipv4_address }}" +ipv6_local_addr: "{{ ap.sbp.ipv6_address }}" diff --git a/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2 b/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2 index 07b1b5d41453e038eb6a2238db91024378f399de..90c4faef397add2426efb8172eb31344ad075796 100644 --- a/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2 +++ b/geant/gap_ansible/roles/sbp/templates/deploy_sbp.j2 @@ -19,6 +19,14 @@ <description>SRV_L3VPN CUSTOMER {{ partner_name }} {{ '#'+ap.custom_service_name if ap.custom_service_name is string }} ${{ ap.sbp.gs_id }} | ASN{{ partner.asn }} | </description> {% endif %} <ip-mtu>{{ sbp_params.ip_mtu }}</ip-mtu> + <cflowd-parameters> + <sampling> + <sampling-type>unicast</sampling-type> + <type>interface</type> + <direction>ingress-only</direction> + <sample-profile>1</sample-profile> + </sampling> + </cflowd-parameters> <sap> {% if ap.sbp.is_tagged %} <sap-id>{{ lag_name }}:{{ ap.sbp.vlan_id }}</sap-id>