Skip to content

Commit aadb792

Browse files
author
kkumara3
committed
Update README.md
1 parent ba0181b commit aadb792

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
* Grpc for Cisco IOS-XR in python
1+
Grpc for Cisco IOS-XR in python
2+
-
23

34
This is a small repo testing GRPC in python for the IOS-XR end node. This setup is currently working in the IOS-XRv on vagrant.
45
To get started there are two examples here, one for MDT and one for grpc rpc calls.
56

6-
**GRPC Calls
7+
GRPC Calls
8+
--
79
The file is called example_grpc.py. This file has an excamples of the different rpc calls. This configuration shows how to get things started with self signed certs.
810

911
1. Download the repository
1012
2. Install grpc
11-
```pip install grpcio``` (sudo may be required)
13+
```
14+
pip install grpcio
15+
``` (sudo may be required)
1216
3. ssh into the router and turn on grpc and tls on the router, below is an example configuration.
1317
```
1418
interface GigabitEthernet 0/0/0/0
@@ -22,7 +26,9 @@ grpc
2226
!
2327
```
2428
4. Copy the autogenerated .pem file to the 'keys' folder in the client directory.
25-
```scp cisco@192.168.1.2:/misc/config/grpc/ems.pem ./```
29+
```
30+
scp cisco@192.168.1.2:/misc/config/grpc/ems.pem ./
31+
```
2632
5. If you are using your own box, change the parameters in the example.py file to have the proper authentication credentials.
2733
6.. Run the program ```python example.py```
2834

0 commit comments

Comments
 (0)