Overview of Administrator-Defined Resource Limits for SDK Applications
The JUNOS SDK has four levels of policies to ensure that SDK applications have the minimal impact on the native JUNOS operating system and system operations. These policies impose limits on the system resources the SDK application uses. Each succeeding policy level overrides the previous level’s settings, provided the constraints are within the previous level’s settings.
The Level I policy is the default policy generated by Juniper Networks. Level II is a per-provider level policy that has not yet been implemented in the SDK (it is the same for all providers and the policy file is a part of the JUNOS Software). A Level III policy is implemented in the policy file that SDK developers write for each SDK package.
In building an application package, the SDK provider creates a manifest and specifies roles. The manifest file specifies the contents of the application package, and the provider specifies a role name for each entry in the package manifest file. Before packaging the application, the provider has the option to create a policy file that describes the constraints to be applied to the Provider_Daemon role. This role can be defined in either a Level II or Level III policy as specified in the manifest. This policy file limits the system resources the application uses in addition to the limits imposed in the default policy generated by Juniper Networks (Level I policy).