Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Waiting for network link to become available #40

Open
Vincinator opened this issue Oct 3, 2022 · 0 comments
Open

Waiting for network link to become available #40

Vincinator opened this issue Oct 3, 2022 · 0 comments
Labels

Comments

@Vincinator
Copy link
Collaborator

When setting a network device up (via netlink) the function returns before the network device is actually in state up.
Assigning routes to a network device (via netlink) requires the network device to be up.

I think the caller should safely assume that .await for the async function init/network.rs:set_link_up assures that the link is up, so that follow up network configuration steps can safely assume that the link is really up after the call.

In addition, I would like to provide access to the netdevice state during network configuration, so that a config functions relying on a link state can implement safety checks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant