Exemplo n.º 1
0
    # Register the 1st hypervisor
    overlay_manager.register_hypervisor(vtep_hvsrA)

    # wait on input
    print "\n"
    user_input = raw_input("Press any key to register the second Hypervisor: ")

    # Register the 2nd Hypervisor
    overlay_manager.register_hypervisor(vtep_hvsrB)

    # wait on input
    print "\n"
    user_input = raw_input("Press any key to register a VTEP with the first Hypervisor: ")

    # Resister a VTEP with the 1st hypervisor
    overlay_manager.resister_vtep_on_hypervisor(vtep_hvsrA)

    # wait on input
    print "\n"
    user_input = raw_input("Press any key to register a VTEP with the second Hypervisor: ")

    # Resister a VTEP with the 2nd hypervisor
    overlay_manager.resister_vtep_on_hypervisor(vtep_hvsrB)

    # wait on input
    print "\n"
    user_input = raw_input("Press any key to build a tunnel between the VTEP Hypervisors: ")

    # Build a tunnel between the VTEP Hypervisors
    overlay_manager.create_tunnel_between_two_hypervisors("g2_tunnel", doo['vniId_1'], vtep_hvsrA, vtep_hvsrB)