コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
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)
コード例 #4
0
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)
コード例 #5
0
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)