- Preface
- Overview
- Prerequisites
- Importing a Device Package
- Configuring a Device Cluster (Logical Device)
- Configuring Connectivity to Device Cluster
- Using a Device Cluster
- Configuring a Service Graph
- Configuration Parameters
- Using a Service Graph
- Monitoring a Service Graph
- Configuring Administrator Roles for Managing a Service Configuration
- Developing Automation
Importing a Device Package
Importing a Device Package
About the Device Package
The Application Policy Infrastructure Controller (APIC) requires a device package to configure and monitor service devices. A device package manages a class of service devices and provides the APIC with information about the devices so that the APIC knows what the device is and what the device can do. A device package is a zip file that contains the following parts:
Device specification |
An XML file that defines the following properties: |
Device script |
A Python script that performs the integration between the APIC and a device. The APIC events are mapped to function calls that are defined in the device script. |
Function profile |
A profile of parameters with default values that are specified by the vendor. You can configure a function to use these default values. |
Device-level configuration parameters |
A configuration file that specifies parameters that are required by a device at the device level. The configuration can be shared by one or more of the graphs that are using the device. |
You can create a device package or it can be provided by a device vendor or Cisco.
Example of Installing a Device Package
When you create a device package, you need to install it on the system.
The following is an example of installing a device package:
$ scp AcmeADC.zip admin@10.10.10.10: |
Upload the package to the system. |
||
$ ssh admin@10.10.10.10 |
Log in as a provider administrator. |
||
admin@apic:~> services install AcmeADC.zip |
Install the device package. |
||
admin@apic:~> rm AcmeADC.zip |
(Optional) Clean up the uploaded file.
|
Notes for Installing a Device Package with REST
-
A device package can be installed using an HTTP or HTTPS POST.
-
If HTTP is enabled on APIC, the URL for the POST is "http://10.10.10.10/ppi/node/mo/.xml".
-
If HTTPS is enabled on APIC, the URL for the POST is "https://10.10.10.10/ppi/node/mo/.xml".
-
The message must have a valid session cookie.
See the Cisco APIC REST API User Guide for information about obtaining a cookie.
-
The body of the POST should contain the device package being uploaded. Only one package is allowed in a POST.