From: Philippe Guibert Date: Fri, 7 Oct 2016 16:26:33 +0000 (+0200) Subject: tests: update ecommunity_ecom2str call api X-Git-Tag: frr-3.0-branchpoint~29^2~40 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4fadf88120b3080938b2250c64c3265c3146fb0e;p=matthieu%2Ffrr.git tests: update ecommunity_ecom2str call api Test adaptation using updated API, introducing new ecommunity type. Signed-off-by: Philippe Guibert --- diff --git a/tests/bgpd/test_ecommunity.c b/tests/bgpd/test_ecommunity.c index 9166af6142..9174191cb3 100644 --- a/tests/bgpd/test_ecommunity.c +++ b/tests/bgpd/test_ecommunity.c @@ -97,10 +97,10 @@ validate (struct ecommunity *ecom, const struct test_spec *sp) char *str1, *str2; printf ("got:\n %s\n", ecommunity_str (ecom)); - str1 = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_COMMUNITY_LIST); + str1 = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_COMMUNITY_LIST, 0); etmp = ecommunity_str2com (str1, 0, 1); if (etmp) - str2 = ecommunity_ecom2str (etmp, ECOMMUNITY_FORMAT_COMMUNITY_LIST); + str2 = ecommunity_ecom2str (etmp, ECOMMUNITY_FORMAT_COMMUNITY_LIST, 0); else str2 = NULL;