How to do it...

Now you may connect to your device using Python as shown by the following code segment:

from pyIOSXR import IOSXR 
device = IOSXR(hostname='lab001', username='ejasinska', password='passwd',
port=22, timeout=120) device.open()

You may test pyIOSXR without an IOS XR device using the mock scripts provided by the project.

Checkout the source code from the source repository:

$ git clone https://github.com/fooelisa/pyiosxr.git
$ cd test

Now you may run test.py to test the installation:

$ python test.py
............................................
--------------------------------------------
Ran 44 tests in 0.043s
    
OK
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.198.60