r2377 - toss things around to let more config lines be generated by decoder script
[racktables] / gateways / switchvlans / vlandecoder-sample
CommitLineData
1b354441
DO
1#!/bin/sh
2
3[ $# = 1 ] || exit 1
4
5case $1 in
6 6001)
7 NATIVE=100
8 ;;
9 6002)
10 NATIVE=200
11 ;;
12 *)
13 exit 2
14 ;;
15esac
16VOICE=300
17
18echo switchport trunk native vlan $NATIVE
19echo switchport trunk allowed vlan $NATIVE,$VOICE
20echo switchport voice vlan $VOICE
21echo spanning-tree portfast trunk