Dynamic Profile Classification¶
The most common task when working with NOC is assigning group settings - profiles (
Profile). To automate this process, you can set criteria by which the system will assign the correct profile (
Profile) upon saving the entity.
Basic Principles of Operation¶
- Automatic profile assignment policy (
Dynamic Classification Policy) is added to the profiles.
- A list of rules (
Match Rules) is added to the profiles (
- If the policy by rule (
By Rules) is set, the system determines the appropriate profile when the entity is saved.
- The rules are checked in ascending order of the
orderfield, excluding those where the order is 0.
- If all
labelsfrom the rule are present in the entity's effective labels Labels, the profile from which the rule matched is considered appropriate.
- If the handler (
handler) specified in the rules returns
True, the profile from which the rule matched is considered appropriate.
Rules are triggered when an instance is saved (by clicking the Save button).
Profile Assignment Rules Configuration¶
Profile) with automatic assignment support have a set of rules (
Match Rules). The matching criteria are the presence of all specified labels (
Match Labels) in the entity's effective labels or the
True result of the handler's operation.
Rule operation is regulated by the policy (
Dynamic Classification Policy):
- Disabled - do not use profile assignment rules.
- By Rule - assign a profile according to the rules.
Disabled set, automatic profile assignment will not occur.
- Order - (
Dynamic Order) the order in which the criteria are checked (sequential numbering for all profiles). If the value is 0, the rule is skipped.
- Match Labels - a set of labels.
- Handler (
Match Handler) - a reference to the Handler.
In rules, you can use any labels, including Match Labels, allowing you to combine manually assigned labels with built-in ones.
There are 4 interface profiles in the system: *
default. The default interface profile. Should be assigned if none of the others fit. *
Client Port - The profile is assigned to all access ports. *
Trunk Port - The profile is assigned to all trunk ports. *
Uplink. A trunk port whose description contains the words
Conditions based on matching with VLANs will be needed for conditions with
Access Port and
Trunk Port. To do this, you need to create a VC Filter.
For the condition with Uplinks, we need to create a Regex Label
rx_iface_uplink with the regular expression
After creating them, the following labels will be available in the rules:
The rule for assigning an interface profile becomes the following set of rules.