This directory contains the posts for configuring the FW, LB and FW+LB
service graph templates and service device clusters (Citrix, F5 & ASA)
in "shared" plan

The following scripts need these pre-requistes:
------------------------------------------------
- python 2.7
- Python libraries:
  jinja2, yaml, glob, json, requests, xml, re


Steps:
------
- Use the link below to download the required device packages Citrix,
F5 and ASA. Ensure the device package version is certified for the
APIC release that you are using. Store the device package zip files in
this directory.

http://www.cisco.com/c/en/us/solutions/collateral/data-center-virtualization/application-centric-infrastructure/solution-overview-c22-734587.html

- Replace the VENDOR-DEVICE-PACKAGE.zip entries in the shared.cfg with
the correct device package files

- Modify all the fields in that file according to your setup in the
setup.yaml file

- Execute:

../jinja.py setup.yaml tn-common-template.xml > tn-common.xml
../jinja.py setup.yaml Shared-Plan-Citrix-graph-template.xml > Shared-Plan-Citrix-graph.xml
../jinja.py setup.yaml Shared-Plan-F5-graph-template.xml > Shared-Plan-F5-graph.xml

If you see python errors, please ensure the pre-requisite python
libraries are installed in the system

In the shared.cfg set the value of YOUR_APIC_IP and YOUR_APIC_ADMIN_PASSWD

Posts the templates as follows:
../request.py shared.cfg


Steps to "delete" the services configuration:
---------------------------------------------

In the shared.cfg set the value of YOUR_APIC_IP and YOUR_APIC_ADMIN_PASSWD

Generate the "delete" version of the posts:
- In the setup.yaml, set the "STATUS" variable to "deleted"

- Execute:
../jinja.py setup.yaml tn-common-template.xml > tn-common-del.xml
../jinja.py setup.yaml Shared-Plan-Citrix-graph-template.xml > Shared-Plan-Citrix-graph-del.xml
../jinja.py setup.yaml Shared-Plan-F5-graph-template.xml > Shared-Plan-F5-graph-del.xml

To delete the configuration, posts the templates as follows:
../request.py shared_del.cfg
