bgp_multiview_topo1: Fix case of tests hanging if convergence is not successful.

- Part of a command was missing which caused a hang in cases when BGP didn't converge

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
Martin Winter 2017-04-06 00:34:43 -07:00 committed by Donald Sharp
parent 3eaafbd95d
commit 5b7a4ad33a

View File

@ -237,7 +237,7 @@ def test_bgp_converge():
break
else:
# Bail out with error if a router fails to converge
bgpStatus = net['r%s' % i].cmd('show ip bgp view %s summary"')
bgpStatus = net['r%s' % i].cmd('vtysh -c "show ip bgp view %s summary"' % view)
assert False, "BGP did not converge:\n%s" % bgpStatus
# Wait for an extra 30s to announce all routes