mirror of https://github.com/apache/cloudstack.git
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:
parent
727c5bae9a
commit
4c1ace5e02
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue