blob: 36af33139845e53fe2be9a410c220a7960782f14 [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001CASE 1
2
3 NAME "Checking FVT"
4 STEP "Checking the FVT"
5 STORE ON FVT DO simplePacket USING "SRC_MAC_FOR_CTL0_0" IN pkt
6 in_port = 3
7 STORE ON FVT DO genPacketIn USING in_port AS in_port, pkt AS pkt IN msg
8 snd_list = ["switch", 0, msg]
9 exp_list = [["controller", 0, msg]]
10 STORE ON FVT DO ofmsgSndCmp USING snd_list , exp_list , xid_ignore AS True, hdr_only AS True IN res
11 ASSERT res EQUALS True ONPASS "Received expected message" ONFAIL "Received unexpected message"
12
13 COMMENT "Packet_in for controller1"
14 STORE ON FVT DO simplePacket USING "SRC_MAC_FOR_CTL1_0" IN pkt
15 in_port = 3
16 STORE ON FVT DO genPacketIn USING in_port AS in_port, pkt AS pkt IN msg
17 snd_list = ["switch", 0, msg]
18 exp_list = [["controller", 1, msg]]
19 STORE ON FVT DO ofmsgSndCmp USING snd_list , exp_list , xid_ignore AS True IN res
20 ASSERT res EQUALS True ONPASS "Received expected message" ONFAIL "Received unexpected message"