-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtme-run supports multiple --net arguments to setup virtio-net devices, but the init program was only starting the DHCP client for one of them: the first one it discovered, which was not necessarily the first one by alphabetical order. Now, the DHCP client is started for each interface, so each of them can have an assigned IP address. Technically, instead of returning one network device, a vector of devices is returned. Same for the threads to start the DHCP clients. Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
- Loading branch information
Showing
1 changed file
with
37 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters