From ca42e1e6ab4dd2edc739dc4f61195668bf61e7a6 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/illumos-utils/src/opte/port_manager.rs b/illumos-utils/src/opte/port_manager.rs index 93c70f7d1e..f2708041e0 100644 --- a/illumos-utils/src/opte/port_manager.rs +++ b/illumos-utils/src/opte/port_manager.rs @@ -613,6 +613,17 @@ 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(vec![]) + } + #[cfg(target_os = "illumos")] pub fn set_virtual_nic_host( &self,