async fn configure_wan(&mut self, pid: PortId, topological_path: &str) -> error::Result<()> {
        let wan_name = self.config.get_interface_name(topological_path)?;
        let properties = self.config.create_wan_properties(topological_path)?;
        let lif = self.create_lif(LIFType::WAN, wan_name, None, &[pid]).await?;
        self.update_lif_properties(lif.id().uuid(), &properties).await?;
        self.apply_packet_filters(topological_path).await?;
        self.hal.set_interface_state(pid, true).await?;
        info!("WAN configured: pid: {:?}, lif: {:?}, properties: {:?} ", pid, lif, properties);
        Ok(())
    }
/// Configures a WAN uplink from the stored configuration.
Configures a WAN uplink from the stored configuration.
Configures a WAN uplink from the stored configuration .
async fn configure_wan(&mut self, pid: PortId, topological_path: &str) -> error::Result<()> {
        let wan_name = self.config.get_interface_name(topological_path)?;
        let properties = self.config.create_wan_properties(topological_path)?;
        let lif = self.create_lif(LIFType::WAN, wan_name, None, &[pid]).await?;
        self.update_lif_properties(lif.id().uuid(), &properties).await?;
        self.apply_packet_filters(topological_path).await?;
        self.hal.set_interface_state(pid, true).await?;
        info!("WAN configured: pid: {:?}, lif: {:?}, properties: {:?} ", pid, lif, properties);
        Ok(())
    }
async fn configure_wan ( & mut self , pid : PortId , topological_path : & str ) -> error :: Result < ( ) > { let wan_name = self . config . get_interface_name ( topological_path ) ? ; let properties = self . config . create_wan_properties ( topological_path ) ? ; let lif = self . create_lif ( LIFType :: WAN , wan_name , None , & [ pid ] ) . await ? ; self . update_lif_properties ( lif . id ( ) . uuid ( ) , & properties ) . await ? ; self . apply_packet_filters ( topological_path ) . await ? ; self . hal . set_interface_state ( pid , true ) . await ? ; info ! ( " " pid lif properties ) ; Ok ( ( ) ) }
Configures a WAN uplink from the stored configuration.
Configures a WAN uplink from the stored configuration .
&mut self
pid
PortId
topological_path
&str
&mut self
pid
PortId
topological_path
&str