]> git.proxmox.com Git - mirror_frr.git/commitdiff
ltemplate.py: remove dependency on hard-coded router name r2
authorG. Paul Ziemba <paulz@labn.net>
Mon, 26 Feb 2018 15:52:22 +0000 (07:52 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:13 +0000 (20:22 -0500)
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
tests/topotests/lib/ltemplate.py

index 7ca8828dfefe93bb476c2c0546ae5ad9a43b84e1..62e11e810e9d3dd53bd80ee575fa7a76e2815fcf 100644 (file)
@@ -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: