Book Image

Cisco ACI Cookbook

By : Stuart Fordham
Book Image

Cisco ACI Cookbook

By: Stuart Fordham

Overview of this book

Cisco Application Centric Infrastructure (ACI) is a tough architecture that automates IT tasks and accelerates data-center application deployments. This book focuses on practical recipes to help you quickly build, manage, and customize hybrid environment for your organization using Cisco ACI. You will begin by understanding the Cisco ACI architecture and its major components. You will then configure Cisco ACI policies and tenants. Next you will connect to hypervisors and other third-party devices. Moving on, you will configure routing to external networks and within ACI tenants and also learn to secure ACI through RBAC. Furthermore, you will understand how to set up quality of service and network programming with REST, XML, Python and so on. Finally you will learn to monitor and troubleshoot ACI in the event of any issues that arise. By the end of the book, you will gain have mastered automating your IT tasks and accelerating the deployment of your applications.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Creating an APN and an EPG using REST and XML


One of the cool things about using the REST client is that we can run more than one command at a time. We created a tenant and then deleted it. Now we want to create a bridge domain, but need a tenant to go with it. We do not need to create the tenant separately; we can create it at the same time as creating the bridge domain.

How to do it...

  1. Keep the URL the same as before.
  2. Enter the following:
      <fvTenant name="TenantA">
      <fvCtx name="TenantA_VRF"/>
      <fvBD name="TenantA-BD">
      <fvSubnet ip="10.0.0.1/24"/>
        <fvRsCtx tnFvCtxName="TenantA_VRF"/>
      </fvBD>
      </fvTenant>
  1. Press Send.

How it works...

This creates the tenant, the VRF (context), the bridge domain, and the subnet:

The code also associates the VRF to the bridge domain: