Setup Guide
The following conguration retrieves the BGPrunning-config via REST API:
curl -u admin:admin http://10.16.151.159:8008/api/running/dell/router/bgp\?deep
<collection xmlns:y="http://tail-f.com/ns/rest">
<bgp>
<as-name>100</as-name>
<timers>
<bgp>
<keepalive>60</keepalive>
<hold-time>180</hold-time>
</bgp>
</timers>
<maximum-paths>
<ebgp>1</ebgp>
<ibgp1>1</ibgp>
</maximum-paths>
<bgp>
<dmzlink-bw>false</dmzlink-bw>
</bgp>
<neighbor>
<neighbor-router>11.1.1.2</neighbor-router>
<remote-as>200</remote-as>
<dmzlink-bw>false</dmzlink-bw>
<shutdown>false</shutdown>
</neighbor>
<neighbor>
<neighbor-router>11.1.1.3</neighbor-router>
<remote-as>200</remote-as>
<dmzlink-bw>false</dmzlink-bw>
<shutdown>false</shutdown>
</neighbor>
</bgp>
</collection
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
The following conguration is to fetch the operational data for the BGP NLRI table via REST API (Router 1):
curl -u admin:admin http://10.16.151.159:8008/api/operational/mib/bgp4-v2/dellNetBgpM2NlriTable
\?deep
<collection xmlns:y="http://tail-f.com/ns/rest">
<dellNetBgpM2NlriTable>
<dellNetBgpM2PeerIndex>1</dellNetBgpM2PeerIndex?
<dellNetBgpM2NlriAfi>1</dellNetBgpM2NlriAfi>
<dellNetBgpM2NlriSafi>1</dellNetBgpM2NlriSafi>
<dellNetBgpM2NlriPrefix>5.0.0.0</dellNetBgpM2NlriPrefix>
<dellNetBgpM2NlriPrefixLen>24</dellNetBgpM2NlriPrefixLen>
<dellNetBgpM2NlriIndex>0</dellNetBgpM2NlriIndex>
<dellNetBgpM2NlriBest>true</dellNetBgpM2NlriBest>
<dellNetBgpM2NlriCalcLocalPref>100</dellNetBgpM2NlriCalcLocalPref>
<dellNetBgpM2PathAttrIndex>1860238788</dellNetBgpM2PathAttrIndex
<dellNetBgpM2NlriOpaqueType>none</dellNetBgpM2NlriOpaqueType>
<dellNetBgpM2RouteFlag>active</dellNetBgpM2RouteFlag>
</dellNetBgpM2NlriTable>
</collection>
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
HTTP Status Error Codes
The REST API server returns the following HTTP status error codes.
Status Error
Codes
Description
200 OK The request was successfully completed. A response body returns containing a representation of the resource.
142 REST API