On Sat, Aug 15, 2009 at 4:21 AM, Randy Bias <randyb@neotactics.com> wrote:
Tying the vlan ID to a 12-bit integer like 802.1q is probably a horrible mistake.  Strongly recommend you avoid that.  At the very least it should be a 32-bit integer, but more likely a 64-bit integer or even (preferably) a string.

Very few cloud providers of any reasonable size will have less than 4096 IDs *and* I can guarantee you that there will be non-802.1q workarounds to providing L2 networking domains.

Thanks Randy. You're right, and that's why we also have vlan-tag (but really we should probably have schemas so you can specify namespaces like 802.1q, MPLS labels, etc.)

network.vlan-idInteger (0..4095)802.1q VLAN ID (e.g. 4095)
network.vlan-tag TokenTag based VLANs (e.g. external-dmz)

Sam