pub async fn update_lif_properties_fidl(
        &mut self,
        lif_id: UUID,
        properties: &netconfig::LifProperties,
    ) -> error::Result<()> {
        let lif = match self.lif_manager.lif_mut(&lif_id) {
            None => {
                info!("update_lif_properties: lif not found {:?} ", lif_id);
                return Err(error::NetworkManager::Lif(error::Lif::NotFound));
            }
            Some(x) => x,
        };

        let old = lif.properties();
        let lp = old.get_updated(&properties)?;

        self.update_lif_properties(lif_id, &lp).await
    }
/// Configures an interface with the given properties, and updates the LIF information.
Configures an interface with the given properties, and updates the LIF information.
Configures an interface with the given properties and updates the LIF information .
pub async fn update_lif_properties_fidl(
        &mut self,
        lif_id: UUID,
        properties: &netconfig::LifProperties,
    ) -> error::Result<()> {
        let lif = match self.lif_manager.lif_mut(&lif_id) {
            None => {
                info!("update_lif_properties: lif not found {:?} ", lif_id);
                return Err(error::NetworkManager::Lif(error::Lif::NotFound));
            }
            Some(x) => x,
        };
        let old = lif.properties();
        let lp = old.get_updated(&properties)?;
        self.update_lif_properties(lif_id, &lp).await
    }
pub async fn update_lif_properties_fidl ( & mut self , lif_id : UUID , properties : & netconfig :: LifProperties , ) -> error :: Result < ( ) > { let lif = match self . lif_manager . lif_mut ( & lif_id ) { None => { info ! ( " " lif_id ) ; return Err ( error :: NetworkManager :: Lif ( error :: Lif :: NotFound ) ) ; } Some ( x ) => x , } ; let old = lif . properties ( ) ; let lp = old . get_updated ( & properties ) ? ; self . update_lif_properties ( lif_id , & lp ) . await }
Configures an interface with the given properties, and updates the LIF information.
Configures an interface with the given properties and updates the LIF information .
&mut self
lif_id
UUID
properties
&netconfig::LifProperties
&mut self
lif_id
UUID
properties
&netconfig::LifProperties