Cisco Systems OL-27172-01 Mobility Aid User Manual


 
4-11
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 4 CPE Management Overview
Multi-Instance Object Support
You can specify multi-instance parameter name in the expression, and the discover mechanism of these
objects can be configured using the newly introduce template element InstanceConfiguration.
Example 4-5 Multi-Instance Object in Expression
The following example illustrates usage of multi-instance object in expression:
<Expression>
<ParameterName>Device.Services.FAPService.{i}.REM.GSM.Cell.{i}.LAC
</ParameterName>
<InstanceConfiguration>
<Instance>
<Path>Device.Services.FAPService</ Path>
<Value>last()</Value >
</Instance>
<Instance>
<Path>Device.Services.FAPService.{i}.REM.GSM.Cell</ Path>
<Value>compare(PLMNID equals 123456)</Value >
</Instance>
<MatchCondition>OR</MatchCondition>
</InstanceConfiguration>
<Value>4660</Value>
<Operator>match</Operator>
</Expression>
In the above expression the multi-instance object parameter name
Device.Services.FAPService.{i}.REM.GSM.Cell.{i}.LAC is used. The InstanceConfiguration discovers
the multi-instance object instances Device.Services.FAPService.{i} and
Device.Services.FAPService.{i}.REM.GSM.Cell.{i}. The Value tag supports all the available instance
discover methods like all(), last(), compare(parameterName operation matchValue) and index. The new
tag MatchCondition is available in the instance configuration, which is used to evaluate the multiple
expressions only in case there are multiple instances discovered.
Example 4-6 Multi-Instance Object in Firmware Rule Template
The following example illustrates usage of multi-instance object in firmware rule template:
<tc:Template
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tc="urn:com:cisco:bac:common-template"
xmlns="urn:com:cisco:bac:firmware-template"
xsi:schemaLocation="urn:com:cisco:bac:common-template CommonTemplateConstructs.xsd">
<FirmwareTemplate templateVersion="3.0">
<ParameterDictionaries>
<ParameterDictionary>tr196-cwmp-dictionary-v2.0.xml</ParameterDictionary>
</ParameterDictionaries>
<Prerequisites>
<MaintenanceWindow>
<StartTime>00:00:00</StartTime>
<Duration>15:00</Duration>
</MaintenanceWindow>
<Expression>
<ParameterName>Device.Services.FAPService.{i}.REM.UMTS.GSM.Cell.{i}.BSIC</ParameterName>
<InstanceConfiguration>
<Instance>
<Path>Device.Services.FAPService.{i}.REM.UMTS.GSM.Cell.</Path>
<Value>compare(LAC lessThanEquals 65534)</Value>