| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | Enables the appliance to become a BGP router. |
| default | asn | uint32 | Changing the ASN will also delete all related configurations. |
| default | routerid | ip4addr | |
| default | redistribute | multienum | Sets the type of routes to be dynamically redistributed into BGP. Multiple types of routes can be selected. |
| default | interface | asso | |
| default | network | asso | |
| default | neighbor | asso | |
| distance | ext_distance | uint32 | Sets the management distance of external routes, which are the routes learnt through External BGP (EBGP). |
| distance | int_distance | uint32 | Sets the management distance of internal routes, which are the routes learnt through Internal BGP (IBGP). |
| distance | loc_distance | uint32 | Sets the management distance of local routes, which are the routes configured on the local BGP router. |
| route | route_table | clitext | |
| neighbor_detail | neighbor_detail | clitext |
{
"BGPSetting": {
"meta": {
"abstract": false,
"verbose_name": BGP Settings,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| asso_targets | string or list | specify one target asso you want to perform action on. And the target asso is required. |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| asso_targets | string or list | specify the target asso you want to perform action on. And target asso can be one or empty or be even not specified when there is no target asso needed. |
{
"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. |
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | dynamic_enum |
{
"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. |
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, distance, route, neighbor_detail, 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: enable, asn, routerid, redistribute, interface, network, neighbor, ext_distance, int_distance, loc_distance, route_table, neighbor_detail, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | enable | boolean | Enables the appliance to become a BGP router. |
| default | asn | uint32 | Changing the ASN will also delete all related configurations. |
| default | routerid | ip4addr | |
| default | redistribute | multienum | Sets the type of routes to be dynamically redistributed into BGP. Multiple types of routes can be selected. |
| default | interface | asso | |
| default | network | asso | |
| default | neighbor | asso | |
| distance | ext_distance | uint32 | Sets the management distance of external routes, which are the routes learnt through External BGP (EBGP). |
| distance | int_distance | uint32 | Sets the management distance of internal routes, which are the routes learnt through Internal BGP (IBGP). |
| distance | loc_distance | uint32 | Sets the management distance of local routes, which are the routes configured on the local BGP router. |
| route | route_table | clitext | |
| neighbor_detail | neighbor_detail | clitext |
{
"BGPSetting": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"BGPSetting": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"BGPSetting": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: enable, asn, routerid, redistribute, interface, network, neighbor, ext_distance, int_distance, loc_distance, route_table, neighbor_detail, |
| Field Name | Type | Description |
|---|---|---|
| enable | boolean | Enables the appliance to become a BGP router. |
| asn | uint32 | Changing the ASN will also delete all related configurations. |
| routerid | ip4addr | |
| redistribute | multienum | Sets the type of routes to be dynamically redistributed into BGP. Multiple types of routes can be selected. |
| ext_distance | uint32 | Sets the management distance of external routes, which are the routes learnt through External BGP (EBGP). |
| int_distance | uint32 | Sets the management distance of internal routes, which are the routes learnt through Internal BGP (IBGP). |
| loc_distance | uint32 | Sets the management distance of local routes, which are the routes configured on the local BGP router. |
All configuration fields and their values are replied:
{
"BGPSetting": {
<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 |
{
"BGPSetting": {
"instance_id":<instance_id>,
"interface":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ip6addr |
{
"BGPInterfaceEntry": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"BGPSetting": {
"instance_id":<instance_id>,
"network":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| mask_prefix | UnionField |
{
"BGPNetworkEntry": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"BGPSetting": {
"instance_id":<instance_id>,
"neighbor":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| as_number | uint32 | |
| capability_dynamic | boolean | Advertises the dynamic update capability to the BGP neighbor. The dynamic update capability enables BGP neighbors to dynamically update BGP capabilities without resetting BGP connections. |
| capability_option | enum | Available values:
|
| def_orig | boolean | Uses to advertise the default route destined for the local BGP router to the BGP neighbor. |
| shutdown | boolean | Terminates the connection to the BGP neighbor. |
| passive | boolean | Configures the local BGP router not to actively send BGP Open packets to the BGP neighbor. |
| nexthopself | boolean | Sets the next hop IP address of the advertised route to the IP address of the local BGP router. |
| local_as | uint32 | Sets the substitute ASN used by the local BGP router to communicate with the BGP neighbor which is an EBGP router. |
{
"BGPNeighborEntry": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}