mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 22:26:14 +00:00
tests: Fix conversion between iana_t and afi_t
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
1edcd64259
commit
52e6153210
@ -589,7 +589,7 @@ parse_test (struct peer *peer, struct test_segment *t, int type)
|
||||
safi_t safi;
|
||||
|
||||
/* Convert AFI, SAFI to internal values, check. */
|
||||
if (bgp_map_afi_safi_iana2int (t->afi, t->safi, &afi, &safi))
|
||||
if (bgp_map_afi_safi_iana2int (afi_int2iana(t->afi), t->safi, &afi, &safi))
|
||||
{
|
||||
if (t->afi_valid == VALID_AFI)
|
||||
failed++;
|
||||
|
Loading…
Reference in New Issue
Block a user