Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
network: set endpoint pci address when hotplug
Browse files Browse the repository at this point in the history
So that agent can use it to check and wait for the requested nic.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
  • Loading branch information
bergwolf committed Oct 30, 2018
1 parent 58ce1b8 commit 21a671e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions virtcontainers/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21a671e

Please sign in to comment.