]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: update ecommunity_ecom2str call api
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 7 Oct 2016 16:26:33 +0000 (18:26 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 14 Feb 2017 12:58:58 +0000 (13:58 +0100)
Test adaptation using updated API, introducing new ecommunity type.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/bgpd/test_ecommunity.c

index 9166af61421fbceb07ffe2fd80d76aa683c11c85..9174191cb3c3c3ac3e1e68ffa2b7cccae9d115d6 100644 (file)
@@ -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;