weizhouapache commented on code in PR #11318:
URL: https://github.com/apache/cloudstack/pull/11318#discussion_r2433573874


##########
python/lib/cloudutils/networkConfig.py:
##########
@@ -150,10 +153,10 @@ def getDevInfo(dev):
             if line.find("HWaddr") != -1:
                 macAddr = line.split("HWaddr ")[1].strip(" ")
             elif line.find("inet ") != -1:
-                m = re.search("addr:(.*)\ *Bcast:(.*)\ *Mask:(.*)", line)
+                m = 
re.search(r"addr:([^\s]+)\s*Bcast:([^\s]+)\s*Mask:([^\s]+)", line)

Review Comment:
   this does not work on either ubuntu or rocky/ol
   
   the line looks like
   ```
           inet 10.0.34.xxx  netmask 255.255.240.0  broadcast 10.0.47.255
   ```
   
   we can fix it later



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