Service Manual
<neighbor>
<neighbor-router>11.1.1.2</neighbor-router>
<remote-as>200</remote-as>
<dmzlink-bw>false</dmzlink-bw>
<shutdown>false</shutdown>
</neighbor>
</bgp>
The following configuration depicts the BGP configurations for router through the POST request:
curl -v -u admin:admin http://10.16.151.159:8008/api/running/dell/router -X
POST -T BGP_HTTP_REST_POST_PDU.xml
* About to connect() to 10.16.151.159 port 8008
* Trying 10.16.151.159... connected
* Connected to 10.16.151.159 (10.16.151.159) port 8008
* Server auth using Basic with user 'admin'
> POST /api/running/dell/router HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5
> Host: 10.16.151.159:8008
> Accept: */*
> Content-Length: 493
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
< Server: ConfD/5.2
< Allow: GET, POST, OPTIONS, HEAD
< Content-Length: 0
< HTTP/1.1 201 Created
< Server: ConfD/5.2
< Location: http://10.16.151.159:8008/api/running/dell/router/bgp/100
< Cache-control: private, no-cache, must-revalidate, proxy-revalidate
< Date: Thu, 04 Dec 2014 13:21:03 GMT
< Allow: GET, POST, OPTIONS, HEAD
< Content-Length: 0
< Content-Type: text/html
< Etag: 1417-699263-712815@0
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
Following is the current configurations applied on the system:
Dell#show config
!
router bgp 100
neighbor 11.1.1.2 remote-as 200
neighbor 11.1.1.2 no shutdown
Dell#
The following configuration retrieves the BGP running-config via REST API:
curl -u admin:admin http://10.16.151.159:8008/api/running/dell/router/bgp
<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>
REST API
143