You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes improves OPTE installation and improves errors (#1052)
* Fixes improves OPTE installation and improves errors
- Fixes mismerge in `tools/install_opte.sh` that prevented installing
OPTE package on a system that didn't previously have it
- Improves error messages when either xde driver fails or the expected
virtual networking devices don't exist
* Fmt, fix lifetime for automock
* Add better handling and cleanup of VNICs
- Adds a `VnicKind` enum for tracking the flavor of each VNIC the sled
agent is responsible for.
- Adds parameter to the `Dladm::get_vnics()` call which filters the
returned list to a particular kind. The goal here is to be more
explicit about which VNICs we're looking for and ultimately operating
on in the sled agent.
- The sled agent now cleans up guest VNICs and the underlying xde
devices (OPTE ports) when it starts up, similar to how it clears out
any extant control VNICs, to ensure things are in a reliable state
before accepting any requests from Nexus
- Improves the `tools/install_opte.sh` script, trying to be less
intrusive and only modifying the state we need to change when adding
the OPTE / xde package repositories.
* Add mock_opte::delete_all_xde_devices for non-illumos systems
* Update sled-agent mock context calls
* Be more conservative about what VnicKinds are allowed
* non-sticky is the goal
* Remove kind parameter to get_vnics, no longer needed
0 commit comments