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.
|