diff --git a/geant/gap_ansible/roles/ibgp_update/templates/nokia/add_pe_to_p.j2 b/geant/gap_ansible/roles/ibgp_update/templates/nokia/add_pe_to_p.j2
index 11e210f4e95f9d312e9123a40874c448f221437b..5ed84536818a9a57f14dde3c3807b9b616d82c0e 100644
--- a/geant/gap_ansible/roles/ibgp_update/templates/nokia/add_pe_to_p.j2
+++ b/geant/gap_ansible/roles/ibgp_update/templates/nokia/add_pe_to_p.j2
@@ -3,7 +3,7 @@
     <router>
       <router-name>Base</router-name>
         <bgp>
-          {% for pe_fqdn, pe_ipadd in pe_router_list.all.hosts.items() %}
+          {% for pe_fqdn, pe_ipadd in pe_router_list.items() %}
             <neighbor 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" alu:operation="replace">
               <ip-address>{{ pe_ipadd.lo4 }}</ip-address>
               <description>{{ pe_fqdn }}</description>