CLOUDSTACK-2775: Fix trunk port is not 1 on some hosts

Now searching for eth- or em- prefix, as the port for going outside.
This commit is contained in:
Sheng Yang 2013-05-30 16:53:39 -07:00
parent 727c5bae9a
commit 4c1ace5e02
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ then
exit 1
fi
trunk_port=1
# try to find the physical link to outside, only supports eth and em prefix now
trunk_port=`ovs-ofctl show $br | egrep "\((eth|em)[0-9]" | cut -d '(' -f 1|tr -d ' '`
if [ "$op" == "add" ]
then