mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 14:25:43 +00:00
network: Fix network hotplug for ipvlan and macvlan endpoints.
Since moving from network coldplug to hotplug, the only case verified was veth endpoints. Support for network hotplug for ipvlan and macvlan was broken/not added. Fix it. Fixes: #8391 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
3b2fb6a604
commit
a6272733e7
@ -1895,9 +1895,8 @@ func (q *qemu) hotplugNetDevice(ctx context.Context, endpoint Endpoint, op Opera
|
||||
var tap TapInterface
|
||||
|
||||
switch endpoint.Type() {
|
||||
case VethEndpointType:
|
||||
drive := endpoint.(*VethEndpoint)
|
||||
tap = drive.NetPair.TapInterface
|
||||
case VethEndpointType, IPVlanEndpointType, MacvlanEndpointType, TuntapEndpointType:
|
||||
tap = endpoint.NetworkPair().TapInterface
|
||||
case TapEndpointType:
|
||||
drive := endpoint.(*TapEndpoint)
|
||||
tap = drive.TapInterface
|
||||
|
Loading…
Reference in New Issue
Block a user