Resource example

# Specify the PVID as 2 for interface 3, and configure the interface to permit packets from VLANs 1 through 6. Configure the interface to forward packets from VLANs 1 through 3 after removing VLAN tags and forward packets from VLANs 4 through 6 without removing VLAN tags.

netdev_l2_interface{'ifindex3':
 ifindex => 3,
 ensure => undo_shutdown,
 pvid => 2,
 permit_vlan_list => '1-6',
 untagged_vlan_list => '1-3',
 tagged_vlan_list => '4,6'
 require => Netdev _device['device'],
}