How can I create connections between devices when using Modeling Gateway to import and export devices into topology?

Document ID : KB000045538
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:

This is a tech doc that explain how to create connections when using Modeling Gateway to import and export topology.

Question:

How can I create connections between devices when using Modeling Gateway to import and export devices into topology?

Environment:

Any

Answer:

There are 2 main ways in which you can create connections when using Modeling Gateway to import and export topology:

1.       Create Connections Using Discovery

2.       Create Connections Using the Connection Element

Both of these are created by making modifications to the XML input file.

1.      Create Connections Using Discovery

A CA Spectrum connection represents a physical or logical link between two devices. You can create connections two different ways in the XML input file. The first method employs CA Spectrum Discovery, using the discover_connections attribute of the Topology element. Discovery runs on the newly created device models when the discover_connections attribute is set to true. Then, Discovery establishes connectivity for these devices.

Note: For more information about Discovery, see the Modeling and Managing Your IT Infrastructure Administrator Guide.

Example: Using Discovery to Create Connections

<?xml version = "1.0" standalone = "no" ?>

<!DOCTYPE Import SYSTEM ".modelinggateway.dtd">

<Import>

<Topology >

<Topology_Container model_type = "Lan" name = "Sample_LAN" discover_connections= "true"

Security_String = "public" subnet_address= "10.253.9.0"

subnet_mask = "255.255.255.0" >

<Device ip_dnsname= "10.253.9.18"

community_string="public"/>

<Device ip_dnsname= "10.253.9.20"

community string="public"/>

</Topology_Container>

</Topology>

</Import>

 

2.      Create Connections Using the Connection Element

The second way to create connections is to use the Connection element, which connects devices that are already created. Connections can be specified between two ports, between a device and a port, or between two devices.

Example: Create a Connection between Existing Ports

 

The following example creates a connection between two existing ports, each port belonging to a different device. The Connection element identifies both the Port and Device elements to be linked. The connection is resolved at the port level for both devices because a Port element is specified within each Device element.

 

<?xml version = "1.0" standalone = "no" ?>

<!DOCTYPE Import SYSTEM ".modelinggateway.dtd">

<Import>

<Connection>

<Device ip_dnsname= "172.19.57.93">

<Port identifier_name = "frCircuitTableInstance"

identifier_value="4.161"/>

</Device>

<Device ip_dnsname = "192.168.125.161">

<Port identifier_name= "frCircuitTableInstance"

identifier_value= "2.861"/>

</Device>

</Connection>

</Import>

 

The previous example specifies a connection between the DLCI ports. Because the value of the identifier_name attribute is frCircuitTableInstance, the port is identified using the OID instance value from the frCircuitTable object in the MIB. The OID instance value is specified using the identifier_value attribute.

 

Additional Information:

Please refer to the Modeling Gateway guide for more information on using Modeling Gateway to create connections.