mirror of https://github.com/apache/cloudstack.git
kvm: Add support for DPDK trunk interfaces (#4048)
Update to support trunk interfaces for DPDK enabled hosts
This commit is contained in:
parent
195385f5b9
commit
9727548dbc
|
|
@ -70,9 +70,11 @@ public class DpdkDriverImpl extends AdapterBase implements DpdkDriver {
|
|||
dpdkPortVhostUserClientType;
|
||||
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append(String.format("ovs-vsctl add-port %s %s " +
|
||||
"vlan_mode=access tag=%s " +
|
||||
"-- set Interface %s type=%s", bridgeName, port, vlan, port, type));
|
||||
stringBuilder.append(String.format("ovs-vsctl add-port %s %s ", bridgeName, port));
|
||||
if (Integer.parseInt(vlan) > 0 && Integer.parseInt(vlan) < 4095) {
|
||||
stringBuilder.append(String.format("vlan_mode=access tag=%s ", vlan));
|
||||
}
|
||||
stringBuilder.append(String.format("-- set Interface %s type=%s", port, type));
|
||||
|
||||
if (vHostUserMode == DpdkHelper.VHostUserMode.CLIENT) {
|
||||
stringBuilder.append(String.format(" options:vhost-server-path=%s/%s",
|
||||
|
|
|
|||
Loading…
Reference in New Issue