Provisioning Fabric Devices Using End-to-End ZTP
From Contrail Networking Release 5.1, you can provision fabric devices using Zero Touch Provisioning (ZTP).
ZTP allows you to provision new Juniper Networks devices in your network automatically, with minimal manual intervention.
This topic provides steps to provision fabric devices using ZTP and configure underlay network via Contrail Command UI.
You must complete Installing Contrail Command before proceeding.
The minimum required version of Junos OS for QFX5000 and QFX10000 Series devices is 18.1R3-S5 or higher.
Sample Topology
Prerequisites
These are example parameters. The interface name can be different based on your deployment.
5a12s3-node1:
Install CentOS 7.6.
Configure eno1 port with the static IP 10.87.x.2/27.
HWADDR=ac:xx:xx:xx:xx:88 NM_CONTROLLED=no BOOTPROTO=none DEVICE=enp2s0f0 ONBOOT=yes IPADDR=10.87.x.2 NETMASK=255.255.255.224 GATEWAY=<GATEWAY_IP>
5a12s1-node1:
Install CentOS 7.6.
Configure eno1 port with the static IP 10.87.x.1/27.
HWADDR=0c:xx:xx:xx:xx:4a NM_CONTROLLED=no BOOTPROTO=none DEVICE=eno1 ONBOOT=yes IPADDR=10.87.x.1 NETMASK=255.255.255.224 GATEWAY=<GATEWAY_IP>
Configure ens2f1 port with the static IP 10.1.x.2/24.
HWADDR=90:xx:xx:xx:xx:a1 NM_CONTROLLED=no BOOTPROTO=none DEVICE=ens2f1 ONBOOT=yes IPADDR=10.1.x.2 NETMASK=255.255.255.0 GATEWAY=<GATEWAY_IP>
To provision fabric devices using ZTP via Contrail Command UI:
To configure underlay network via Contrail Command UI:
Create provisioning infrastructure network.
Click Networks.
Create a network by entering the required details.
Import server topology.
Click Servers.
Click Import.
Upload the server topology file.
Sample server topology yaml file:nodes: - name: 5a12s1-node1 type: baremetal ports: - name: ens2f1 mac_address: 90:xx:xx:xx:xx:a1 switch_name: WS37XXX049 port_name: xe-0/0/46 switch_id: 3c:61:04:63:0e:80
Table 2: Required Fields for server topology yaml file Field
Details
name
Name of the infrastructure BMS node
type
Type of the infrastructure BMS node. It must be "baremetal"
ports
List of the ports of BMS node connected to the TOR switch
name
Name of the BMS port
switch_name
TOR switch name
port_name
TOR port name
Import server node profile.
You must create server node profile for the Contrail Networking Controller server.
Click Servers.
Click Node Profiles.
Click Import.
Upload the server node profile file.
Table 3: Required fields for Server Node Profile Field
Details
kind
Resource type
name
Name of a resource
fq_name
Fully Qualified name of a resource
parent_type
Node profile parent resource type. It must be "global-system-config"
node_profile_vendor
Node Profile vendor name
node_profile_type
Node profile type. It must be "end-system" for servers
hardware_refs
List of references to the hardware models supported by the node profile
card_refs
List of references to the interface cards
{ "resources": [ { "kind": "card", "data": { "name": "dell-bms-card", "fq_name": ["dell-bms","dell-bms-card"], "interface_map": { "port_info": [{"name": "ens2f1", "labels": ["provisioning"]}] } } }, { "kind": "hardware", "data": { "name": "dell-bms", "fq_name": ["dell-bms"], "card_refs": [{"to": ["dell-bms","dell-bms-card"]}] } }, { "kind": "node_profile", "data": { "hardware_refs": [{"to": ["dell-bms"]}], "parent_type": "global-system-config", "name": "Dell_BMS_01", "fq_name": ["default-global-system-config", "Dell_BMS_01"], "node_profile_vendor": "Dell", "node_profile_type": "end-system" } } ] }
Assign node profile to the server.
Click Servers.
Select the required server from the list.
Click Assign Node Profile.
Once the above procedure is completed, change the default route from management port to the access port.