From: Paul Vinciguerra Date: Tue, 28 Apr 2020 15:23:31 +0000 (-0400) Subject: tests: fix update_path_flags for multicast in vpp_ip_route X-Git-Tag: v20.09-rc0~111 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=6230b9d123fb346ba71887d872c86b4934240386;p=vpp.git tests: fix update_path_flags for multicast in vpp_ip_route add support for the case where the first path doesn't match the searched interface. Type: test Change-Id: I29bd724cfe275ec5489d32c37ef2af12d6d1102a Signed-off-by: Paul Vinciguerra --- diff --git a/test/vpp_ip_route.py b/test/vpp_ip_route.py index 88388221363..cd70b38101a 100644 --- a/test/vpp_ip_route.py +++ b/test/vpp_ip_route.py @@ -678,8 +678,8 @@ class VppIpMRoute(VppObject): for p in range(len(self.paths)): if self.paths[p].nh_itf == itf: self.paths[p].nh_i_flags = flags - self.encoded_paths[p] = self.paths[p].encode() - break + self.encoded_paths[p] = self.paths[p].encode() + break self._test.vapi.ip_mroute_add_del( route=self.encode(