The VLAN interface can be created for the specified system interface or bond interface. At most 4094 VLAN 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 | tag | uint32 | Specifies the ID for the VLAN interface being created. |
| default | interface | asso | |
| default | mtu | uint32 | |
| stats | hardware_status | string | |
| stats | webwall_status | boolean | |
| stats | drop_notp_tcp | StorableField | |
| stats | drop_notp_udp | StorableField | |
| stats | drop_notp_icmp | StorableField | |
| stats | drop_notp_ah | StorableField | |
| stats | drop_notp_esp | StorableField | |
| stats | drop_deny_tcp | StorableField | |
| stats | drop_deny_udp | StorableField | |
| stats | drop_deny_icmp | StorableField | |
| stats | drop_deny_ah | StorableField | |
| stats | drop_deny_esp | StorableField |
{
"VlanInterface": {
"meta": {
"abstract": false,
"verbose_name": VLAN 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 | |
| tag | uint32 | Specifies the ID for the VLAN interface being created. |
| interface | asso |
{
"VlanInterface": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"VlanInterface": [
{
"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, 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: name, inf_type, addresses, inf_stats, tag, interface, mtu, hardware_status, webwall_status, drop_notp_tcp, drop_notp_udp, drop_notp_icmp, drop_notp_ah, drop_notp_esp, drop_deny_tcp, drop_deny_udp, drop_deny_icmp, drop_deny_ah, drop_deny_esp, 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 | tag | uint32 | Specifies the ID for the VLAN interface being created. |
| default | interface | asso | |
| default | mtu | uint32 | |
| stats | hardware_status | string | |
| stats | webwall_status | boolean | |
| stats | drop_notp_tcp | StorableField | |
| stats | drop_notp_udp | StorableField | |
| stats | drop_notp_icmp | StorableField | |
| stats | drop_notp_ah | StorableField | |
| stats | drop_notp_esp | StorableField | |
| stats | drop_deny_tcp | StorableField | |
| stats | drop_deny_udp | StorableField | |
| stats | drop_deny_icmp | StorableField | |
| stats | drop_deny_ah | StorableField | |
| stats | drop_deny_esp | StorableField |
{
"VlanInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"VlanInterface": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"VlanInterface": {
"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: mtu, |
| Field Name | Type | Description |
|---|---|---|
| mtu | uint32 |
All configuration fields and their values are replied:
{
"VlanInterface": {
"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 |
{
"VlanInterface": {
"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 |
{
"VlanInterface": {
"instance_id":<instance_id>,
"interface":<value>
}
}