R11.0a-March2023

Implementing Built-in Plugins

This section introduces how to implement the following three built-in plugin samples step by step.

Executing the Import Config Plugin

This plugin is used to add devices and device interfaces to your NetBrain system by importing device configuration files. This plugin will be executed when the system runs the discovery task next time. 

  1. In a network shared directory (an FTP server in this case), prepare a CSV/Excel file to define the correspondence between config files that you want to import and their device drivers in your NetBrain system.
    Figure: The correspondence between config files and drivers in a CSV file.

    The parameters in the CSV file are described in the table below:
    ParameterDescription
    FileName*requiredThe name of a configuration file that you will import.
    Driver*requiredThe corresponding device driver name or ID of a configuration file in your NetBrain system. The drivers are used to parse configuration files. To get the driver information of a device, go to System Management > Tenant Management > Operations > Multi-vendor Support >Device Driver.
  2. In the FTP server, save the CSV file and the configuration files in the same directory.
  3. In a discovery task, add this plugin and define it as follows:
    1. Select Before executing discovery task as the execution point.
    2. Define the input. In the Input filed, enter the information to access the FTP server and the name of the CSV/Excel file.


Executing the Import End System Plugin

This plugin is used to add end systems to your NetBrain system. This plugin will be executed when the system runs the discovery task next time. 

  1. In a network shared directory (an FTP server in this case), prepare a CSV/Excel file to populate the information of the end systems that you want to add. The sample format of the CSV file is as follows:

    The parameters in the CSV file are described in the table below:
    ParameterDescription
    Device_Name*requiredThe name of the end system that you will import.
    MManagementIP*requiredThe management IP of the device that you will import.
    Vendor

    The vendor information of the device that you will import.

    Model

    The model of the device that you will import.



    Interface_NameThe interface name of the device that you will import.
    IPv4_AddressThe interface IPv4 address of the device that you will import.
    IPv6_AddressThe interface IPv6 address of the device that you will import.
  1. In a discovery task, add this plugin and define it as follows:
a. Select Before executing discovery task as the execution point.

b. Define the input. In the Input field, enter the information to access the FTP server and the name of the CSV/Excel file

Executing the Topology Stitching Plugin

This plugin is used to modify the topology links between device interfaces when the links built by your NetBrain system are inaccurate. This plugin will be executed when the system runs the benchmark task next time.

  1. In a network shared directory (an FTP server in this case), prepare a CSV/Excel file to populate the information of the end systems that you want to add. The sample format of the CSV file is as follows:

    The parameters in the CSV file are described in the table below:
    ParameterDescription
    First_Device*requiredOne of the two devices that you want to stitch the topology between them.
    First_Device_Interface*requiredThe interface of the device that you will stitch topology.
    Link_Type

    The type of link that you want to add between two device interfaces. There are two link types:

    • p2p: means point-to-point connection.
    • mp: means point-to-multipoint connection.
    Topo_Type

    The topology type of the link between two device interfaces. There are the following topology types:



    Second_Device/Media_NameThe device or media name that the first device connects to. When the link type is mp, this field is required.
    Media TypeThe type of the media, including LAN, BUS, VPLS and L2 Overlay.  When the link type is mp, this field is required.
    Second_Device_InterfaceThe device interface that the first device interface connects to. When the link type is p2p, this field is required.
  2. In a benchmark task, add this plugin and define it as follows:
    1. Select After building L3 topology as the execution point.
    2. Define the input. In the Input field, enter the information to access the FTP server and the name of the CSV/Excel file.