Service Manual

< Server: ConfD/5.2
< Cache-control: private, no-cache, must-revalidate, proxy-revalidate
< Date: Thu, 04 Dec 2014 13:13:25 GMT
< Allow: GET, POST, OPTIONS, HEAD
< Content-Length: 0
< Content-Type: text/html
< Etag: 1417-698805-339353@0
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
Following is the current running configurations applied on the system:
Dell#show running-config interface tengigabitethernet 0/0
!
interface TenGigabitEthernet 0/0
ip address 11.1.1.1/24
shutdown
Dell#
The following configuration retrieves the interface running-config via REST API.
curl -u admin:admin http://10.16.151.159:8008/api/running/dell/interfaces/
interface/tengig-0-0\?deep
<interface xmlns="http://www.dell.com/ns/dell:0.1/root" xmlns:y="http://tail-
f.com/ns/rest" xmlns:dell="http://www.dell.com/ns/dell:0.1/root">
<name>tengig-0-0</name>
<mtu>1554</mtu>
<shutdown>true</shutdown>
<ip>
<address>
<primary>
<address>11.1.1.1/24</address>
</primary>
</address>
</ip>
<speed>auto</speed>
<rate-interval>299</rate-interval>
</interface>
* Connection #0 to host 10.16.151.159 left intact
* Closing connection #0
The PDU structure for configuring BGP on the Router 1 is as follows:
cat BGP_HTTP_REST_POST_PDU.xml
<bgp>
<as-name>100</as-name>
<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
REST API 163