MitchDrage commented on code in PR #14841:
URL: https://github.com/apache/cloudstack/pull/14841#discussion_r4693405815


##########
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:
   I added it so the tenant BGP work in the upcoming PRs could tell which 
routers have frr-reload.py and bfdd before enabling it. You're right that the 
template version gives us that, so I'll remove the capability line and its 
tests.
   
   You might have already noticed the file check in CsBgpPeers.py. You didn't 
ask about it but for the record, that's there because routers still on an older 
template run this PR's version of it before they are rebuilt, and those 
templates have no frr-reload.py. It restarts FRR when the file is missing, 
which I tested on a 4.22.0 template on KVM.



-- 
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]

Reply via email to