Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cisco ACI Cookbook

You're reading from   Cisco ACI Cookbook A Practical Guide to Maximize Automated Solutions and Policy-Drive Application Profiles

Arrow left icon
Product type Paperback
Published in May 2017
Publisher
ISBN-13 9781787129214
Length 424 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Stuart Fordham Stuart Fordham
Author Profile Icon Stuart Fordham
Stuart Fordham
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Understanding Components and the ACI Fabric FREE CHAPTER 2. Configuring Policies and Tenants 3. Hypervisor Integration (and Other Third Parties) 4. Routing in ACI 5. ACI Security 6. Implementing Quality of Service in ACI 7. Network Programmability with ACI 8. Monitoring ACI 9. Troubleshooting ACI 10. An End-to-End Example Using the NX-OS CLI

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:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime