示例#1
0
def createVirtualRouter(self):
    self.vrouter_fixture = {}
    if not hasattr(self.topo, 'vrouter_params'):
        return self
    for vrouter in self.topo.vrouter_list:
        self.vrouter_fixture[vrouter] = self.useFixture(
            VirtualRouterFixture(vrouter,
                                 self.topo.vrouter_params[vrouter]['type'],
                                 self.topo.vrouter_params[vrouter]['ip'],
                                 connections=self.project_connections,
                                 inputs=self.project_inputs))
    return self
示例#2
0
                model=device_dict['model'],
                vendor=device_dict['vendor'],
                asn=device_dict['asn'],
                ssh_username=device_dict['ssh_username'],
                ssh_password=device_dict['ssh_password'],
                mgmt_ip=device_dict['mgmt_ip'],
                tunnel_ip=device_dict['tunnel_ip'],
                ports=device_dict['ports'],
                cfgm_ip=init_obj.cfgm_ip,
                auth_server_ip=init_obj.auth_ip,
            )
            phy_router_obj.setUp()
        if device_dict['type'] == 'vcenter_gateway':
            vrouter_obj = VirtualRouterFixture(
                device_dict['name'],
                'embedded',
                cfgm_ip=init_obj.cfgm_ip,
                auth_server_ip=init_obj.auth_ip,
            )
            vrouter_obj.setUp()

            vcpe_router_obj = VpeRouterFixture(
                device_dict['name'],
                device_dict['mgmt_ip'],
                ssh_username=device_dict['ssh_username'],
                ssh_password=device_dict['ssh_password'],
                mgmt_ip=device_dict['mgmt_ip'],
                ports=device_dict['ports'],
                cfgm_ip=init_obj.cfgm_ip,
                auth_server_ip=init_obj.auth_ip,
            )
            vcpe_router_obj.setUp()
示例#3
0
                model=device_dict['model'],
                vendor=device_dict['vendor'],
                asn=device_dict['asn'],
                ssh_username=device_dict['ssh_username'],
                ssh_password=device_dict['ssh_password'],
                mgmt_ip=device_dict['mgmt_ip'],
                tunnel_ip=device_dict['tunnel_ip'],
                ports=device_dict['ports'],
                cfgm_ip=init_obj.cfgm_ip,
                auth_server_ip=init_obj.auth_ip,
                )
            phy_router_obj.setUp()
        if device_dict['type'] == 'vcenter_gateway':
               vrouter_obj = VirtualRouterFixture(device_dict['name'],
                                      'embedded', 
                                      cfgm_ip=init_obj.cfgm_ip,
                                      auth_server_ip=init_obj.auth_ip,
                                       )
               vrouter_obj.setUp()

               vcpe_router_obj = VpeRouterFixture(
                   device_dict['name'], device_dict['mgmt_ip'],
                   ssh_username=device_dict['ssh_username'],
                   ssh_password=device_dict['ssh_password'],
                   mgmt_ip=device_dict['mgmt_ip'],
                   ports=device_dict['ports'],
                   cfgm_ip=init_obj.cfgm_ip,
                   auth_server_ip=init_obj.auth_ip,
                   )
               vcpe_router_obj.setUp()
               vcpe_router_obj.vrouter_ref_set(vrouter_obj.vr)
示例#4
0
            phy_router_obj = PhysicalRouterFixture(
                device_dict['name'], device_dict['mgmt_ip'],
                model=device_dict['model'],
                vendor=device_dict['vendor'],
                asn=device_dict['asn'],
                ssh_username=device_dict['ssh_username'],
                ssh_password=device_dict['ssh_password'],
                mgmt_ip=device_dict['mgmt_ip'],
                tunnel_ip=device_dict['tunnel_ip'],
                ports=device_dict['ports'],
                cfgm_ip=init_obj.cfgm_ip,
                auth_server_ip=init_obj.auth_ip,
                )
            phy_router_obj.setUp()
        if device_dict['type'] == 'vcenter_gateway':
               vrouter_obj = VirtualRouterFixture(device_dict['name'],
                                      'embedded' )
               vrouter_obj.setUp()

               vcpe_router_obj = VpeRouterFixture(
                   device_dict['name'], device_dict['mgmt_ip'],
                   ssh_username=device_dict['ssh_username'],
                   ssh_password=device_dict['ssh_password'],
                   mgmt_ip=device_dict['mgmt_ip'],
                   ports=device_dict['ports'],
                   )
               vcpe_router_obj.setUp()
               vcpe_router_obj.vrouter_ref_set(vrouter_obj.vr)
               vcpe_router_obj.setup_physical_ports()
    # end for