Ejemplo n.º 1
0
            ssh_password=device_dict.get('ssh_password'),
            tunnel_ip=device_dict.get('tunnel_ip'),
            ports=device_dict.get('ports'),
            dm_managed=device_dict.get('dm_managed'),
            tsn=device_dict.get('tsn'),
            role=device_dict.get('role'),
            cfgm_ip=init_obj.cfgm_ip,
            auth_server_ip=init_obj.auth_ip,
            inputs=init_obj,
            username=init_obj.admin_username,
            password=init_obj.admin_password,
            project_name=init_obj.admin_tenant,
            domain=init_obj.admin_domain,
            orchestrator=init_obj.orchestrator)
        phy_router_obj.setUp()
        phy_router_obj.verify_bgp_peer()

        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'],
Ejemplo n.º 2
0
            ssh_password=device_dict.get('ssh_password'),
            tunnel_ip=device_dict.get('tunnel_ip'),
            ports=device_dict.get('ports'),
            dm_managed=device_dict.get('dm_managed'),
            tsn=device_dict.get('tsn'),
            role=device_dict.get('role'),
            cfgm_ip=init_obj.cfgm_ip,
            auth_server_ip=init_obj.auth_ip,
            inputs=init_obj,
            username=init_obj.admin_username,
            password=init_obj.admin_password,
            project_name=init_obj.admin_tenant,
            domain=init_obj.admin_domain,
            orchestrator=init_obj.orchestrator)
        phy_router_obj.setUp()
        assert phy_router_obj.verify_bgp_peer(), 'BGP peering is not up.'

        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'],
                tunnel_ip=device_dict.get('tunnel_ip'),
                ports=device_dict.get('ports'),
                dm_managed=device_dict.get('dm_managed'),
                tsn=device_dict.get('tsn'),
                role=device_dict.get('role'),
                cfgm_ip=init_obj.cfgm_ip,
                auth_server_ip=init_obj.auth_ip,
                inputs=init_obj,
                username=init_obj.admin_username,
                password=init_obj.admin_password,
                project_name=init_obj.admin_tenant,
                domain=init_obj.admin_domain,
                orchestrator=init_obj.orchestrator
                )
        phy_router_obj.setUp()
        phy_router_obj.verify_bgp_peer()

        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'],