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. The definition creates the bandwidth towards the subscriber and parameterizes the source of the video feed.
The sample CLI command shows an example of the service-management owner-session command that you can use to activate the 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 #>
Sample Owner ID
|
Owner |
Owner ID |
Value |
|---|---|---|
|
AAA (RADIUS) |
Acct-Session-ID (RADIUS attribute 44) |
573498 |
Sample CLI Command
- host1(config)#service-management owner-session
aaa 573498 service-session “ videoMin(4500000,
192.168.23.58)”