The following example shows a sample service definition macro file that creates a video-on-demand service—the service provides bandwidth that meets the needs of video streams.
This example uses the following software and hardware components:
The video-on-demand service definition creates the bandwidth towards the subscriber and parameterizes the source of the video feed.
This example illustrates how to create a video-on-demand service:
![]() | Note: Commented text explains the parameterized values in the example of the service definition macro file. Each example is followed by examples of RADIUS information and the CLI command that you can use to activate a subscriber service session. |
!parameterizes download bandwidth and server address
<# videoMin(downloadBW, serverAddress) #>
<# uid := app.servicemanager.getUniqueId #>
<# name := "SM-video-" $ uid #>
classifier-list <# name #> ip any <# serverAddress #> 0.0.0.0
policy-list <# name; '\n' #>
classifier-group <# name #> precedence 5000
traffic-class video
profile <# name; '\n' #>
ip policy output <# name #> statistics enabled merge
qos-parameter maxVideoBW add <# downloadBW; '\n' #>
exit
<# env.setResult("activate-profile", name) #>
<# env.setResult("output-stat-clacl", name) #>
<# endtmpl #>
Table 1 provides the sample RADIUS attributes that you can use to activate the video-on-demand service
Table 1: Sample RADIUS Attributes
Owner | Owner ID | Value |
|---|---|---|
AAA (RADIUS) | Acct-Session-ID (RADIUS attribute 44) | 573498 |
To activate a subscriber session with the configured video-on-demand service: