menu:build:relations:relation_test
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
menu:build:relations:relation_test [2021/10/21 10:55] – ↷ Links adapted because of a move operation pgels | menu:build:relations:relation_test [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
+ | ====== Relation test ====== | ||
+ | |||
+ | The relation test tool enables you to execute the queries made in the [[menu: | ||
+ | |||
+ | ===== First page ===== | ||
+ | |||
+ | This tool uses two pages, the first to select the nodes (devices) to test the relation(s) with, the second to find and select the relation and evaluate the results for the context (the node). | ||
+ | |||
+ | Devices can be selected by several means. Adding a Node-group will expand the ' | ||
+ | |||
+ | {{ menu: | ||
+ | |||
+ | Alternatively devices can be added by typing a list of Node names, ClientCodes or SiteCode in the ' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Selected Devices can be found in the YCE database or in the CMDB database. Where both exist, the YCE database takes precedence as its context is much more extensive. Its origin will be displayed in the column ' | ||
+ | |||
+ | Multiple nodes can be selected in the ' | ||
+ | |||
+ | ===== Second page ===== | ||
+ | |||
+ | The second screen is displayed after clicking '' | ||
+ | |||
+ | This page has three sections. At the top is a list of all selected devices grouped per Client and Site along with the location address. For each node the nodename, its State, Vendor-type, | ||
+ | |||
+ | {{ menu: | ||
+ | |||
+ | One of the nodes can be selected to become the ' | ||
+ | |||
+ | Next the section for selecting the relation to test is shown. As Relations are global (no client-type restrictions apply), a filter can be used to reduce the number of offered relations. Select the one to test which query is then retrieved and can be edited. | ||
+ | |||
+ | > Note: edited relations are //not// saved. Relations must be changed using the Relations form. | ||
+ | |||
+ | {{ menu: | ||
+ | |||
+ | In the example above, the Relation uses a variable in its query that cannot be substituted directly from the nodes context and therefore prevents the query to retrieve data. The orange "< | ||
+ | |||
+ | When examining the relation query, the parameters present in the query were included in the form to allow the user to provide an overriding value. The example also shows the ''< | ||
+ | |||
+ | So, after entering a sensible value for ''< | ||
+ | |||
+ | {{ menu: | ||
+ | |||
+ | Most Relations will execute properly without providing additional values as their scope used the node's context. But especially for relations used in vlan- or interface-templates, | ||
+ | |||
+ | Not all parameters used in the relation query are available for an overriding value: Hostname, ClientCode and SiteCode are suppressed as they are already manually selected in the device list. | ||
+ | |||
+ | |||
+ | ===== YCE vs CMDB nodes ===== | ||
+ | |||
+ | Although the Relation test tool can operate on both YCE and CMDB nodes, it should be understood that the information and therefore the context of a CMDB node is very limited. A CMDB node has only a limited set of attributes and only links to YCE objects like Domain, Region, Client and Site. It currently lacks interfaces, services and subnets required to create complex relations. | ||
+ | |||
+ | As a result, CMDB nodes will likely require its own set of Relations, tuned to the available context. | ||
+ | |||
+ | |||
+ | |||