From ea311b81377abed8d6ac90fb32bf1d7585112285 Mon Sep 17 00:00:00 2001 From: Levon Tarver Date: Fri, 19 Apr 2024 20:14:45 +0000 Subject: [PATCH] add noop for sim sled-agent --- illumos-utils/src/opte/port_manager.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/illumos-utils/src/opte/port_manager.rs b/illumos-utils/src/opte/port_manager.rs index 93c70f7d1ea..cfa8c716720 100644 --- a/illumos-utils/src/opte/port_manager.rs +++ b/illumos-utils/src/opte/port_manager.rs @@ -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,