Skip to content

Commit

Permalink
Add the PTF neighbor into the DEVICE_NEIGHBOR_METADATA table (#9845)
Browse files Browse the repository at this point in the history
This table may be used for certain purposes such as what BGP
rules/policies should get applied for that neighbor. Because of this,
add exabgp/PTF into the neighbor table to make sure the correct policies
get applied.

Signed-off-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
saiarcot895 authored Sep 6, 2023
1 parent a0e0f22 commit 02ae60c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ansible/roles/sonic/templates/configdb.j2
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"holdtime": "10",
"keepalive": "3",
"local_addr": "{{ host['bp_interface']['ipv4'].split('/')[0] }}",
"name": "exabgp_v4",
"name": "exabgp",
"nhopself": "0",
"rrclient": "0"
},
Expand All @@ -87,7 +87,7 @@
"holdtime": "10",
"keepalive": "3",
"local_addr": "{{ host['bp_interface']['ipv6'].split('/')[0] | lower }}",
"name": "exabgp_v6",
"name": "exabgp",
"nhopself": "0",
"rrclient": "0"
}
Expand All @@ -100,6 +100,11 @@
"hwsku": "SONiC-VM",
"mgmt_addr": "{{ hostvars[dut_name]['ansible_host'] }}",
"type": "TorRouter"
},
"exabgp": {
"hwsku": "exabgp",
"mgmt_addr": "{{ ptf_ip }}",
"type": "SpineRouter"
}
{% endfor %}
},
Expand Down

0 comments on commit 02ae60c

Please sign in to comment.