From: G. Paul Ziemba Date: Mon, 26 Feb 2018 15:52:22 +0000 (-0800) Subject: ltemplate.py: remove dependency on hard-coded router name r2 X-Git-Tag: frr-7.1-dev~151^2~99 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=09da03d50db3ae344a14b59984188f2fff5fe4f1;p=matthieu%2Ffrr.git ltemplate.py: remove dependency on hard-coded router name r2 Signed-off-by: G. Paul Ziemba --- diff --git a/tests/topotests/lib/ltemplate.py b/tests/topotests/lib/ltemplate.py index 7ca8828dfe..62e11e810e 100644 --- a/tests/topotests/lib/ltemplate.py +++ b/tests/topotests/lib/ltemplate.py @@ -251,7 +251,7 @@ def ltemplateVersionCheck(vstr, rname='r1', compstr='<',cli=False, kernel='4.9', if _lt.iproute2Ver == None: #collect/log info on iproute2 cc = ltemplateRtrCmd() - found = cc.doCmd(tgen, 'r2', 'apt-cache policy iproute2', 'Installed: ([\d\.]*)') + found = cc.doCmd(tgen, rname, 'apt-cache policy iproute2', 'Installed: ([\d\.]*)') if found != None: iproute2Ver = found.group(1) else: