mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-24 01:24:26 +01:00
virtcontainers/network: Change signature of Enpoint Attach method
In order to use the device manager and receiver from the network enpoints, the signature of the Attach method must change to revice a Sandbox instead of a Hypervisor, this way devices can be added through the device manager API. Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -68,7 +68,8 @@ func (endpoint *TuntapEndpoint) SetProperties(properties NetworkInfo) {
|
||||
}
|
||||
|
||||
// Attach for tap endpoint adds the tap interface to the hypervisor.
|
||||
func (endpoint *TuntapEndpoint) Attach(h hypervisor) error {
|
||||
func (endpoint *TuntapEndpoint) Attach(s *Sandbox) error {
|
||||
h := s.hypervisor
|
||||
if err := xConnectVMNetwork(endpoint, h); err != nil {
|
||||
networkLogger().WithError(err).Error("Error bridging virtual endpoint")
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user