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 14:56:43 UTC

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

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

 ##########
 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:
   Can you rewrite this to use `iproute2`?

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