> On Aug. 3, 2012, 10:31 p.m., Chiradeep Vittal wrote:
> > plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtBridgeVifDriver.java,
> >  line 77
> > <https://reviews.apache.org/r/6285/diff/3/?file=133628#file133628line77>
> >
> >     Instead of requiring the nicModel in the API definition, you can 
> > configure this subclass with a reference to LibVirtComputingResource. The 
> > plug API then looks like
> >     plug(NicTO nic, String guestOsType). The implementation of plug can ask 
> > LibVirtComputingResource for the nicModel
> 
> Tomoe Sugihara wrote:
>     Why would you want to pass guestOsType to vif driver even though 
> responsibility of determining nicModel is in LibvirtComputingResource?
>     If a different implementation of vif driver could choose a different 
> model for a guestOsType, that would make sense.
>     Which one should have the responsibility?
>

<Chiradeep>
Good point. That logic should be moved in to the LibVirtVifDriver as well.
</Chiradeep>

Ok. I have moved getGuestNicModel to VifDriverBase class with protected 
visibility and BridgeVifDriver inherits that.


- Tomoe


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/6285/#review9838
-----------------------------------------------------------


On Aug. 2, 2012, 11:18 p.m., Tomoe Sugihara wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/6285/
> -----------------------------------------------------------
> 
> (Updated Aug. 2, 2012, 11:18 p.m.)
> 
> 
> Review request for cloudstack, edison su and Chiradeep Vittal.
> 
> 
> Description
> -------
> 
> Remove methods that are no longer needed in LibvirtComputingResource.java
> 
> Signed-off-by: Tomoe Sugihara <to...@midokura.com>
> 
> Add unplug() hook
> 
> Signed-off-by: Tomoe Sugihara <to...@midokura.com>
> 
> Add vif driver support
> 
> - define abstract class named LibvirtVifDriver
> - add LibvirtBridgeVifDriver to support current network implementation
> - unplug() will be added
> 
> Signed-off-by: Tomoe Sugihara <to...@midokura.com>
> 
> 
> Diffs
> -----
> 
>   
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtBridgeVifDriver.java
>  PRE-CREATION 
>   
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>  73101a9896c4863bc75502ff8b0b6daceff52dc4 
>   
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVifDriver.java
>  PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/6285/diff/
> 
> 
> Testing
> -------
> 
> Manually tested launching VM on all-in-one KVM box with Advanced networking.
> 
> 
> Thanks,
> 
> Tomoe Sugihara
> 
>

Reply via email to