Trigger CD
Pipeline

Step 1 - Navigate to the Merge Request

To open the merge request page:

  1. Click the !# link in the text Related merge request !# to merge stage. In the screenshot below the link is !1



Step 2 - Merge the Request

On Merge Request details page:

  1. Click the blue Merge button



Step 3 - Navigate to Continuous Delivery Pipeline for Prod

Once code is merged, a new CD pipeline is triggered:

  1. Locate the new pipeline that was triggered
  2. Click the Pipeline number or the blue circle with a half moon icon



Step 4 - Wait Until Pipeline is Finished

While the pipeline is running click on the deploy_prod job under the deploy stage (middle box) to see the various Ansible roles running against the Production Fabric to build it out using the CD Pipeline!

  1. Click on deploy_prod





This step will take around 15-16 mins to complete

This deploy_prod and test_prod are doing the following:

  • The deploy_prod runs the build_fabric.yml script against the production fabric.
  • The test_prod runs the verify_fabric.yml script against the production fabric.
  • This is effectively taking all of the scripts you built earlier for the staging fabric and runs them against a new target host file for the production fabric to build out your new production fabric using the CD pipeline in GitLab!


Step 5 - Login to Nexus Dashboard and Verify the New Production Fabric

In your browser, navigate back to your NDFC instance. If needed login using your username and password:

  • Username: admin
  • Password: cisco.123

Check fabric-prod

This time open the fabric page and check fabric-prod, NOT fabric-stage. Remember the CD pipeline pushes changes to the production fabric.

Navigate to the Fabrics page and Click fabric-prod, and verify the production fabric is configured:

  1. Verify fabric-prod and external-fabric-prod have been created by the pipeline execution
  2. Double-click on fabric-prod



  3. Examine your prod fabric's Overview page. You should see a total of 4 switches, 2 L2VNIs (Networks), and 1 VRF.



  4. Click on Switches to view the switches added to your prod fabric and where the overlay configuration was configured



  5. Click on VRFs to view the VRFs added to your prod fabric. As you can see, it is the identical configuration intent you tested with your staging fabric.
  6. Double-click AnsibleVRF



  7. Click on VRF Attachments to view the VRF attached to your prod leaf switches.
  8. Verify VRF deployment to your three switches



  9. Click on Networks to view the Networks added to your prod fabric.
  10. Verify the networks deployed to your swithces
  11. Double-click NaC-Net01



  12. Click on Network Attachments to view the Networks attached to your prod leaf switches.
  13. Verify networks deployed to your leaf switches
  14. Close your Network Overview



  15. Close your VRF to return back to the main prod fabric