Skip to content

Commit

Permalink
add noop for sim sled-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
internet-diglett committed Apr 19, 2024
1 parent 8a7ffd8 commit ca42e1e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions illumos-utils/src/opte/port_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,17 @@ impl PortManager {
Ok(mappings)
}

#[cfg(not(target_os = "illumos"))]
pub fn list_virtual_nics(
&self,
) -> Result<Vec<SetVirtualNetworkInterfaceHost>, Error> {
info!(
self.inner.log,
"Listing virtual nics (ignored)";
);
Ok(vec![])
}

#[cfg(target_os = "illumos")]
pub fn set_virtual_nic_host(
&self,
Expand Down

0 comments on commit ca42e1e

Please sign in to comment.