wido commented on code in PR #14841:
URL: https://github.com/apache/cloudstack/pull/14841#discussion_r4691110099
##########
systemvm/debian/root/health_checks/router_version_check.py:
##########
@@ -34,7 +39,30 @@ def getFirstLine(file=None):
return None
+def frr_version():
+ """Returns the installed FRR package version, or None when it cannot
tell."""
+ try:
+ out = subprocess.check_output(["dpkg-query", "-W", "-f=${Version}",
"frr"], stderr=subprocess.DEVNULL)
+ except (OSError, subprocess.CalledProcessError):
Review Comment:
Why? We know which version of FRR is there. We ship the template. We can
make assumptions in the code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]