Commit 181cd42d authored by Pedro Oliveira's avatar Pedro Oliveira

repeat test due to fix in assert state machine

parent dea88e37
No preview for this file type
Script started on Mon Jul 23 18:16:41 2018
root@switch1:~# tcpdump -i e br0 -Q in /hosh thome/Desktop/test_pim/pim/TestResults/Switch.pcap
tcpdump: syntax error
root@switch1:~# tcpdump -i br0 -Q in /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap / ) &[1@-[1@w[1@
[1] 1599
Script started on Fri Jul 27 01:32:31 2018
root@switch1:~#
root@switch1:~# history -whistory -whistory -wtcpdump -i br0 -W   W   Q in -w & /hosthome/Desktop/test_pim/test_assert/TestResults/Switch.pcap &
[1] 1607
root@switch1:~# tcpdump: listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
root@switch1:~# tcpdump -i br0 -Q in -w /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap & root@switch1:~# tcpdump -i br0 -Q in /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap root@switch1:~# history -wtcpdump -i br0 -Q in /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap root@switch1:~# tcpdump -i br0 -Q in -w /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap & root@switch1:~# python3 ServerLog.py
root@switch1:~# . scpython3 ServerLog.py
Test1: No info about (10.1.1.100,224.12.12.12) and data packets are flooded on the network
Expected: R4 WINNER
About to start TCP server...
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R4 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R2 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 2 eth2 R2 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R6 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, NI -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, W -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, NI -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to Loser
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to Loser
Test1 Success
Test2: Kill Assert Winner and dont send data packets
Expected: Every AL transitions to NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, NI -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, NI -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to NoInfo
Test2 Success
Test3: Source sends data causing the reelection of AW
Expected: R3 WINNER
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 winnerLivelinessTimerExpires, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to Loser
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to Winner
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, NI -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, NI -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to Loser
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to Loser
Test3 Success
Test4: CouldAssert of AssertWinner(R3) -> False
Change interface eth0 cost of router R3 to 100, causing eth1 to be considered as the Root interface
Expected: everyone NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPruneOrJoinOrGraft, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, NI -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, NI -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedPreferedMetric, L -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedPreferedMetric, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 couldAssertIsNowTrue, NI -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 couldAssertIsNowFalse, W -> NI
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 receivedInferiorMetricFromWinner, L -> NI
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R6 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedInferiorMetricFromWinner, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 Assert state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 receivedInferiorMetricFromWinner, L -> NI
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R5 Assert state transitions to NoInfo
Test4 Success
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedInferiorMetricFromWinner, L -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 couldAssertIsNowFalse, W -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 Assert state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedDataFromDownstreamIf, NI -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to Loser
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPruneOrJoinOrGraft, NI -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedPreferedMetric, W -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to Winner
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 receivedPreferedMetric, W -> L
pim.KernelEntry.UpstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPruneOrJoinOrGraft, NI -> NI
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 Assert state transitions to Loser
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 0 eth0 R3 receivedPreferedMetric, L -> L
^CException KeyboardInterrupt: KeyboardInterrupt() in <module 'threading' from '/usr/lib/python3.2/threading.py'> ignored
root@switch1:~# fg
tcpdump -i br0 -Q in -w /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap
^C1408 packets captured
2284 packets received by filter
49 packets dropped by kernel
tcpdump -i br0 -Q in -w /hosthome/Desktop/test_pim/test_assert/TestResults/Switch.pcap
^C1521 packets captured
2764 packets received by filter
65 packets dropped by kernel
root@switch1:~# exit
exit
Script done on Mon Jul 23 18:20:30 2018
Script done on Fri Jul 27 01:37:12 2018
......@@ -100,10 +100,14 @@ class Test4(Test):
def __init__(self):
expectedState = {"R2": {"eth1": "Assert state transitions to NoInfo"},
"R3": {"eth1": "Assert state transitions to NoInfo"},
"R5": {"eth0": "Assert state transitions to NoInfo"},
"R6": {"eth0": "Assert state transitions to NoInfo"},
}
success = {"R2": {"eth1": False},
"R3": {"eth1": False},
"R5": {"eth0": False},
"R6": {"eth0": False},
}
super().__init__("Test4", expectedState, success)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment