[sled-agent] Add ability to allocate guest-visible NICs#186
Conversation
- Adds the `VPC`, `VPCSubnet` and `VNIC` types, including internal control plane representations, client views, and database types. - Implements some required traits for generating JSON schema and serializing to/from PostgreSQL wire formats. Note that the MAC address type is serialized in the database as a string, as CockroachDB doesn't currently support the PostgreSQL MACADDR type.
|
I think we must have exercised this stuff during the demo? At least in some form. omicron/omicron-nexus/src/sagas.rs Lines 352 to 384 in 81fc3e7 This created the right NICs, at least! I wonder if we could add, at least for now, the ability to have the guest NIC be on a VLAN (which could just come from the config file) for the lab environment: omicron/omicron-sled-agent/src/illumos/dladm.rs Lines 42 to 72 in 81fc3e7 omicron/omicron-sled-agent/src/instance.rs Lines 152 to 162 in 81fc3e7 |
Yeah! I pulled this branch into demo_m2, so it was definitely used there.
Sure thing! I just added the "--vlan" argument which can be plumbed into the sled agent (admittedly, so far, no one is passing this argument). Perhaps we could add it as an SMF property? Or somehow in the invocation in the service_bundle.dtd file? Regardless, this has been added. |
|
This branch is ready to go, blocked on: oxidecomputer/propolis#43 |
[Nexus]
[Sled Agent]
Vnicstructure, which uses RAII semantics to deallocate the VNIC when it goes out of scope.At the moment, this PR does not actually request NICs from Nexus -> Sled Agent -> Propolis -- but the wiring is added such that this is now possible, if requested by Nexus