pub fn vlan(self, name: String, index: u32, vlan_id: u16) -> Self {
        self.name(name)
            .link_info(
                LinkInfoKind::Vlan,
                Some(LinkInfoData::Vlan(vec![LinkInfoVlan::Id(vlan_id)])),
            ).append_nla(LinkNla::Link(index))
            .up()
    }
/// Create VLAN on a link.
/// This is equivalent to `ip link add link LINK name NAME type vlan id VLAN_ID`,
/// but instead of specifying a link name (`LINK`), we specify a link index.
Create VLAN on a link.
This is equivalent to `ip link add link LINK name NAME type vlan id VLAN_ID`,
but instead of specifying a link name (`LINK`), we specify a link index.
Create VLAN on a link . This is equivalent to ` ip link add link LINK name NAME type vlan id VLAN_ID ` but instead of specifying a link name ( ` LINK ` ) we specify a link index .
pub fn vlan(self, name: String, index: u32, vlan_id: u16) -> Self {
        self.name(name)
            .link_info(
                LinkInfoKind::Vlan,
                Some(LinkInfoData::Vlan(vec![LinkInfoVlan::Id(vlan_id)])),
            ).append_nla(LinkNla::Link(index))
            .up()
    }
pub fn vlan ( self , name : String , index : u32 , vlan_id : u16 ) -> Self { self . name ( name ) . link_info ( LinkInfoKind :: Vlan , Some ( LinkInfoData :: Vlan ( vec ! [ LinkInfoVlan Id ( vlan_id ) ] ) ) , ) . append_nla ( LinkNla :: Link ( index ) ) . up ( ) }
Create VLAN on a link.
Create VLAN on a link .
self
name
String
index
u32
vlan_id
u16
self
name
String
index
u32
vlan_id
u16