summaryrefslogtreecommitdiff
path: root/azurelinuxagent/pa/rdma/centos.py
diff options
context:
space:
mode:
authorƁukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com>2017-04-18 12:27:57 +0200
committerusd-importer <ubuntu-server@lists.ubuntu.com>2017-04-24 08:23:24 +0000
commit512b1e00ab9b75e46cc76af40c72cf239fa100e5 (patch)
tree533eeec1377dd0502725e57bad3225d2e82fd812 /azurelinuxagent/pa/rdma/centos.py
parentc6339c307f36f77a4198d6faf1275acdf371200b (diff)
parent0f537ddd741bfb333dbc01b994013a2b4e75d26f (diff)
downloadvyos-walinuxagent-512b1e00ab9b75e46cc76af40c72cf239fa100e5.tar.gz
vyos-walinuxagent-512b1e00ab9b75e46cc76af40c72cf239fa100e5.zip
Import patches-applied version 2.2.9-0ubuntu1 to applied/ubuntu/zesty-proposed
Imported using git-ubuntu import. Changelog parent: c6339c307f36f77a4198d6faf1275acdf371200b Unapplied parent: 0f537ddd741bfb333dbc01b994013a2b4e75d26f New changelog entries: * New upstream release (LP: #1683521).
Diffstat (limited to 'azurelinuxagent/pa/rdma/centos.py')
-rw-r--r--azurelinuxagent/pa/rdma/centos.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/azurelinuxagent/pa/rdma/centos.py b/azurelinuxagent/pa/rdma/centos.py
index 214f9ea..10b7c81 100644
--- a/azurelinuxagent/pa/rdma/centos.py
+++ b/azurelinuxagent/pa/rdma/centos.py
@@ -82,8 +82,7 @@ class CentOSRDMAHandler(RDMAHandler):
# Example match (pkg name, -, followed by 3 segments, fw_version and -):
# - pkg=microsoft-hyper-v-rdma-4.1.0.142-20160323.x86_64
# - fw_version=142
- pattern = '{0}-\d\.\d\.\d\.({1})-'.format(
- self.rdma_user_mode_package_name, fw_version)
+ pattern = '{0}-(\d+\.){{3,}}({1})-'.format(self.rdma_user_mode_package_name, fw_version)
return re.match(pattern, pkg)
@staticmethod
@@ -156,7 +155,7 @@ class CentOSRDMAHandler(RDMAHandler):
# Install kernel mode driver (kmod-microsoft-hyper-v-rdma-*)
kmod_pkg = self.get_file_by_pattern(
- pkgs, "%s-\d\.\d\.\d\.+(%s)-\d{8}\.x86_64.rpm" % (self.rdma_kernel_mode_package_name, fw_version))
+ pkgs, "%s-(\d+\.){3,}(%s)-\d{8}\.x86_64.rpm" % (self.rdma_kernel_mode_package_name, fw_version))
if not kmod_pkg:
raise Exception("RDMA kernel mode package not found")
kmod_pkg_path = os.path.join(pkg_dir, kmod_pkg)
@@ -165,7 +164,7 @@ class CentOSRDMAHandler(RDMAHandler):
# Install user mode driver (microsoft-hyper-v-rdma-*)
umod_pkg = self.get_file_by_pattern(
- pkgs, "%s-\d\.\d\.\d\.+(%s)-\d{8}\.x86_64.rpm" % (self.rdma_user_mode_package_name, fw_version))
+ pkgs, "%s-(\d+\.){3,}(%s)-\d{8}\.x86_64.rpm" % (self.rdma_user_mode_package_name, fw_version))
if not umod_pkg:
raise Exception("RDMA user mode package not found")
umod_pkg_path = os.path.join(pkg_dir, umod_pkg)