10.1.15.12-06212024

Define the Open Driver

Navigate to the Open Driver Editor

Users can view the error/warning/information from this device's Data Accuracy Discovery pane.

On the Data Accuracy Discovery pane, view the error message and click the Open Driver hyperlink under the message.

Define the Data Source

  1. Select Data Source.

You can choose from:

  • CLI Command
    After selecting CLI Command, enter the command.
  • Configuration
    After selecting Configuration, you can decide:
    •  To retrieve data from the live network, select Live Network.
    • To retrieve data from the cached data, select Current Baseline.
  • Parser
    Select the Parser from the Parser Discovery window.
    Information Tip: To support the data retrieved via SNMP or API as the data source, you need to define a Parser for the SNMP or API data first and then select the Parser as the data source.
    Information Note: Users can choose a Parser with the CLI Command with parameters such as show ip route vrf $VrfNameHowever, users cannot enter the CLI command with the parameters directly.
    Information

    Note: Only two built-in variables are supported:


    • $VrfName (e.g. show ip route vrf $vrf_name)
    •  $peer-address(e.g.show ip bgp advertised $peer_address or show ip bgp advertised vrf $peer_address $vrf_name.
  1. Click Retrieve.
  2. If you select CLI Command and Configuration in step 1, proceed to select a parser or click New Parser to create a new parser. Refer to Visual Parser on how to define a new parser.

Example: Select CLI Command> Enter show inventory> Click Retrieve> Create a new parser Inventory

Select the Target Device Data

Open Driver can be used to modify the following data:

Device Property (Global Data Repository)


The system supports the following types of device Global Data Repository:

TypeDescription

Single Value:

  • String
  • Integer
  • Boolean
For example, Hostname, Software Version, etc.
TableCan select any column of the table as the target data.
ListCan be mapped to a column (field) of a source table.
ObjectSupports the property of an object.
Information Note: Only device properties with Visible in Open Driver checked (can be set in the GDR Data configuration page at Tenant Management) can be changed by OD.

 

Interface Property (Global Data Repository):


Following built-in interface types are supported:

        • Interface(the general)
        • IPv4 Interface
        • IPv6 Interface
        • GRE VPN Interface
        • IPsec VPN Interface

 Interface GDR is a table with the interface name as the key from a device’s perspective. Therefore, the source data must be a table with the interface name as the key.

Information Note: Only interface properties with Visible in Open Driver checked (can be set in the GDR Data configuration page at Tenant Management) can be changed by OD.

The supported types of interface GDR are the same as device GDR.

Example:

You can use the CLI command show ip interface to set the interface, inbound ACL, outbound ACL, etc.

 

System Table

Built-in system tables are created by System Driver and can be modified by Open Driver.

Table TypeSupport VRF sub-tables (besides the Global table)Target fields that OD can select
Route TableYes
  • alg.
  •  Destination Address
  • Mask
  •  Distance
  •  Metric
  •  Interface
  •  Next Hop IP
  •  Next Hop Device
  • Age
ARP TableYes
  • Interface
  • IP Address
  •  MAC Address
  •  Vendor
MAC TableN/A
  • VLAN
  • MAC Address
  •  Vendor
  • Port
NDP TableN/A
  • Local Interface
  •  Device Name
  •  Interface Name
  • Interface Address
BGP Advertised-route TableYesSame as Route Table
 

NCT Table

Open Driver can modify an existing NCT table and create a new NCT table. Only the global NCT table (not VRF or subtables) is supported.

Open Driver can change all columns of an existing or new NCT table.

Map the source data variables to the target device data.

After the value is parsed:

  1. Click the parsed value.
  2. Then click Add Mapping. The mapping will be completed.

 To map a table:

  1. You need to match the columns of the source table to the target table.
  2. You need to define which column of the target table is the key if it is not defined.
    Information Note:  The keys will identify the corresponding rows of the source table and target table.
  1. Define the method to map the tables.   
    •  Left Join:  Fetching all rows from the left table, unmatched data of the right table will be null.
    • Right Join:  Fetching all rows from the right table, unmatched data of the left table will be null.
    • Outer Join: Merge all rows from both tables.
      Information Tip: When variables defined by the data source Parser cannot be directly mapped to a target device data, you need to define the supporting variables first and then map the variables to the target device data.
  1. You can define data mapping conditions if necessary.

Example:
If the source data variable is empty (the system cannot retrieve the data), do not overwrite the target device data.

  • The supporting operations of the different types of variables, which can be a single value variable or a table column, are:
    Variable TypeSupporting Operation
    String
    • Equals
    • Does not equal
    • Contains
    • Does not contain
    • Is empty
    • Is not empty
    Number
    • Equals
    • Does not equal
    • Less than
    • Greater than
    • Less or equal
    • Greater or equal
    • In range
    • Is empty
    • Is not empty
    Bool
    • Equals to (TURE/FALSE)
  • The actions for a single value variable can be:
    •  Overwrite (assigning the source data to the target data)
    • Skip (do nothing).
  • The actions for a table column variable can be:
    • Overwrite
    • Overwrite if Source is Not Empty
    • Merge
    • Merge if Source is Not Empty
    • Skip

Define the qualification for the Open Driver

To make this Open Driver take effect on the right device, you need to define the qualification to identify which type of devices this Open Driver will apply to.

Example:

We can apply the Open Driver to Cisco Router and Cisco IOS Switch.

  1. On the Open Driver Manager page, click the Undefined hyperlink.
  2. In the Qualified Device window, select Device Type> Matches any, then select Cisco Router and Cisco IOS Switch.
  3. Click OK.
  4. Enable the Open Driver and click Save. The Open Driver will be executed automatically in the next benchmark task.