January 2019
Beginner to intermediate
776 pages
19h 58m
English
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
Read now
Unlock full access