diff --git a/tests/vrf/test_vrf.py b/tests/vrf/test_vrf.py index 5d220ebf062..ed0e330d3b9 100644 --- a/tests/vrf/test_vrf.py +++ b/tests/vrf/test_vrf.py @@ -534,7 +534,7 @@ def test_show_bgp_summary(self, duthosts, rand_one_dut_hostname, cfg_facts): for info in bgp_summary: for peer, attr in bgp_summary[info]['peers'].iteritems(): - prefix_count = attr['prefixReceivedCount'] + prefix_count = attr['pfxRcd'] # skip ipv6 peers under 'ipv4Unicast' and compare only ipv4 peers under 'ipv4Unicast', and ipv6 peers under 'ipv6Unicast' if info == "ipv4Unicast" and attr['idType'] == 'ipv6': continue @@ -886,7 +886,7 @@ def test_bgp_with_loopback(self, duthosts, rand_one_dut_hostname, cfg_facts): assert bgp_info['ipv4Unicast']['peers'][str(ptf_speaker_ip.ip)]['state'] == 'Established', \ "Bgp peer {} should be Established!".format(ptf_speaker_ip.ip) # Verify accepted prefixes of the dynamic neighbors are correct - assert bgp_info['ipv4Unicast']['peers'][str(ptf_speaker_ip.ip)]['prefixReceivedCount'] == 1 + assert bgp_info['ipv4Unicast']['peers'][str(ptf_speaker_ip.ip)]['pfxRcd'] == 1 class TestVrfWarmReboot():