[Index]
If an administrator at a hierarchy has access to more than one Network Device List (NDL), the option to choose a specific hardware group or list may be needed in order to provision a set of devices. The Network Device List Reference (NDLR) does not offer such a choice.
The Rule Model Device Selection Type model provides a solution to this problem and instances of it are a set of rules for views and relations at a hierarchy level. A particular NDL can then be selected from a pop-up form before the Add form of these model types are shown. In this way the administrator can then select the specific required NDL. Refer to diagram below for an illustration of this functionality.
When an instance of the Rule Model Device Selection Type model is added, the target relation or view is specified and more than one a set rules can be added for it - one for each relevant Hierarchy Node Type.
In addition, a Default GUI Rule that is applied to the Relation or View is reflected as the Default value for the Permitted Hierarchy Node Type.
In addition to this behavior, the following rules apply:
GUI Rule | NDL(s) | NDLR | Use Popup | Use NDLR | Expected result |
---|---|---|---|---|---|
N | N | N | Normal Device selection | ||
N | Y | N | Normal Device selection | ||
N | Y | Y | NDLR is used as target device | ||
Y | Y | N | N | N | Normal Device selection and override with NDF in workflows |
Y | Y | Y | Y | N | Pop up list of NDLs |
Y | Y | Y | Y | Y | Pop up list with NDLR as only option |
Y | Y | N | Y | Y | Pop up an empty list with NDLR missing message |
Y | N | N | N | N | Normal Device selection and override with NDF in workflows |
Y | Y | Y | N | N | NDLR is used as target device |
Y | Y | Y | N | Y | NDLR is used as target device |
Y | Y | N | Y | N | Pop up list of NDLs (Most popular option) |
Y | N | N | Y | N | Pop up an empty list |
The Rule Model Device Selection Type model also provides the following functionality:
The NDL device meta is available to the context in Provisioning Workflows. For example:
"device_meta": { "ndl": { "name": "NDL1", "pkid": "54dc76c82afa4327de0d218e", "data/CallManager": { "pkid": "54dc76c72afa4327de0d217f", "bkey": "[\"10.120.2.175\", \"8443\", \"P.C\"]" }, "bkey": "[\"NDL1\", \"P.C\"]", "data/UnityConnection": { "pkid": "54dc76be2afa4327de0d210b", "bkey": "[\"172.29.41.72\", \"443\", \"P.C\"]" } } }
NDL device meta namespace device_meta is available in macros as: {{ device_meta.??? }}, for example:
device_meta.ndl.name device_meta.ndl.data/CallManager.pkid
The [ndl] macro is available for use in GUI Rules - similar to [hierarchy].
An API parameter is available for the selected NDL when a GET request is sent for the Add form of a Relation. The value of [ndl] in the example below will be a valid PKID for the NDL. For example:
GET /api/relation/UserCucmCucRel/add/? hierarchy=[hierarchy]& ndl=[ndl]& schema=true& schema_rules=true
This parameter will be transformed in the subsequent Add calls to devices to a device parameter.
This defines a rule for adding a model type using specific device selection type
Title | Description | Details | |||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Model Type * | The model type the rule will be applied for |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Operation * | The operation that applies for this rule Default: add |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Allowed Hierarchy Node Types | The list of Hierarchy Node Types that will be allowed |
|
|||||||||||||||||||||||||||||||||||||||||||||||
Permitted Hierarchy Node Type | Allowed Hierarchy Node Type Default: Default |
|
|||||||||||||||||||||||||||||||||||||||||||||||
NDL Selection |
|
||||||||||||||||||||||||||||||||||||||||||||||||
Use NDLR |
|