Skip to content
Permalink
Browse files

lib: checkRouterVersion to determine version

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
  • Loading branch information...
mwinter-osr committed Sep 6, 2018
1 parent 443af23 commit 3b4332dc97eb40fdab604c980eb476e023828646
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/topotest.py
@@ -965,6 +965,12 @@ def checkRouterVersion(self, cmpop, version):
Usage example: router.checkRouterVersion('>', '1.0')
"""

# Make sure we have version information first
if self.version == None:
self.version = self.cmd(os.path.join(self.daemondir, 'bgpd')+' -v').split()[2]
logger.info('{}: running version: {}'.format(self.name,self.version))

rversion = self.version
if rversion is None:
return False

0 comments on commit 3b4332d

Please sign in to comment.
You can’t perform that action at this time.