Skip to main content

VirtualMedia

Trait VirtualMedia 

Source
pub trait VirtualMedia {
    // Required methods
    fn insert_media(&self, node: &BmcEndpoint, iso: &str) -> Result<()>;
    fn eject_media(&self, node: &BmcEndpoint) -> Result<()>;
    fn set_boot_override(
        &self,
        node: &BmcEndpoint,
        target: BootTarget,
    ) -> Result<()>;
}
Expand description

Redfish virtual-media + boot-override control — the out-of-band steps that make a bare-metal node boot our ISO. Only the redfish::RedfishBoot backend implements it; the KVM/container backends have no BMC.

Required Methods§

Source

fn insert_media(&self, node: &BmcEndpoint, iso: &str) -> Result<()>

Attach iso to the node as Redfish virtual media (CD/DVD).

Source

fn eject_media(&self, node: &BmcEndpoint) -> Result<()>

Detach any virtual media from the node.

Source

fn set_boot_override( &self, node: &BmcEndpoint, target: BootTarget, ) -> Result<()>

Set the node’s one-time boot override to target.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§