Download This Guide
Importing Data for Multiple Tenants
You can use the Import Tenants page to import tenant data and other objects associated with the tenant, such as administrative users, sites, and topology. You can start by downloading a JSON template and using it to customize the data file that you want to import.
Creating a Tenant Data File
To create a tenant data file:
- Click Tenants > All Tenants > Import Tenants > Import.
The Import Tenants page appears.
- Click Download Sample JSON to
download a JSON template.
The tenant template file is downloaded to your system.
- In the Import Tenants page, click Cancel.
- Open the template file.
- Save the template file to your computer with an appropriate name.
- Customize the file with your tenant data, using Table 1 as a reference.
- Save the customized tenant data file.
Table 1: Tenant Configuration Fields
Field | Description |
---|---|
tenant_name | Specify the name of the tenant. You can use an unlimited number of alphanumeric characters, including symbols. Example: tenant-a |
tenant_type | Specify the type of tenant. The following options are available.
Example: Default |
admin_user_name | Specify a unique name for the tenant administrator. Example: admin-tenant-a |
admin_user_password | Specify a password for the tenant administrator. Example: pwd123 |
managed_wan_topology | |
network_name | Specify a unique name for the customer Layer 3 VPN network. You can use an unlimited number of alphanumeric characters, including symbols. Example: vcpe-tenant-a-l3vpn |
site | |
site_name | Specify a unique alphanumeric name for the site. You can use an unlimited number of alphanumeric characters, including symbols. Example: site1 |
site_description | Specify the description for the site. You can use an unlimited number of alphanumeric characters, including symbols. Example: vcpe payload |
street | Specify the street name of the site. Example: site1-street |
city | Specify the city name of the site. Example: site1-city |
state | Specify the name of the state where the site is located. Example: site1-state |
zip_code | Specify the zip code of the site location. Example: 99990 |
country | Specify the name of the country where the site is located. Example: site1-country |
router_info (cloud_site_info) | |
router_name | Specify the router name that connects to the tenant site. This value matches the interface that you configure for the MX Series router physical network element (PNE). Example: PNE-MX10 |
route_target | Specify the route target of the transit network for the tenant. Example: 8888:889 |
right_network_name | Specify the name of the transit network for the tenant. Example: internet, corp-vpn-right |
subnet | Specify the subnet of the transit network for the tenant. Example: 10.154.0.0/24 |
route_target (internet-info) | Specify the route target of the site virtual network. Example: 8888:887 |
subnet (internet-info) | Specify the IP address of the subnet that connects the site to the Internet. Example: 10.155.0.0/24 |
pop_info (cloud_site_info) | |
pop_name | Specify the name of the POP that manages the site. You can use an unlimited number of alphanumeric characters, including symbols. Example: pne-pop10 |
route_target | Specify the route target of the transit network for the tenant. Example: 8828:889 |
right_network_name | Specify the name of the transit network for the tenant. Example: corp-vpn-right |
subnet | Specify the subnet of the transit network for the tenant. Example: 10.151.0.0/24 |
route_target (internet-info) | Specify the route target of the site virtual network. Example: 8888:887 |
subnet (internet-info) | Specify the IP address of the subnet that connects the site to the Internet. Example: 10.155.0.0/24 |
pop_info (data_center_site_info) | |
pop_name | Specify the name of the POP. You can use an unlimited number of alphanumeric characters, including symbols. Example: pne-pop10 |
route_target | Specify the route target for the corporate data center network. Example: 65412:772 |
subnet | Specify the subnet of the corporate data center network. Example: 10.155.0.0/24 |
route_target (internet-info) | Specify the route target for the Internet network. Example: 8888:887 |
subnet (internet-info) | Specify the subnet IPv4 address for the Internet network. Example: 10.155.0.0/24 |
Importing Tenant Data
To import tenant data:
- Click Tenants > All Tenants > Import Tenants.
The Import Tenants page is displayed.
- Click Browse and navigate to the directory where the tenant file is located.
- Select the tenant file and click Open.
- Click Import.
The status of the import operation is displayed. You can click View Details for more information about the import operation. If the import operation state is successful, then proceed to Step 4 or verify the tenant file format.
- Click OK.
The new tenants are displayed on the Tenants page. You can click any tenant to view more information about the tenant.
![]() | Note: If you use the tenants for a hybrid WAN centralized deployment, access Contrail and add the following rule to the default security group in the Contrail project. Ingress IPv4 network 0.0.0.0/0 protocol any ports any This rule allows the network to accept traffic from all subnets. |