[Index]

Model: data/RuleModelDeviceSelectionType

Network Device List Selection Rules

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.

rmdevice-selection-type

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:

This defines a rule for adding a model type using specific device selection type

Model Details: data/RuleModelDeviceSelectionType

Title Description Details
Model Type * The model type the rule will be applied for
  • Field Name: model_type
  • Type: String
  • Format: uri
Operation * The operation that applies for this rule Default: add
  • Field Name: operation
  • Type: String
  • Default: add
  • Choices: ["Add"]
Allowed Hierarchy Node Types The list of Hierarchy Node Types that will be allowed
  • Field Name: hierarchy_types.[n]
  • Type: Array
Permitted Hierarchy Node Type Allowed Hierarchy Node Type Default: Default
  • Field Name: hierarchy_types.[n].hierarchy_type
  • Type: String
  • Target: data/HierarchyNodeType
  • Target attr: name
  • Default: Default
  • Choices: [" "]
NDL Selection
  • Field Name: hierarchy_types.[n].ndl_selection
  • Type: Boolean
Use NDLR
  • Field Name: hierarchy_types.[n].use_ndlr
  • Type: Boolean