mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
lib: checkRouterVersion to determine version
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
9ac2326ed0
commit
6bfe4b8bfc
@ -970,6 +970,12 @@ class Router(Node):
|
|||||||
|
|
||||||
Usage example: router.checkRouterVersion('>', '1.0')
|
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
|
rversion = self.version
|
||||||
if rversion is None:
|
if rversion is None:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user