tests: fix python3 backported iproute2 vrf check

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
This commit is contained in:
David Schweizer 2021-04-05 09:25:55 +02:00
parent b04af734aa
commit 6a93e3df4e
No known key found for this signature in database
GPG Key ID: A07D97BEEE79EF7F

View File

@ -544,8 +544,7 @@ def iproute2_is_vrf_capable():
["ip", "route", "show", "vrf"], ["ip", "route", "show", "vrf"],
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=subprocess.PIPE, stdin=subprocess.PIPE
encoding="utf-8"
) )
iproute2_err = subp.communicate()[1].splitlines()[0].split()[0] iproute2_err = subp.communicate()[1].splitlines()[0].split()[0]