def create(): r1 = router.create('r1') r2 = router.create('r2') r3 = router.create('r3') topo.link(r1, r2, 14) topo.link(r1, r3, 1) topo.link(r3, r2, 1)
def create (): r1 = router.create('r1') r2 = router.create('r2') r3 = router.create('r3') topo.link(r1, r2, 14) topo.link(r1, r3, 1) topo.link(r3, r2, 1)
def create (switch_type = FakeEntity, host_type = FakeEntity, n = 2): DVRouter.create('student') BasicHost.create('dest') FakeEntity.create('sender', None, [dest, 10]) FakeEntity.create('receiver', [dest, 11], None) topo.link(student, sender) topo.link(student, receiver) topo.show_ports(sender) topo.show_ports(receiver)
def create(switch_type=FakeEntity, host_type=FakeEntity, n=2): DVRouter.create('student') BasicHost.create('dest') FakeEntity.create('sender', None, [dest, 10]) FakeEntity.create('receiver', [dest, 11], None) topo.link(student, sender) topo.link(student, receiver) topo.show_ports(sender) topo.show_ports(receiver)
def create (switch_type = FakeEntity, host_type = FakeEntity, n = 2): DVRouter.create('A') DVRouter.create('B') FakeEntity.create('C', {A: 1}, {}) topo.link(A, B) topo.link(B, C)