Topologies
CXTM Test Automation
  • Introduction
  • NaC Introduction
  • Manual Validation
  • CXTM Introduction
  • CXTM Projects
  • CXTM Test Cases
  • CXTM Test Automation
  • CXTM Git Integration
  • CXTM Batches
  • CXTM Notifications
  • Final Deployment
  • CXTM Reporting
  • CXTM References
  • Bonus Content

CXTM Topologies

As previously mentioned, CXTM offers multiple options to create topology files. Now that you have leveraged the CXTM Devices page to create a topology file, you will learn how to create your own topology file through the Topologies page.

Step 1 - Navigate to Topologies


Return to the sidebar.

  1. Scroll down until you locate the heading Project Automation
  2. Under Project Automation, click Topologies


Step 2 - Review Topology Pane


Upon navigating to Topologies, you will see a blank topology file. If you had a pre-existing topology, you could open it using the Open button.



Step 3 - Create Topology File

  1. Copy the following connection information into your New Topology File.


testbed:
  name: LTROPS-2711 Topology
  credentials:
    default:
      username: admin
      password: cisco.123
devices:
  S1:
    type: switch
    os: nxos
    platform: n9k
    connections:
      defaults:
        via: ssh
      ssh:
        protocol: ssh
        ip: 10.15.103.21
      rest:
        class: rest.connector.Rest
        protocol: https
        ip: 10.15.103.21
  S2:
    type: switch
    os: nxos
    platform: n9k
    connections:
      defaults:
        via: ssh
      ssh:
        protocol: ssh
        ip: 10.15.103.22
      rest:
        class: rest.connector.Rest
        protocol: https
        ip: 10.15.103.22
  L1:
    type: switch
    os: nxos
    platform: n9k
    connections:
      defaults:
        via: ssh
      ssh:
        protocol: ssh
        ip: 10.15.103.23
      rest:
        class: rest.connector.Rest
        protocol: https
        ip: 10.15.103.23
  L2:
    type: switch
    os: nxos
    platform: n9k
    connections:
      defaults:
        via: ssh
      ssh:
        protocol: ssh
        ip: 10.15.103.24
      rest:
        class: rest.connector.Rest
        protocol: https
        ip: 10.15.103.24
  L3:
    type: switch
    os: nxos
    platform: n9k
    connections:
      defaults:
        via: ssh
      ssh:
        protocol: ssh
        ip: 10.15.103.25
      rest:
        class: rest.connector.Rest
        protocol: https
        ip: 10.15.103.25
  L4:
    type: switch
    os: nxos
    platform: n9k
    connections:
      defaults:
        via: ssh
      ssh:
        protocol: ssh
        ip: 10.15.103.26
      rest:
        class: rest.connector.Rest
        protocol: https
        ip: 10.15.103.26

Step 4 - Save Topology File


After pasting in the New Topology File above:

  1. Click Save As


Step 5 - Name Topology File & Save


In the Save As pop-up:

  1. Name your topology file: LTROPS-2711 Topology
  2. Then click Save


Step 6 - Confirm Topology Pane Changes


After saving, you will notice that the Topologies pane changes with different options now enabled, such as Save for future updates to manage your topology file.



Step 7 - Return to your project's Test Cases page


From your project's Topologies page:

  1. Click on the Project LTROPS-2711 button



  2. Click on VIEW TEST CASES




Continue to the next section to begin work with CXTM automation files, also called Job Files.