Versions Compared

Key

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

A network partition, is an area of an IaaS that is bound by one network of an IaaS. Therefore, one or more partitions can be included inside a network partition. Private IPs are used for communication within a network partition. Network partitions are also referred to as partition groups. The partition algorithm that is applied within a network partition may differ from the partition algorithm that is applied between different network partitions. A sample network partition definition, together with information on all the properties that can be added in a network partition definition JSON are as follows:

...

Table of Contents

...

maxLevel

...

3

...

minLevel

...

Code Block
{  
   "id":"network-partition-1",
   "provider":"ec2",
   "partitions":[  
      {  
         "id":"partition-1",
         "property":[  
            {  
               "name":"region",
               "value":"default"
            }
         ]
      }
   ]
}
Localtab
titleMock
Code Block
{
  "id": "network-partition-1",
  "provider": "mock",
  "partitions": [
    {
      "id": "partition-1",
      "property": [
        {
          "name": "region",
          "value": "default"
        }
      ]
    }
  ]
}
Localtab
titleKubernetes
Code Block
{  
   "id":"network-partition-1",
   "provider":"kubernetes",
   "partitions":[  
      {  
         "id":"partition-1",
         "property":[  
            {  
               "name":"cluster",
               "value":"kubernetes-cluster-1"
            }
         ]
      }
   ]
}

3

Sample network partition definition JSON

The following are sample configurations that can be used in a JSON to define a network partition:

Insert excerpt
Adding a Network Partition
Adding a Network Partition
nopaneltrue

Property definitions

All the properties that correspond to a network partition resource are explained as follows: 

Panel
  • W = Writable
  • R = Readable
  • U = Updatable
  • M = Mandatory (Required)
  • DV = Default Value

Main property definitions

Property

Image RemovedWImage Removed

R

Image RemovedU

Description

Image RemovedMImage Removed

DV

Data
Type

Example

JSON

UI

Anchor
id
id
id

Network Partition Id 

ID corresponding to the network partition. This should be a unique value.

Yes

N/A

String

NP1

Anchor
provider
provider
provider

Network Partition provider 

The name of the IaaS provider.

Yes

N/A

String

ec2, openstack, kubernetes

Anchor
partitions1
partitions1
partitions

Partitions 

All the partitions that belong to the network partition. For more information on the sub-properties, see partitions.

Yes

N/A

partitions array

 
properties  The properties that need to be passed regarding the network partition. The properties are passed as name value pairs. For more information on the sub-properties, see property.NoN/A  

Sub-property definitions

partitions

Property

Image RemovedWImage Removed

R

Image RemovedU

Description

Image RemovedMImage Removed

DV

Data Type

Example

JSON

UI

Anchor
id2
id2
id

Partition Id 

ID corresponding to the partition. This should be a unique value.

Yes

N/A

String

P1

Anchor
description
description
description

  

A summarized description of the partition.

No

N/A

String

This is a partition in EC2.

Anchor
property1
property1
property

Property 

The IaaS provider properties are listed as name value pairs. In any IaaS the region property is   required.  For more information on the sub-properties, see property.

Info
iconfalse

If you need to define a Kubernetes cluster, define a property named cluster and add the ID of the Kubernetes Cluster (clusterId) as the property value.


Yes

 

N/A

property array

  • EC2 - region and zone

  • Openstack - region, host and zone

property

Property

Image RemovedWImage Removed

R

Image RemovedU

Description

Image RemovedMImage Removed

DV

Data
Type

Example

JSON

UI

Anchor
name
name
name

Name 

Name of the property.

Yes

N/A

String

region, zone

Anchor
value
value
value

Value 

Value corresponding to the property.  

Yes

N/A

String

al-southeast-1,
ap-southeast-1a