+#queue id assignment with priq
+
altq on { lo0 tun0 } tbrsize 1824 priq bandwidth 10Mb queue { one two }
queue one priority 1 priq(default)
queue two priority 15
+#queue id assignment with cbq: two same named queues on different interfaces
+#must have the same qid
+
altq on { lo0 tun0 } tbrsize 1824 cbq bandwidth 10Mb queue { one two }
queue one bandwidth 10% cbq(default)
queue two bandwidth 90% { three four}
+# more complicated case to provoke queue id assignment errors:
+# -two same named queues must have same qid on all interfaces
+# -two differently named queues must not share a qid, even on different ifs
+
altq on lo0 tbrsize 1824 bandwidth 10Mb cbq queue { eins zwei drei }
altq on tun0 tbrsize 1824 bandwidth 33600b cbq queue { vier zwei fuenf }
queue eins bandwidth 10% cbq(default)
+# test two different named queues don't get the same qid on different interfaces
+
altq on lo0 tbrsize 1824 bandwidth 10Mb cbq queue { bloody germans }
altq on tun0 tbrsize 1824 bandwidth 10Mb cbq queue { bloody toads }
queue bloody cbq(default) bandwidth 50%