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
[review, ddmd] Address review ~ HostSwitchZonePorts + real ddmd test fixture
We address @jgallagher's review by:
- Replacing the four positional `u16` arguments in `DnsConfigBuilder::host_zone_switch`
with a `HostSwitchZonePorts` named-fields structure.
- Replacing the dropshot-based stubbed `DdmInstance` in test-utils with a
fixture that spawns and supervises a real `ddmd` subprocess running with
`--no-state-machine`, analogous to `MgdInstance` and `mgd --no-bgp-dispatcher`.
Only the switch-zone `ddmd` is registered in internal DNS, while sled-global-zone
instances are accessed locally by their own host and don't need DNS registration.
This **does** require maghemite changes, already PR'ed to oxidecomputer/maghemite#729.
To make this all work, we wire `ddmd` into the developer xtask toolchain.
`cargo xtask download maghemite-ddmd` reuses the existing `mg-ddm.tar.gz`
illumos zone artifact (extracting `ddmd`/`ddmadm`). On Linux it overlays a
raw `ddmd` binary, and on macOS it builds from source.
Also, we had to bump `oxnet` from 0.1.4 to 0.1.5 to satisfy the new maghemite pin.
0 commit comments