intent commands

Intent commands are used to create, delete, and obtain status for underlays (fabrics), workloads, and fully-qualified workloads.

The following intent CLI commands are available:

dsctl

    — intent

        — create

            — underlay

            — workload

            — fully-qualified-workload

        — delete

            — underlay

            — workload

            — fully-qualified-workload

        — list

            — active-workloads

            — underlay

            — workload

            — fully-qualified-workload

        — status

        — update

dsctl intent create

Synopsis

dsctl intent create underlay [-f <filename_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

dsctl intent create workload [-f <filename_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

dsctl intent create fully-qualified-workload [-f <filename_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

Description

The dsctl intent create command is used to create a Digital Sandbox intent context and has the following operations:

  • The underlay operation specifies the creation of an underlay (or fabric) intent.

  • The workload operation specifies the creation of a workload intent.

  • The fully-qualified-workload operation specifies the creation of a fully qualified workload intent. A fully qualified workload is a workload that includes Customer Equipment (CE) endpoints and server configuration information.

Options

The following are dsctl intent create {fully-qualified-workload | workload | underlay} parameters:

Parameter:

-f <filename_string>

Used with operation:

intent create {fully-qualified-workload | workload | underlay}

Description:

Specifies the name of the file containing the workload, fully qualified workload, or underlay definition.

Parameter:

-i <DNS_ID_string>

Used with operation:

intent create {fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS compatible intent ID. Either this parameter (-i) must be specified or -d.

Parameter:

-d <ID_name_string>

Used with operation:

intent create {fully-qualified-workload | workload | underlay}

Description:

Specifies the intent name. Either this parameter (-d) must be specified or -i.

Parameter:

-n <name_string>

Used with operation:

intent create {fully-qualified-workload | workload | underlay}

Description:

Specifies the name of the workload, fully qualified workload, or underly intent. Either this parameter (-n) must be specified or -x.

Parameter:

-x <DNS_name_string>

Used with operation:

intent create {fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS name of the workload, fully qualified workload, or underlay intent. Either this parameter (-x) must be specified or -n.

Examples

To create a workload intent using the file/definition located at ‟/tmp/workload_help.yaml”, ‛associated with the deployment ID ‟star”, and name the workload ‟w_help”:

dsctl intent create workload -i star -n w_help -f /tmp/workload_help.yaml

dsctl intent delete

Synopsis

dsctl intent delete underlay {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

dsctl intent delete workload {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

dsctl intent delete fully-qualified-workload {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

Description

The dsctl intent delete command is used to delete a Digital Sandbox intent resource and has the following operations:

  • The underlay operation specifies the deletion of a underlay (fabric) intent.

  • The workload operation specifies the deletion of a workload intent.

  • The fully-qualified-workload operation specifies the deletion of a fully qualified workload intent. A fully qualified workload is a workload that includes Customer Equipment (CE) endpoints and server configuration information.

Options

The following are dsctl intent delete {fully-qualified-workload | workload | underlay} parameters:

Parameter:

-i <DNS_ID_string>

Used with operation:

intent delete {fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS compatible intent ID. Either this parameter (-i) must be specified or -d.

Parameter:

-d <ID_name_string>

Used with operation:

intent delete {fully-qualified-workload | workload | underlay}

Description:

Specifies the intent name. Either this parameter (-d) must be specified or -i.

Parameter:

-n <name_string>

Used with operation:

intent delete {fully-qualified-workload | workload | underlay}

Description:

Specifies the name of the workload, fully qualified workload, or underly intent. Either this parameter (-n) must be specified or -x.

Parameter:

-x <DNS_name_string>

Used with operation:

intent delete {fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS name of the workload, fully qualified workload, or underlay intent. Either this parameter (-x) must be specified or -n.

Examples

To delete a workload intent named ‟workload-alpha” associated with ID ‟intentexample”:

dsctl intent delete workload -i intentexample -n workload-alpha

dsctl intent list

Synopsis

dsctl intent list

dsctl intent list active-workloads {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>} [-o <output_format>]

dsctl intent list underlay [-s <datastore_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>} [-o <output_format>]

dsctl intent list workload [-s <datastore_string>>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>} [-o <output_format>]

dsctl intent list fully-qualified-workload [-s <datastore_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>} [-o <output_format>]

Description

The dsctl intent list command is used to retrieve a list of intent resources and has the following operations:

  • The active workload operation retrieves a list of all currently active workload intents.

  • The underlay operation retrieves a list of underlay (fabric) intents.

  • The workload operation retrieves a list of workload intents.

  • The fully-qualified-workload operation retrieves a list of fully qualified workload intents. A fully qualified workload is a workload that includes Customer Equipment (CE) endpoints and server configuration information.

Options

The following are dsctl intent list {active-workload | fully-qualified-workload | workload | underlay} parameters:

Parameter:

-s <datastore_string>

Used with operation:

intent list {fully-qualified-workload | workload | underlay}

Description:

Specifies the datastore. Valid options are:

  • candidate (default)

  • running

Candidates show new/modified configuration that have not been committed. Running mode includes running or active configurations.

Parameter:

-i <DNS_ID_string>

Used with operation:

intent list {active-workload | fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS compatible intent ID. Either this parameter (-i) must be specified or -d.

Parameter:

-d <ID_name_string>

Used with operation:

intent list {active-workload | fully-qualified-workload | workload | underlay}

Description:

Specifies the intent name. Either this parameter (-d) must be specified or -i.

Parameter:

-n <name_string>

Used with operation:

intent list {active-workload | fully-qualified-workload | workload | underlay}

Description:

Specifies the name of the workload, fully qualified workload, or underly intent. Either this parameter (-n) must be specified or -x.

Parameter:

-x <DNS_name_string>

Used with operation:

intent list {active-workload | fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS name of the workload, fully qualified workload, or underlay intent. Either this parameter (-x) must be specified or -n.

Parameter:

-o <output_format_string>

Used with operation:

intent list {active-workload | fully-qualified-workload | workload | underlay}

Description:

Defines the output format for the list. Valid options are:

  • json (default)

  • yaml

Examples

To retrieve a list of all intent deployments and their corresponding defined workloads/underlays:

dsctl intent list

To retrieve a list of all workload types and underlays associated with the deployment named ‟star”:

dsctl intent list -i star

To retrieve a list of all underlays associated with the deployment named ‟star”:

dsctl intent list underlay -i star

To show the details of the underlay named ‟underlay1” associated with the deployment named ‟star”:

dsctl intent list underlay -i star -n underlay1

To show all the workloads associated with the deployment named ‟star” that are in the running datastore:

dsctl intent list workload -i star -s running

dsctl intent status

Synopsis

dsctl intent status {-i <DNS_ID_string> | -d <ID_name_string>}

Description

The dsctl intent status command is used to obtain the status for intents.

Options

The following are dsctl intent status parameters:

Parameter:

-i <DNS_ID_string>

Used with operation:

intent status

Description:

Specifies the DNS compatible intent ID. Either this parameter (-i) must be specified or -d.

Parameter:

-d <ID_name_string>

Used with operation:

intent status

Description:

Specifies the intent name. Either this parameter (-d) must be specified or -i.

Examples

To show the status of all intent deployments and their corresponding defined workloads/underlays:

dsctl intent status

To show the status of all intent deployments and their corresponding defined workloads/underlays associated with the deployment named ‟star”:

dsctl intent status -i star

dsctl intent update

Synopsis

dsctl intent update underlay [-f <filename_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

dsctl intent update workload [-f <filename_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

dsctl intent update fully-qualified-workload [-f <filename_string>] {-i <DNS_ID_string> | -d <ID_name_string>} {-n <name_string> | -x <DNS_name_string>}

Description

The dsctl intent update command is used to update an existing Digital Sandbox intent context. During the update, the candidate versions are promoted to running, and links or nodes are added, removed, and updated as needed. This command has the following operations:

  • The underlay operation specifies the update of a underlay (fabric) intent.

  • The workload operation specifies the update of a workload intent.

  • The fully-qualified-workload operation specifies the update of a fully qualified workload intent. A fully qualified workload is a workload that includes Customer Equipment (CE) endpoints and server configuration information.

Options

The following are dsctl intent update {fully-qualified-workload | workload | underlay} parameters:

Parameter:

-f <filename_string>

Used with operation:

intent update {fully-qualified-workload |workload | underlay}

Description:

Specifies the name of the file containing the workload, fully qualified workload, or underlay definition.

Parameter:

-i <DNS_ID_string>

Used with operation:

intent update {fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS compatible intent ID. Either this parameter (-i) must be specified or -d.

Parameter:

-d <ID_name_string>

Used with operation:

intent update {fully-qualified-workload | workload | underlay}

Description:

Specifies the intent name. Either this parameter (-d) must be specified or -i.

Parameter:

-n <name_string>

Used with operation:

intent update {fully-qualified-workload | workload | underlay}

Description:

Specifies the name of the workload, fully qualified workload, or underly intent. Either this parameter (-n) must be specified or -x.

Parameter:

-x <DNS_name_string>

Used with operation:

intent update {fully-qualified-workload | workload | underlay}

Description:

Specifies the DNS name of the workload, fully qualified workload, or underlay intent. Either this parameter (-x) must be specified or -n.

Examples

To update a workload intent named ‟w_help” using the file/definition located at ‟/tmp/workload_help.yaml”, and that is associated with the deployment ID ‟star”:

dsctl intent update workload -i star -n w_help -f /tmp/workload_help.yaml