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 ea311b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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,15 @@ impl PortManager {
Ok(mappings)
}

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

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

0 comments on commit ea311b8

Please sign in to comment.