specification "vpc" {
	timeout 	2.0

	plug name { "0" "1" "2" "3" "4" "5" "6" "7" "8" 
		    "9" "10" "11" "12" "13" "14" "15" }

	script login {
		send "login\n"
		expect "[0-9]* OK\n"
		expect "[0-9]* vpc> "
	}
	script logout {
		send "logoff\n"
		expect "[0-9]* OK\n"
	}
# Hacked not to work
	script status_all {
		send "stat *\n"
		expect "WONTGETTHIS"
	}
}

specification "vpc2" {
	timeout 	2.0

	plug name { "0" "1" "2" "3" "4" "5" "6" "7" "8" 
		    "9" "10" "11" "12" "13" "14" "15" }

	script login {
		send "login\n"
		expect "[0-9]* OK\n"
		expect "[0-9]* vpc> "
	}
	script logout {
		send "logoff\n"
		expect "[0-9]* OK\n"
	}
	script status_all {
                send "stat *\n"
                foreachplug {
                        expect "plug ([0-9]+): (ON|OFF)\n"
                        setplugstate $1 $2 on="ON" off="OFF"
                }
                expect "[0-9]* OK\n"
                expect "[0-9]* vpc> "
        }
}

device "test0" "vpc" "./vpcd |&"
device "test1" "vpc2" "./vpcd |&"
node "t[0-15]" "test0"
node "t[16-31]" "test1"
