cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prachida...@apache.org
Subject [07/31] git commit: updated refs/heads/planner_reserve to db4f335
Date Thu, 16 May 2013 19:23:07 GMT
PVLAN: Fix KVM ovs driver cannot get vlan id issue


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/70da1b3b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/70da1b3b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/70da1b3b

Branch: refs/heads/planner_reserve
Commit: 70da1b3be3b80d1bcc1ae652d9be81d26d3ef807
Parents: 3c3d677
Author: Sheng Yang <sheng.yang@citrix.com>
Authored: Thu May 2 16:32:07 2013 -0700
Committer: Sheng Yang <sheng.yang@citrix.com>
Committed: Thu May 2 16:32:07 2013 -0700

----------------------------------------------------------------------
 .../hypervisor/kvm/resource/OvsVifDriver.java      |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/70da1b3b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
index ac226e2..eac3248 100644
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/OvsVifDriver.java
@@ -76,6 +76,8 @@ public class OvsVifDriver extends VifDriverBase {
         }
         else if (nic.getBroadcastType() == Networks.BroadcastDomainType.Lswitch) {
             logicalSwitchUuid = nic.getBroadcastUri().getSchemeSpecificPart();
+        } else if (nic.getBroadcastType() == Networks.BroadcastDomainType.Pvlan) {
+            vlanId = NetUtils.getPrimaryPvlanFromUri(nic.getBroadcastUri());
         }
         String trafficLabel = nic.getName();
         if (nic.getType() == Networks.TrafficType.Guest) {


Mime
View raw message