list#

dpsctl topology list Usage Guide#

List topologies

Usage#

dpsctl topology list

Flags#

Includes global dpsctl options.

   --active            Is active (optional, true/false)
   --help, -h          show help

Examples#

Basic Usage#

$ dpsctl topology list
{
  "topologies": [
    {
      "topology_name": "topology",
      "is_active": false,
      "leaf_node_names": [
        "node001",
        "node002",
        "node003",
        "node004"
      ],
      "policy_bundle": "MaxP"
    }
  ]
}

The policy_bundle field is the bundle selection persisted on each topology. Use it to verify the current persisted selection. An empty value means no bundle is configured.

Filter on active status#

$ dpsctl topology list --active=false
{
  "topologies": [
    {
      "topology_name": "topology",
      "is_active": false,
      "leaf_node_names": [
        "node001",
        "node002",
        "node003",
        "node004"
      ],
      "policy_bundle": "MaxP"
    }
  ]
}

If --active is omitted, all topologies are listed. Use --active=false after import to confirm the topology is present and inactive.

Get name of topology containing node#

Here, the shortcut tp is used in place of topology.

$ dpsctl tp list | jq -c '.topologies[] | select(.leaf_node_names[] | contains("node003")) | .topology_name'
"topology"