Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

Excerpt
CLI command

add-network-partition

DescriptionAdd a new network partition.
Command format

add-network-partition -p <JSON_FILE_PATH>

The path to the JSON file that defines the network partition needs to be defined as the <JSON_FILE_PATH> value.

Parameter definitions

Short option
Long option
Description
Required
Example value
-p
--resource-pathFolder path where the JSON file that defines the network partition is stored.yes<STRATOS_SOURCE_HOME>/samples/network-partitions/kubernetes/network-partition-1.json

Sample network partition JSON

Excerpt Include
4.1.x Network Partition Resource Definition
4.1.x Network Partition Resource Definition
nopaneltrue

For information on all the properties that can be used in a network partition definition, see the Network Partition Resource Definition.

Example

Use case:  Add the network partition that has been defined in the <STRATOS_SOURCE_HOME>/samples/network-partitions/kubernetes/network-partition-1.json file.

Code Block
add-network-partition -p <STRATOS_SOURCE_HOME>/samples/network-partitions/kubernetes/network-partition-1.json

Sample output

Code Block
Successfully added network partition.