pub fn veth(self, name: String, peer_name: String) -> Self {
        let mut peer = LinkMessage::new();
        peer.nlas_mut().push(LinkNla::IfName(peer_name));

        self.name(name)
            .link_info(LinkInfoKind::Veth, Some(LinkInfoData::Veth(peer)))
            .up()
    }
/// Create a veth pair.
/// kThis is equivalent to `ip link add NAME1 type veth peer name NAME2`.
Create a veth pair.
kThis is equivalent to `ip link add NAME1 type veth peer name NAME2`.
Create a veth pair . kThis is equivalent to ` ip link add NAME1 type veth peer name NAME2 ` .
pub fn veth(self, name: String, peer_name: String) -> Self {
        let mut peer = LinkMessage::new();
        peer.nlas_mut().push(LinkNla::IfName(peer_name));
        self.name(name)
            .link_info(LinkInfoKind::Veth, Some(LinkInfoData::Veth(peer)))
            .up()
    }
pub fn veth ( self , name : String , peer_name : String ) -> Self { let mut peer = LinkMessage :: new ( ) ; peer . nlas_mut ( ) . push ( LinkNla :: IfName ( peer_name ) ) ; self . name ( name ) . link_info ( LinkInfoKind :: Veth , Some ( LinkInfoData :: Veth ( peer ) ) ) . up ( ) }
Create a veth pair.
Create a veth pair .
self
name
String
peer_name
String
self
name
String
peer_name
String