mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-03 18:47:03 +00:00
network: set endpoint pci address when hotplug
So that agent can use it to check and wait for the requested nic. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
parent
58ce1b88c4
commit
21a671eabe
@ -1194,6 +1194,7 @@ func generateInterfacesAndRoutes(networkNS NetworkNamespace) ([]*types.Interface
|
||||
Name: endpoint.Name(),
|
||||
Mtu: uint64(endpoint.Properties().Iface.MTU),
|
||||
HwAddr: endpoint.HardwareAddr(),
|
||||
PciAddr: endpoint.PciAddr(),
|
||||
}
|
||||
|
||||
ifaces = append(ifaces, &ifc)
|
||||
|
Loading…
Reference in New Issue
Block a user