Skip to content

Commit 8770932

Browse files
author
skkumaravel
committed
XRCL-1 Re-org python repository to match collection
1 parent 0e96656 commit 8770932

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Diff for: __init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
File renamed without changes.
+6-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
from client.cisco_grpc_client import CiscoGRPCClient
1+
import sys
2+
sys.path.insert(0, '../')
3+
from lib.cisco_grpc_client import CiscoGRPCClient
24
import json
35

46
def main():
5-
creds = open('ems.pem').read()
6-
options='ems.cisco.com'
7-
client = CiscoGRPCClient('192.168.1.2', 57777, 10, 'vagrant', 'vagrant', creds, options)
7+
#creds = open('ems.pem').read()
8+
#options='ems.cisco.com'
9+
client = CiscoGRPCClient('11.1.1.10', 57777, 10, 'vagrant', 'vagrant')
810
#Test 1: Test Get config json requests
911
path = '{"Cisco-IOS-XR-ip-static-cfg:router-static": [null]}'
1012
result = client.getconfig(path)
1113
print json.dumps(json.loads(result))
1214

13-
1415
if __name__ == '__main__':
1516
main()

Diff for: lib/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

Diff for: tests/test_cisco_grpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
import sys
33
sys.path.insert(0, '../')
4-
from client.cisco_grpc_client_insecure import CiscoGRPCClient
4+
from lib.cisco_grpc_client import CiscoGRPCClient
55
import json
66

77

0 commit comments

Comments
 (0)