You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/10/21 15:09:03 UTC

[GitHub] [cloudstack] RPDiep commented on a change in pull request #3648: Security Group: limit returns in get_bridge_physdev to 1

RPDiep commented on a change in pull request #3648: Security Group: limit returns in get_bridge_physdev to 1
URL: https://github.com/apache/cloudstack/pull/3648#discussion_r337073568
 
 

 ##########
 File path: scripts/vm/network/security_group.py
 ##########
 @@ -149,7 +149,7 @@ def split_ips_by_family(ips):
 
 
 def get_bridge_physdev(brname):
-    physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}'" % brname)
+    physdev = execute("bridge -o link show | awk '/master %s / && !/^[0-9]+: vnet/ {print $2}' | head -1" % brname)
 
 Review comment:
   @rhtyd 
   `bridge` is part of `iproute2`: http://man7.org/linux/man-pages/man8/bridge.8.html  
   The security_group.py script has been modified by @wido  to use `iproute2` in the previous commit.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services