Configuration Parameters Inside the Device Package Specification
A device package contains an XML file that describes the specification for the service device. This specification includes device information as well as various functions provided by the service device.
As part of the device specification, this file must contain the declaration for the configuration needed by the service device. This configuration is needed to configure various functions that are provided by the service device during graph instantiation.
The following figure shows the configuration parameters hierarchy inside the device package.
MFolder
MFolder is a group of configuration items that can contain MParams and other nested MFolders. An MFolder has following attributes:
Attribute | Description |
---|---|
Key | Defines the type of the configuration item. The key is defined in the device package and can never be overwritten. The key is used as a matching criterion as well as for validation. |
Description | Describes the configuration item. |
Cardinality | Specifies the cardinality of
the configuration item. The default value of cardinality is
1 . If cardinality is
N , The
Application Policy Infrastructure
Controller (APIC) allows N instances of the
configuration parameter to be configured.
|
ScopedBy |
Specifies the scope for the parameter resolution. ScopedBy determines where to look for parameter values when APIC resolves the parameter from configuration MOs. Default
value is
|
RsConnector | A relation that associates a configuration item to an MConn. |
DevCtx | Allows a configuration item to be associated with a specific physical device (CDev) in a device (LDev). |
Locked | Allows a configuration item value to be locked. Once locked, the value cannot be changed. |
MParam
MParam is the basic unit of configuration parameters that declares a single configuration parameter. MParam has following attributes:
Attribute | Description |
---|---|
Key | Defines the type of the configuration item. The key is defined in the device package and can never be overwritten. The key is used as a matching criterion as well as for validation. |
Description | Describes the configuration item. |
Cardinality | Specifies the cardinality of the configuration item. The
default value of cardinality is
1 . If cardinality is
N , The
APIC allows N instances of the
configuration parameter to be configured.
|
RsConnector | A relation that associates a configuration item to an MConn. |
Mandatory | Allows a configuration item to be marked as mandatory. |
Locked | Allows a configuration item value to be locked. Once locked, the value cannot be changed. |
Validation | Specifies the validation method for the value. |
MRel
MRel allows one MFolder to refer to another MFolder. Using MRel inside an MFolder, an administrator can associate the containing MFolder to the MFolder that is pointed by the MRel using the RsTarget relation contained inside MRel. MRel has following attributes:
Attribute | Description |
---|---|
Key | Defines the type of the configuration item. The key is defined in the device package and can never be overwritten. The key is used as a matching criterion as well as for validation. |
Description | Describes the configuration item. |
Cardinality | Specifies the cardinality of the configuration item. The
default value of cardinality is
1 .
|
RsTarget | A relation that associates a configuration folder to another MFolder. The value of TDn for this relation is the DN of the target folder. |
RsConnector | A relation that associates a configuration item to an MConn. |
Mandatory | Allows a configuration item to be marked as mandatory. |
Configuration Scope of a Device Package Specification
In a device specification file, configuration items are arranged in different sections.
MDevCfg
The MDevCfg section describes the device level configuration, which is shared by all service graphs using the device. The Application Policy Infrastructure Controller (APIC) does a reference counting of the configuration objects created by using the configuration items described in this section. Objects are only deleted from a service device after all the graph instances that use the device are deleted.
MFuncCfg
The MFuncCfg describes the configuration that is local to a service function and is specific to a service function. The APIC does a reference counting of the configuration objects created by the configuration items described in this section. Objects are created and deleted whenever a service function is instantiated and deleted.
MGrpCfg
The MGrpCfg describes the configuration that is shared by all functions of a service graph using the device. The APIC does a reference counting of the configuration objects created by using the configuration items described in this section. Objects are only deleted from a service device after all functions from the service graph are deleted.
Example XML of Configuration Parameters Inside the Device Package
The following XML example shows configuration parameters inside of the device package:
<vnsMFolder key="VServer" scopedBy="epg">
<vnsRsConnector tDn="uni/infra/mDev-Acme-ADC-1.0/mFunc-SLB/mConn-external"/>
<vnsMParam key="vservername" description="Name of VServer" mandatory="true"/>
<vnsMParam key="vip" description="Virtual IP"/>
<vnsMParam key="subnet" description="Subnet IP"/>
<vnsMParam key="port" description="Port for Virtual server"/>
<vnsMParam key="persistencetype" description="persistencetype"/>
<vnsMParam key="servicename" description="Service bound to this vServer"/>
<vnsMParam key="servicetype" description="Service bound to this vServer"/>
<vnsMParam key="clttimeout" description="Client timeout"/>
<vnsMFolder key="VServerGlobalConfig"
description="This references the global configuration">
<vnsMRel key="ServiceConfig">
<vnsRsTarget tDn="uni/infra/mDev-Acme-ADC-1.0/mDevCfg/mFolder-Service"/>
</vnsMRel>
<vnsMRel key="ServerConfig">
<vnsRsTarget tDn="uni/infra/mDev-Acme-ADC-1.0/mDevCfg/mFolder-Server"/>
</vnsMRel>
<vnsMRel key="VipConfig">
<vnsRsTarget
tDn="uni/infra/mDev-Acme-ADC-1.0/mDevCfg/mFolder-Network/mFolder-vip"/>
<vnsRsConnector tDn="uni/infra/mDev-Acme-ADC-1.0/mFunc-SLB/mConn-external"/>
</vnsMRel>
</vnsMFolder>
</vnsMFolder>