Dynamic VLANs through VIF-script

From Xen

The following blog post describes how to create the desired vlan out of the given parameters whenever the domU starts up. It also checks if the vif is up, and therefor only tries to create it when it is not in "ip link sh".