]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/topotests/lib/ltemplate.py
ltemplate.py: remove dependency on hard-coded router name r2
[mirror_frr.git] / 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: