Add Resources for Root Cause Analysis
Resource configuration requires references to rules you want to link to the resource. Ensure that you configure the rules before you start resource configuration.
To configure a resource:
- Select Configuration > Resources.
The Resources page appears.
- Do one of the following:
Click +Add Resource on the model map.
Click + on the Resources table.
The Add Resource page appears.
- Enter the details as described in Table 1.
Table 1: Fields of Properties and Functions in Resource Configuration Field
Description
General Information
A resource, like rules, is defined under the topic hierarchy.
Resource Name
Enter name of the resource. The name can follow the regex pattern: [a-zA-Z][a-zA-Z0-9_-]* and can have up to 64 characters.
For example, chassis, interface, or system.
Topic
Select the topic to which the resource belongs.
For example, interface, chassis, or protocol.
Description
Enter a short description of the resource and the resources on which this resource is dependent.
Properties
Properties are characteristics such as name, MTU, neighbor-id etc. of a particular resource. A property of one resource can be matched with property of another resource to establish dependency.
Property name
Enter name of the resource property. The name can follow the regex pattern: [a-zA-Z][a-zA-Z0-9_-]* and can have up to 64 characters.
For example, neighbor-id and interface-name.
Property type
Select the type of property input.
You can choose from string, integer, floating point, or unsigned.
Add as a key
If you enable a resource property as key, Paragon Insights uses this property to uniquely identify multiple instances of that property as a resource. You can mark more than one property as key.
For example, in interface property that uses interface-name as a key, Paragon Insights identifies ge-0/0/1, ge-1/2/0, ge-1/0/0 as unique instances of interface resource.
Source Configuration
Rules and fields are the sources from which Paragon Insights discovers a resource property.
Rule Name
Add a rule name in the topic/rule format.
For a resource property, you can add one or more rules as sources.
Field Name
Select a field configured in the rule.
(Optional) Functions
You can enter a function in conditional statements that check for resource dependency.
Function name
Enter a function name that follows the [a-zA-Z][a-zA-Z0-9_-]* pattern.
Path to function
Select the file name where functions are defined.
Paragon Insights supports only Python functions.
Method name
Select the name of the function you want to execute from the given file.
Description
Enter a description of the function.
Arguments (Add Item)
Name
Add argument or parameters defined in the function.
Mandatory
Toggle the switch on if the function arguments you added must be included when Paragon Insights calls the function.
- Click Save & Exit.
The Save Resource Configuration dialog appears.
- Do one of the following:
Click Save and Deploy.
You can save the resource configuration and deploy it.
Click Save.
You can only save the resource configuration but not deploy it.
If you save your configuration by only entering the details in the table, you complete the resource configuration. You can see the new resource on the Resources page.
To connect the resource you add to another resource on the visual panel, you must configure dependency for this resource.