[Contents] [Prev] [Next] [Index] [Report an Error]

Specifying the Add and Initial-Value Keywords

You can use the add keyword to add value to an existing parameter instance. For example:

<# qosserviceone(bandwidth1, bandwidth2) #>
profile <# profileName ; '\n' #>
qos-parameter <# qosParameterName3 ; ' add ' ; bandwidth2 ; '\n' #>
<# endtmpl #>

When you specify parameter instances using the add keyword, you can also use the initial-value keyword to specify an initial value. For example:

<# qosserviceone(bandwidth1, bandwidth2) #>
profile <# profileName ; '\n' #>
qos-parameter <# qosParameterName4 ; ' add ' ; bandwidth2 ;
' initial-value 1000000' ; '\n' #>
<# endtmpl #>

When you activate the service, Service Manager locates the existing QoS parameter instance in the interface column. If Service Manager does not find a parameter instance, it creates one with a value specified in the initial-value keyword (in this case, 100000). The value in the command is then added to the initial value. If an existing parameter instance is found, Service Manager adds the value to the existing interface.

For example, when you activate qosServiceOne as qosServiceOne(2000000,3000000), Service Manager attempts to locate the parameter instance qosParameterName4 for the subscriber's interface. If it finds a parameter instance, it adds bandwidth2 (3,000,000) to the current value. If Service Manager does not find a parameter instance, it creates one with an initial value of 1,000,000 and adds 3,000,000. The final parameter instance value is 4,000,000.

When deactivating the service, Service Manager locates the QoS parameter instance and subtracts the value in the command from the existing instance value. If the parameter is no longer referenced, the parameter instance is removed.


[Contents] [Prev] [Next] [Index] [Report an Error]