R12.1-JA-2025June05

Defining Topology Link Style

Topology Link Style defines the graphical display of topology links, such as line shapes, colors, and thickness. The system provides the following 11 built-in styles:
Graphical user interface, application

Description automatically generated

You can define a new topology link style for other network technologies:

  1. Log in to the Tenant Management page.
  2. On the Tenant Management page, select  Topology Link Style from the start menu.
  3. Click + Link Style and define its information. Click OK.
    Graphical user interface, application  Description automatically generated
    Information Tip: By default, the Create Legend check box is selected, which means a legend will be displayed on maps to represent the link style.
  4. Click Define Policy for Applying Topology Link Style. On the Customized Policy tab, enter the scripts, and click OK.
    Graphical user interface, application, Teams  Description automatically generated
    Information Tip: See Script Sample for more details. Contact NetBrain Support Team for assistance if you have questions about defining the policy.
  5. View the display effects on a map.
    Information Tip: End users can right-click the link on a map to change the link style.

Policy Script Example

The following is an example of the policy script to define how to apply a topology link style:

Code
[
{
"topoType": "L2_Topo_Type",
"policys": [
{
"topoLinkStyleName": "Access Link",
"logicalCondition": 0,
"applyBoth": false,
"policyItems": [
{
"key": "intfs.mode",
"value": access,
"isSource": true,
"matchType": 0
},
]
}
]

The following table lists the required parameters and their descriptions. The related properties are saved in the GDR.

ParameterDescription
topoTypeThe topology type for a link style, such as L2_Topo_Type and L3_Topo_Type.
topoLinkStyleNameThe unique name for a link style, which must be the same as you define.
logicalCondition

The operator among multiple conditions.

  • 0 — represents "and".
  • 1 — represents "or".
applyBoth

The port that the link style applies to:

  • false — the link style applies to the port of the target device.
  • true — the link style applies to both the port of the target device and its opposite port.
keyThe condition you want the port to match.
valueThe value of the condition.
isSource

The port that is verified while matching the condition:

  • false — verify the port of the target device.
  • true — verify both the port of the target device and its opposite port.
matchType

Multiple values can be defined in one condition. The link style will be applied in the following situations:

  • 0 — represents "equal". The value of the condition can match the defined value totally, which means the link is the same as the defined link.
  • 1 — represents "unequal". The value of the condition cannot match the defined value, which means the link is different from the defined link.
  • 2 — represents "in". The value of the condition can match one of the defined values, which means the link is included in the defined link type.