Commit 454d4bcb authored by Thomas Holterbach's avatar Thomas Holterbach
Browse files

added link s1-s6 and s3-s4 in the monitoring script

parent 8ee98345
......@@ -72,7 +72,11 @@ LINKS = {
('R1', 'R3') : 0,
('R3', 'R1') : 0,
('R2', 'R4') : 0,
('R4', 'R2') : 0
('R4', 'R2') : 0,
('S1', 'S6') : 0,
('S6', 'S1') : 0,
('S3', 'S4') : 0,
('S4', 'S3') : 0
}
......@@ -101,14 +105,14 @@ topo_string="""
h1------({}/{})------S1------({}/{})------R1------({}/{})------R2------({}/{})------S3------({}/{})------h3
| /| \ / | \ |
|__({}/{})__ / | \ / | \ __({}/{})__|
\ / | \ ({}/{}) | \ /
\ / | \ / | \ /
\/({}/{}) \ ({}/{}) /
/\ | / \ | / \.
/ \ | / \_({}/{}) | / \.
__({}/{})__ / \ | / \ | / \ __({}/{})__
| \ | / \ | / |
h6------({}/{})------S6------({}/{})------R4------({}/{})------R3------({}/{})-------S4------({}/{})------h4
| \ / | \ ({}/{}) | \ / |
| \ / | \ / | \ / |
({}/{}) \/({}/{}) \ ({}/{}) / ({}/{})
| /\ | / \ | / \ |
| / \ | / \_({}/{}) | / \ |
|__({}/{})__ / \ | / \ | / \ _({}/{})__|
| \ | / \ | / |
h6------({}/{})------S6------({}/{})------R4------({}/{})------R3------({}/{})------S4------({}/{})------h4
\ /
\ /
({}/{}) ({}/{})
......@@ -159,8 +163,10 @@ def print_traffic():
LINKS[("S1", "R4")], LINKS[("R4", "S1")], \
LINKS[("R3", "S3")], LINKS[("S3", "R3")], \
LINKS[("R4", "R2")], LINKS[("R2", "R4")], \
LINKS[("S1", "S6")], LINKS[("S6", "S1")], \
LINKS[("R1", "R4")], LINKS[("R4", "R1")], \
LINKS[("R2", "R3")], LINKS[("R3", "R2")], \
LINKS[("S3", "S4")], LINKS[("S4", "S3")], \
LINKS[("R1", "R3")], LINKS[("R3", "R1")], \
LINKS[("S6", "R1")], LINKS[("R1", "S6")], \
LINKS[("R2", "S4")], LINKS[("S4", "R2")], \
......@@ -199,7 +205,7 @@ while True:
i = 0
else:
i += 1
except:
print("There is no network to monitor!")
break
Supports Markdown
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