vlan
Configuration for "VLAN" resource.
Properties
(click to see Operations)
Name | Data Type | Permissions | Description |
---|---|---|---|
id | <Double> | Read-write | A positive integer that uniquely identifies a VLAN.<br>Minimum value = 1<br>Maximum value = 4094 |
aliasname | <String> | Read-write | A name for the VLAN. Must begin with a letter, a number, or the underscore symbol, and can consist of from 1 to 31 letters, numbers, and the hyphen (-), period (.) pound (#), space ( ), at sign (@), equals (=), colon (:), and underscore (_) characters. You should choose a name that helps identify the VLAN. However, you cannot perform any VLAN operation by specifying this name instead of the VLAN ID.<br>Maximum length = 31 |
dynamicrouting | <String> | Read-write | Enable dynamic routing on this VLAN.<br>Default value: DISABLED<br>Possible values = ENABLED, DISABLED |
ipv6dynamicrouting | <String> | Read-write | Enable all IPv6 dynamic routing protocols on this VLAN. Note: For the ENABLED setting to work, you must configure IPv6 dynamic routing protocols from the VTYSH command line.<br>Default value: DISABLED<br>Possible values = ENABLED, DISABLED |
mtu | <Double> | Read-write | Specifies the maximum transmission unit (MTU), in bytes. The MTU is the largest packet size, excluding 14 bytes of ethernet header and 4 bytes of crc, that can be transmitted and received over this VLAN.<br>Default value: 0<br>Minimum value = 500<br>Maximum value = 9216 |
linklocalipv6addr | <String> | Read-only | The link-local IP address assigned to the VLAN. |
rnat | <Boolean> | Read-only | Temporary flag used for internal purpose. |
portbitmap | <Double> | Read-only | Member interfaces of this vlan. |
lsbitmap | <Double> | Read-only | Member linksets of this vlan. |
tagbitmap | <Double> | Read-only | Tagged members of this vlan. |
lstagbitmap | <Double> | Read-only | Tagged linksets of this vlan. |
ifaces | <String> | Read-only | Names of all member interfaces of this vlan. |
tagifaces | <String> | Read-only | Names of all tagged member interfaces of this vlan. |
ifnum | <String> | Read-only | The interface to be bound to the VLAN, specified in slot/port notation (for example, 1/3).<br>Minimum length = 1 |
tagged | <Boolean> | Read-only | Make the interface an 802.1q tagged interface. Packets sent on this interface on this VLAN have an additional 4-byte 802.1q tag, which identifies the VLAN. To use 802.1q tagging, you must also configure the switch connected to the appliances interfaces. |
vlantd | <Double> | Read-only | Traffic domain associated with vlan.<br>Minimum value = 0<br>Maximum value = 4094 |
sdxvlan | <String> | Read-only | SDX vlan.<br>Default value: NO<br>Possible values = YES, NO |
partitionname | <String> | Read-only | Name of the Partition to which this vlan bound to.<br>Minimum length = 1 |
vxlan | <Double> | Read-only | The VXLAN that extends this vlan. |
__count | <Double> | Read-only | count parameter |
Operations
(click to see Properties)
ADD | DELETE | UPDATE | UNSET | GET (ALL) | GET | COUNT
Some options that you can use for each operations:
Getting warnings in response: NITRO allows you to get warnings in an operation by specifying the "warning" query parameter as "yes". For example, to get warnings while connecting to the NetScaler appliance, the URL is as follows:
http://<netscaler-ip-address>/nitro/v1/config/login?warning=yes
If any, the warnings are displayed in the response payload with the HTTP code "209 X-NITRO-WARNING".
Authenticated access for individual NITRO operations: NITRO allows you to logon to the NetScaler appliance to perform individual operations. You can use this option instead of creating a NITRO session (using the login object) and then using that session to perform all operations,
To do this, you must specify the username and password in the request header of the NITRO request as follows:
X-NITRO-USER:<username>
X-NITRO-PASS:<password>
Note: In such cases, make sure that the request header DOES not include the following:
Cookie:NITRO_AUTH_TOKEN=<tokenvalue>
Note:
Mandatory parameters are marked in red and placeholder content is marked in <green>.
add
URL: http://<NSIP>/nitro/v1/config/
HTTP Method: POST
Request Payload:
object={ "params":{ "warning":<String_value>, "onerror":<String_value> }, "sessionid":"##sessionid", "vlan":{ "id":<Double_value>, "aliasname":<String_value>, "dynamicrouting":<String_value>, "ipv6dynamicrouting":<String_value>, "mtu":<Double_value>, }}
Response Payload:
{ "errorcode": 0, "message": "Done", "severity":
delete
URL: http://<NSIP>/nitro/v1/config/vlan/id_value<Double>
Query-parameters:
warning
http://<NS_IP>/nitro/v1/config/vlan/id_value<Double>?warning=yes
Use this query parameter to get warnings in nitro response. If this field is set to YES, warning message will be sent in 'message' field and 'WARNING' value is set in severity field of the response in case there is a
HTTP Method: DELETE
Response Payload:
{ "errorcode": 0, "message": "Done", "severity":
update
URL: http://<NSIP>/nitro/v1/config/
HTTP Method: PUT
Request Payload:
{ "params": { "warning":<String_value>, "onerror":<String_value>" }, sessionid":"##sessionid", "vlan":{ "id":<Double_value>, "aliasname":<String_value>, "dynamicrouting":<String_value>, "ipv6dynamicrouting":<String_value>, "mtu":<Double_value>, }}
Response Payload:
{ "errorcode": 0, "message": "Done", "severity":
unset
URL: http://<NSIP>/nitro/v1/config/
HTTP Method: POST
Request Payload:
object={ "params":{ "warning":<String_value>, "onerror":<String_value>, "action":"unset" }, "sessionid":"##sessionid", "vlan":{ "id":<Double_value>, "aliasname":true, "dynamicrouting":true, "ipv6dynamicrouting":true, "mtu":true, }}
Response Payload:
{ "errorcode": 0, "message": "Done", "severity":
get (all)
URL: http://<NSIP>/nitro/v1/config/vlan
Query-parameters:
filter
http://<NSIP>/nitro/v1/config/vlan?filter=property-name1:property-val1,property-name2:property-val2
Use this query-parameter to get the filtered set of vlan resources configured on NetScaler.Filtering can be done on any of the properties of the resource.
view
http://<NS_IP>/nitro/v1/config/vlan?view=summary
Use this query-parameter to get the summary output of vlan resources configured on NetScaler.
pagesize=#no;pageno=#no
http://<NS_IP>/nitro/v1/config/vlan?pagesize=#no;pageno=#no
Use this query-parameter to get the vlan resources in chunks.
warning
http://<NS_IP>/nitro/v1/config/vlan?warning=yes
Use this query parameter to get warnings in nitro response. If this field is set to YES, warning message will be sent in 'message' field and 'WARNING' value is set in severity field of the response in case there is a
HTTP Method: GET
Response Payload:
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "vlan": [ { "id":<Double_value>, "aliasname":<String_value>, "linklocalipv6addr":<String_value>, "rnat":<Boolean_value>, "portbitmap":<Double_value>, "lsbitmap":<Double_value>, "tagbitmap":<Double_value>, "lstagbitmap":<Double_value>, "ifaces":<String_value>, "tagifaces":<String_value>, "dynamicrouting":<String_value>, "ipv6dynamicrouting":<String_value>, "ifnum":<String_value>, "tagged":<Boolean_value>, "vlantd":<Double_value>, "sdxvlan":<String_value>, "mtu":<Double_value>, "partitionname":<String_value>, "vxlan":<Double_value> }]}
get
URL: http://<NS_IP>/nitro/v1/config/vlan/id_value<Double>
HTTP Method: GET
Response Payload:
{ "errorcode": 0, "message": "Done", "vlan": [ { "id":<Double_value>, "aliasname":<String_value>, "linklocalipv6addr":<String_value>, "rnat":<Boolean_value>, "portbitmap":<Double_value>, "lsbitmap":<Double_value>, "tagbitmap":<Double_value>, "lstagbitmap":<Double_value>, "ifaces":<String_value>, "tagifaces":<String_value>, "dynamicrouting":<String_value>, "ipv6dynamicrouting":<String_value>, "ifnum":<String_value>, "tagged":<Boolean_value>, "vlantd":<Double_value>, "sdxvlan":<String_value>, "mtu":<Double_value>, "partitionname":<String_value>, "vxlan":<Double_value> }]}
count
URL: http://<NS_IP>/nitro/v1/config/vlan?count=yes
HTTP Method: GET
Response Payload:
{ "errorcode": 0, "message": "Done",vlan: [ { "__count": "#no"} ] }