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

Creating Service Definitions

To create a service definition, you use the JUNOSe software’s macro language to specify the parameters that define the desired service. A macro file can define only one service—however, the file can have multiple templates to define characteristics of the desired service. You create service definitions independent of the Service Manager commands and operations, which are performed on the E-series router.

For detailed information about the JUNOSe software’s macro language, see the Command Line Interface chapter in JUNOSe System Basics Configuration Guide.

Figure 27 is an example of a service definition macro file that creates a tiered service. A tiered service typically provides set bandwidths for both inbound and outbound traffic for a subscriber. In this example, the input (inputBW) and output (outputBW) bandwidth values are parameterized. This example assumes that QoS profile triplePlayIP and QoS parameter maxSubscBW are configured. See Service Definition Examples for additional service definition examples.

Service Manager only tracks JUNOSe objects that are passed back in the env.setResult method when a service definition is executed. Table 134 describes the supported objects:

Table 134: JUNOSe Objects Tracked by Service Manager

Name

Requirement

Description

input-stat-clacl

Optional

  • Collects input statistics from policy manager
  • Can be a list of clacls

secondary-input-stat-clacl

Optional

  • Collects input statistics from policy manager
  • Can be a list of clacls

output-stat-clacl

Optional

  • Collects output statistics from policy manager
  • Can be a list of clacls

activate-profile

Required

  • Specifies the interface profile used on activation of the service
  • Deletion of the profile is Service Manager’s responsibility

deactivate-profile

Optional

  • Specifies the interface profile used on deactivation of the service
  • If not specified, is the same as the activation-profile
  • Deletion of the profile is Service Manager’s responsibility

command-in-error

Optional

  • Passes the value env.getErrorCommand
  • Service Manager displays the line in the service definition that has the error

command-error-status

Optional

  • Passes the value env.getErrorStatus
  • Service Manager displays the error status for the error

Figure 27: Sample Service Definition Macro File

Image service-definition-macro-example.gif


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