Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pim_dm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
pim_dm
Commits
181cd42d
Commit
181cd42d
authored
Jul 27, 2018
by
Pedro Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repeat test due to fix in assert state machine
parent
dea88e37
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
63 deletions
+77
-63
TestResults/Switch.pcap
TestResults/Switch.pcap
+0
-0
TestResults/log.txt
TestResults/log.txt
+73
-63
emulation/switch1/root/TestAssert.py
emulation/switch1/root/TestAssert.py
+4
-0
No files found.
TestResults/Switch.pcap
View file @
181cd42d
No preview for this file type
TestResults/log.txt
View file @
181cd42d
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 -w[Khistory -w[Khistory -w[Ktcpdump -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 [4P/hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap root@switch1:~# history -w[Ktcpdump -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:~# [K
python3 ServerLog.py
root@switch1:~#
. sc[K[K
python3 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
[1;32;40mTest1 Success[0m
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 R
3 receivedPruneOrJoinOrGraft
, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R
4 receivedInferiorMetricFromNonWinner_couldAssertIsTrue, W -> W
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R
2 receivedPreferedMetric
, L -> L
pim.KernelEntry.DownstreamInterface.Assert DEBUG (10.1.1.100,224.12.12.12) 1 eth1 R
3 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
[1;32;40mTest2 Success[0m
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
[1;32;40mTest3 Success[0m
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
[1;32;40mTest4 Success[0m
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
^C1
408
packets captured
2
28
4 packets received by filter
49
packets dropped by kernel
tcpdump -i br0 -Q in -w /hosthome/Desktop/test_pim/
test_assert
/TestResults/Switch.pcap
^C1
521
packets captured
2
76
4 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
emulation/switch1/root/TestAssert.py
View file @
181cd42d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment