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:
Peng Tao 2018-09-25 17:04:10 +08:00
parent 58ce1b88c4
commit 21a671eabe

View File

@ -1194,6 +1194,7 @@ func generateInterfacesAndRoutes(networkNS NetworkNamespace) ([]*types.Interface
Name: endpoint.Name(), Name: endpoint.Name(),
Mtu: uint64(endpoint.Properties().Iface.MTU), Mtu: uint64(endpoint.Properties().Iface.MTU),
HwAddr: endpoint.HardwareAddr(), HwAddr: endpoint.HardwareAddr(),
PciAddr: endpoint.PciAddr(),
} }
ifaces = append(ifaces, &ifc) ifaces = append(ifaces, &ifc)