pub struct BridgePlugin { /* private fields */ }Expand description
Bridge plugin: creates veth pairs and attaches them to a bridge device.
Implementations§
Source§impl BridgePlugin
impl BridgePlugin
Sourcepub fn active_count(&self) -> usize
pub fn active_count(&self) -> usize
Get the number of active veth pairs.
Trait Implementations§
Source§impl CniPlugin for BridgePlugin
impl CniPlugin for BridgePlugin
Source§fn add(
&mut self,
container_id: &str,
config: &CniConfig,
) -> Result<CniResult, CniError>
fn add( &mut self, container_id: &str, config: &CniConfig, ) -> Result<CniResult, CniError>
Add a container to the network.
Source§fn del(
&mut self,
container_id: &str,
_config: &CniConfig,
) -> Result<(), CniError>
fn del( &mut self, container_id: &str, _config: &CniConfig, ) -> Result<(), CniError>
Remove a container from the network.