In [9]:
run 01_device_dismount
Python Library Documentation: function device_dismount in module basics.inventory
device_dismount(device_name)
Remove one network device from the inventory of the Controller.
It is the responsibility of the caller to ensure that the specified device is mounted.
device_dismount(xrvr-999)
In [5]:
from basics.odl_http import http_history
from basics.http import http_history_to_html
from IPython.core.display import HTML
HTML(http_history_to_html(http_history()))
Out[5]:
HTTP request/response: 1 2
Request
Method
GET
URL
http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes
Headers
Authorization
Basic YWRtaW46YWRtaW4=
Accept-Encoding
gzip, deflate, compress
Accept
application/xml
User-Agent
python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-44-generic
Content
Response
Status Code
200
Headers
transfer-encoding
chunked
content-type
application/xml
server
Jetty(8.1.14.v20131031)
Content
<?xml version='1.0' encoding='ASCII'?>
<nodes xmlns="urn:opendaylight:inventory">
<node>
<id>xrvr-1</id>
</node>
<node>
<id>xrvr-2</id>
</node>
<node>
<id>controller-config</id>
</node>
<node>
<id>xrvr-999</id>
</node>
</nodes>
HTTP request/response: 1 2
Request
Method
DELETE
URL
http://127.0.0.1:8181/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/module/odl-sal-netconf-connector-cfg:sal-netconf-connector/xrvr-1
Headers
Content-Length
0
Authorization
Basic YWRtaW46YWRtaW4=
Accept-Encoding
gzip, deflate, compress
Accept
text/xml
User-Agent
python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-44-generic
Content
Response
Status Code
200
Headers
content-length
0
server
Jetty(8.1.14.v20131031)
Content
Content source: SivagnanamCiena/cosc-learning-labs
Similar notebooks: