To add the appliance to a virtual cluster, the administrator needs to define the cluster ID on an interface, configure the VIP for the cluster and configure the priority of the interface in the cluster. If the priority of the interface is the highest in the cluster, this appliance will become the master node for the cluster VIP. If this appliance becomes down, the cluster VIP will be switched to a standby node.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | interface | asso | Specifies the interface that is used by the appliance to join a virtual cluster. |
| default | cluster_id | uint32 | Specifies the ID of the virtual cluster that the appliance joins using the interface. |
| default | vip | asso | Specifies the VIP that will be shared by the cluster and be switched between interfaces on clustered appliances in case of failover. |
| default | auth | boolean | Specifies whether the appliances in the cluster need to authenticate each other using the password. |
| default | password | string | Specifies the password used by the appliance to be authenticated by other appliances in the same cluster. |
| default | preempt_mode | boolean | The Preemption function enables the appliance with the highest priority of the cluster to preempt the VIP of the cluster when it becomes available. |
| default | interval | int | Specifies the interval at which the appliance sends advertisements to other appliances in the same virtual cluster. The advertisement interval configured on different appliances in one virtual cluster must be the same. |
| default | priority | asso | |
| default | enable | boolean | Enables or disables the virtual cluster on the appliance. |
| stats | cl_stats | string | |
| stats | link_stats | string | |
| stats | transition_to_master | StorableField | |
| stats | quit_master | StorableField | |
| stats | VRRP_loss | StorableField | |
| stats | quick_transition | StorableField | |
| stats | inconsistency | StorableField |
{
"ClusterVirtualInterface": {
"meta": {
"abstract": false,
"verbose_name": Virtual Cluster,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| interface | asso | Specifies the interface that is used by the appliance to join a virtual cluster. |
| cluster_id | uint32 | Specifies the ID of the virtual cluster that the appliance joins using the interface. |
| auth | boolean | Specifies whether the appliances in the cluster need to authenticate each other using the password. |
| password | string | Specifies the password used by the appliance to be authenticated by other appliances in the same cluster. |
| preempt_mode | boolean | The Preemption function enables the appliance with the highest priority of the cluster to preempt the VIP of the cluster when it becomes available. |
| interval | int | Specifies the interval at which the appliance sends advertisements to other appliances in the same virtual cluster. The advertisement interval configured on different appliances in one virtual cluster must be the same. |
| enable | boolean | Enables or disables the virtual cluster on the appliance. |
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"targets": [<target>]
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
{
"targets": [<target>]
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|
{
"config_change": true|false,
"msg": <msg>
}
| Parameter | Type | Description |
|---|---|---|
| config_change | bool | Whether the action causes configuration change. |
| msg | sring | Empty when action is performed successfully, otherwise it represents the error info. |
{
"ClusterVirtualInterface": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, stats, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: interface, cluster_id, vip, auth, password, preempt_mode, interval, priority, enable, cl_stats, link_stats, transition_to_master, quit_master, VRRP_loss, quick_transition, inconsistency, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | interface | asso | Specifies the interface that is used by the appliance to join a virtual cluster. |
| default | cluster_id | uint32 | Specifies the ID of the virtual cluster that the appliance joins using the interface. |
| default | vip | asso | Specifies the VIP that will be shared by the cluster and be switched between interfaces on clustered appliances in case of failover. |
| default | auth | boolean | Specifies whether the appliances in the cluster need to authenticate each other using the password. |
| default | password | string | Specifies the password used by the appliance to be authenticated by other appliances in the same cluster. |
| default | preempt_mode | boolean | The Preemption function enables the appliance with the highest priority of the cluster to preempt the VIP of the cluster when it becomes available. |
| default | interval | int | Specifies the interval at which the appliance sends advertisements to other appliances in the same virtual cluster. The advertisement interval configured on different appliances in one virtual cluster must be the same. |
| default | priority | asso | |
| default | enable | boolean | Enables or disables the virtual cluster on the appliance. |
| stats | cl_stats | string | |
| stats | link_stats | string | |
| stats | transition_to_master | StorableField | |
| stats | quit_master | StorableField | |
| stats | VRRP_loss | StorableField | |
| stats | quick_transition | StorableField | |
| stats | inconsistency | StorableField |
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
{
<field_name>:<value>
}
When field name is not specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| field_name | URI | (optional) Target field name to update. Available field names are: auth, password, preempt_mode, interval, enable, |
| Field Name | Type | Description |
|---|---|---|
| auth | boolean | Specifies whether the appliances in the cluster need to authenticate each other using the password. |
| password | string | Specifies the password used by the appliance to be authenticated by other appliances in the same cluster. |
| preempt_mode | boolean | The Preemption function enables the appliance with the highest priority of the cluster to preempt the VIP of the cluster when it becomes available. |
| interval | int | Specifies the interval at which the appliance sends advertisements to other appliances in the same virtual cluster. The advertisement interval configured on different appliances in one virtual cluster must be the same. |
| enable | boolean | Enables or disables the virtual cluster on the appliance. |
All configuration fields and their values are replied:
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
"interface":<value>
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
"vip":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | Specifies the virtual IP of the virtual cluster on the interface. |
{
"ClusterVirtualIP": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"ClusterVirtualInterface": {
"instance_id":<instance_id>,
"priority":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| priority | uint32 | Specifies the priority of the interface in the virtual cluster. If the priority of the interface is the highest in the virtual cluster, this appliance will be the master node for this virtual cluster. |
{
"ClusterVirtualPriority": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}