MNET (Multi-Netting) is used to assign more than one IP address to an interface. MNET interfaces can be created on the system interface or bond interface . At most 32 MNET interfaces can be configured.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | inf_type | enum | Available values:
|
| default | addresses | asso | |
| default | inf_stats | string | |
| default | interface | asso |
{
"MnetInterface": {
"meta": {
"abstract": false,
"verbose_name": MNET Interface,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| interface | asso |
{
"MnetInterface": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"MnetInterface": [
{
"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, tgt_fields, 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: name, inf_type, addresses, inf_stats, interface, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | name | string | |
| default | inf_type | enum | Available values:
|
| default | addresses | asso | |
| default | inf_stats | string | |
| default | interface | asso |
{
"MnetInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"MnetInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"MnetInterface": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"MnetInterface": {
"instance_id":<instance_id>,
"addresses":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| mask_prefix | UnionField | |
| overlap | boolean | Needs to be used only when the NUMA SLB (single VIP, reverse mode) is deployed. Normally, this parameter does not need to be specified since the subnet of an interface to be added cannot overlap with that of any existing interface. |
{
"InterfaceIP": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"MnetInterface": {
"instance_id":<instance_id>,
"interface":<value>
}
}